Home
last modified time | relevance | path

Searched refs:BipPixel (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/
DBipPixelTest.java33 BipPixel pixel = new BipPixel(input); in testParse()
43 BipPixel pixel = BipPixel.createFixed(width, height); in testFixed()
44 Assert.assertEquals(BipPixel.TYPE_FIXED, pixel.getType()); in testFixed()
54 BipPixel pixel = BipPixel.createResizableModified(minWidth, minHeight, maxWidth, maxHeight); in testResizableModified()
55 Assert.assertEquals(BipPixel.TYPE_RESIZE_MODIFIED_ASPECT_RATIO, pixel.getType()); in testResizableModified()
66 BipPixel pixel = BipPixel.createResizableFixed(minWidth, maxWidth, maxHeight); in testResizableFixed()
67 Assert.assertEquals(BipPixel.TYPE_RESIZE_FIXED_ASPECT_RATIO, pixel.getType()); in testResizableFixed()
77 testParse("0*0", BipPixel.TYPE_FIXED, 0, 0, 0, 0, "0*0"); in testParseFixed()
78 testParse("200*200", BipPixel.TYPE_FIXED, 200, 200, 200, 200, "200*200"); in testParseFixed()
79 testParse("12*67", BipPixel.TYPE_FIXED, 12, 67, 12, 67, "12*67"); in testParseFixed()
[all …]
DBipImageFormatTest.java36 Assert.assertEquals(BipPixel.createFixed(1280, 1024), format.getPixel()); in testParseNative_requiredOnly()
49 Assert.assertEquals(BipPixel.createFixed(1280, 1024), format.getPixel()); in testParseNative_withSize()
62 Assert.assertEquals(BipPixel.createFixed(1280, 1024), format.getPixel()); in testParseVariant_requiredOnly()
75 Assert.assertEquals(BipPixel.createFixed(1280, 1024), format.getPixel()); in testParseVariant_withMaxSize()
120 Assert.assertEquals(BipPixel.createFixed(1280, 1024), format.getPixel()); in testParseVariant_allFields()
129 Assert.assertEquals(BipPixel.createFixed(1280, 1024), format.getPixel()); in testParseVariant_allFields()
138 Assert.assertEquals(BipPixel.createFixed(1280, 1024), format.getPixel()); in testParseVariant_allFields()
149 new BipEncoding(BipEncoding.JPEG, null), BipPixel.createFixed(1280, 1024), -1); in testCreateNative_requiredOnly()
152 Assert.assertEquals(BipPixel.createFixed(1280, 1024), format.getPixel()); in testCreateNative_requiredOnly()
163 new BipEncoding(BipEncoding.JPEG, null), BipPixel.createFixed(1280, 1024), 1048576); in testCreateNative_withSize()
[all …]
DBipImagePropertiesTest.java75 BipPixel.createFixed(1280, 1024), 1048576)); in testCreateProperties()
80 BipPixel.createFixed(640, 480), -1, null)); in testCreateProperties()
84 BipPixel.createResizableModified(80, 60, 640, 480), -1, trans)); in testCreateProperties()
88 BipPixel.createResizableFixed(150, 600, 120), -1, null)); in testCreateProperties()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/bip/
DBipPixel.java47 public class BipPixel { class
70 public static BipPixel createFixed(int width, int height) { in createFixed()
71 return new BipPixel(TYPE_FIXED, width, height, width, height); in createFixed()
77 public static BipPixel createResizableModified(int minWidth, int minHeight, int maxWidth, in createResizableModified()
79 return new BipPixel(TYPE_RESIZE_MODIFIED_ASPECT_RATIO, minWidth, minHeight, maxWidth, in createResizableModified()
86 public static BipPixel createResizableFixed(int minWidth, int maxWidth, int maxHeight) { in createResizableFixed()
88 return new BipPixel(TYPE_RESIZE_FIXED_ASPECT_RATIO, minWidth, minHeight, in createResizableFixed()
95 private BipPixel(int type, int minWidth, int minHeight, int maxWidth, int maxHeight) { in BipPixel() method in BipPixel
111 public BipPixel(String pixel) { in BipPixel() method in BipPixel
217 if (!(o instanceof BipPixel)) return false; in equals()
[all …]
DBipImageFormat.java63 public static BipImageFormat createNative(BipEncoding encoding, BipPixel pixel, int size) { in createNative()
70 public static BipImageFormat createVariant(BipEncoding encoding, BipPixel pixel, int maxSize, in createVariant()
90 private final BipPixel mPixel;
116 private BipImageFormat(int type, BipEncoding encoding, BipPixel pixel, int size, int maxSize, in BipImageFormat()
130 mPixel = new BipPixel(pixel); in BipImageFormat()
154 public BipPixel getPixel() { in getPixel()
187 || mPixel.getType() == BipPixel.TYPE_UNKNOWN) { in toString()
DBipImageDescriptor.java104 mImageDescriptor.mPixel = BipPixel.createFixed(width, height); in setFixedDimensions()
164 private BipPixel mPixel = null;
205 mPixel = new BipPixel(xpp.getAttributeValue(null, "pixel")); in parse()
242 public BipPixel getPixel() { in getPixel()
DBipImageProperties.java276 BipPixel pixel = format.getPixel(); in toString()
293 BipPixel pixel = format.getPixel(); in toString()