/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/ |
H A 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() 66 BipPixel pixel = BipPixel.createResizableFixed(minWidth, maxWidth, maxHeight); in testResizableFixed() 77 testParse("0*0", BipPixel.TYPE_FIXED, 0, 0, 0, 0, "0*0"); in testParseFixed() 79 testParse("12*67", BipPixel.TYPE_FIXED, 12, 67, 12, 67, "12*67"); in testParseFixed() 143 testParse(null, BipPixel.TYPE_UNKNOWN, -1, -1, -1, -1, null); in testParseNull_throwsException() 148 testParse("", BipPixel.TYPE_UNKNOWN, -1, -1, -1, -1, null); in testParseEmpty_throwsException() 153 testParse("\n\t ", BipPixel.TYPE_UNKNOWN, -1, -1, -1, -1, null); in testParseWhitespace_throwsException() [all …]
|
H A 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() 180 Assert.assertEquals(BipPixel.createFixed(32, 32), format.getPixel()); in testCreateVariant_requiredOnly() 197 Assert.assertEquals(BipPixel.createFixed(32, 32), format.getPixel()); in testCreateVariant_withTransformations() 211 Assert.assertEquals(BipPixel.createFixed(32, 32), format.getPixel()); in testCreateVariant_withMaxsize() [all …]
|
H A 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()
|
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/bip/ |
H A 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 …]
|
H A 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()
|
H A 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()
|
H A 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()
|
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/helpers/ |
H A 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()
|
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcp/ |
H A 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()
|