/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/ |
D | BipPixelTest.java | 33 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 …]
|
D | BipImageFormatTest.java | 36 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 …]
|
D | BipImagePropertiesTest.java | 401 BipPixel.createFixed(200, 200), -1)); in testCreateProperties() 406 BipPixel.createFixed(640, 480), -1, null)); in testCreateProperties() 410 BipPixel.createResizableModified(80, 60, 640, 175), -1, trans)); in testCreateProperties() 414 BipPixel.createResizableFixed(150, 600, 120), -1, null)); in testCreateProperties()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/bip/ |
D | BipPixel.java | 47 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 …]
|
D | BipImageFormat.java | 63 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()
|
D | BipImageProperties.java | 287 BipPixel pixel = format.getPixel(); in isThumbnailFormat() 290 case BipPixel.TYPE_FIXED: in isThumbnailFormat() 292 case BipPixel.TYPE_RESIZE_MODIFIED_ASPECT_RATIO: in isThumbnailFormat() 294 case BipPixel.TYPE_RESIZE_FIXED_ASPECT_RATIO: in isThumbnailFormat() 322 BipPixel pixel = format.getPixel(); in toString() 339 BipPixel pixel = format.getPixel(); in toString()
|
D | BipImageDescriptor.java | 104 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()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/helpers/ |
D | CoverArt.java | 27 import com.android.bluetooth.avrcpcontroller.BipPixel; 44 private static final BipPixel PIXEL_THUMBNAIL = BipPixel.createFixed(200, 200); 152 BipPixel pixel = descriptor.getPixel(); in isDescriptorValid() 188 BipPixel pixel = BipPixel.createFixed(200, 200); in getImageProperties()
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcp/ |
D | CoverArtTest.java | 36 import com.android.bluetooth.avrcpcontroller.BipPixel; 53 private static final BipPixel PIXEL_THUMBNAIL = BipPixel.createFixed(200, 200); 117 BipPixel pixel = format.getPixel(); in containsThumbnailFormat() 126 BipPixel pixel = format.getPixel(); in containsThumbnailFormat()
|