/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/ |
D | BipPixelTest.java | 37 BipPixel pixel = new BipPixel(input); in testParse() 47 BipPixel pixel = BipPixel.createFixed(width, height); in testFixed() 48 Assert.assertEquals(BipPixel.TYPE_FIXED, pixel.getType()); in testFixed() 58 BipPixel pixel = BipPixel.createResizableModified(minWidth, minHeight, maxWidth, maxHeight); in testResizableModified() 59 Assert.assertEquals(BipPixel.TYPE_RESIZE_MODIFIED_ASPECT_RATIO, pixel.getType()); in testResizableModified() 69 BipPixel pixel = BipPixel.createResizableFixed(minWidth, maxWidth, maxHeight); in testResizableFixed() 70 Assert.assertEquals(BipPixel.TYPE_RESIZE_FIXED_ASPECT_RATIO, pixel.getType()); in testResizableFixed() 80 testParse("0*0", BipPixel.TYPE_FIXED, 0, 0, 0, 0, "0*0"); in testParseFixed() 81 testParse("200*200", BipPixel.TYPE_FIXED, 200, 200, 200, 200, "200*200"); in testParseFixed() 82 testParse("12*67", BipPixel.TYPE_FIXED, 12, 67, 12, 67, "12*67"); in testParseFixed() [all …]
|
D | BipImageFormatTest.java | 34 Assert.assertEquals(BipPixel.createFixed(1280, 1024), format.getPixel()); in testParseNative_requiredOnly() 47 Assert.assertEquals(BipPixel.createFixed(1280, 1024), format.getPixel()); in testParseNative_withSize() 60 Assert.assertEquals(BipPixel.createFixed(1280, 1024), format.getPixel()); in testParseVariant_requiredOnly() 73 Assert.assertEquals(BipPixel.createFixed(1280, 1024), format.getPixel()); in testParseVariant_withMaxSize() 118 Assert.assertEquals(BipPixel.createFixed(1280, 1024), format.getPixel()); in testParseVariant_allFields() 127 Assert.assertEquals(BipPixel.createFixed(1280, 1024), format.getPixel()); in testParseVariant_allFields() 136 Assert.assertEquals(BipPixel.createFixed(1280, 1024), format.getPixel()); in testParseVariant_allFields() 149 BipPixel.createFixed(1280, 1024), in testCreateNative_requiredOnly() 153 Assert.assertEquals(BipPixel.createFixed(1280, 1024), format.getPixel()); in testCreateNative_requiredOnly() 166 BipPixel.createFixed(1280, 1024), in testCreateNative_withSize() [all …]
|
D | BipImagePropertiesTest.java | 420 BipPixel.createFixed(200, 200), in testCreateProperties() 426 BipPixel.createFixed(640, 480), in testCreateProperties() 432 BipPixel.createResizableModified(80, 60, 640, 175), in testCreateProperties() 438 BipPixel.createResizableFixed(150, 600, 120), in testCreateProperties()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/bip/ |
D | BipPixel.java | 47 public class BipPixel { class 68 public static BipPixel createFixed(int width, int height) { in createFixed() 69 return new BipPixel(TYPE_FIXED, width, height, width, height); in createFixed() 73 public static BipPixel createResizableModified( in createResizableModified() 75 return new BipPixel( in createResizableModified() 80 public static BipPixel createResizableFixed(int minWidth, int maxWidth, int maxHeight) { in createResizableFixed() 82 return new BipPixel( in createResizableFixed() 89 private BipPixel(int type, int minWidth, int minHeight, int maxWidth, int maxHeight) { in BipPixel() method in BipPixel 105 public BipPixel(String pixel) { in BipPixel() method in BipPixel 213 if (!(o instanceof BipPixel)) return false; in equals() [all …]
|
D | BipImageFormat.java | 56 public static BipImageFormat createNative(BipEncoding encoding, BipPixel pixel, int size) { in createNative() 62 BipEncoding encoding, BipPixel pixel, int maxSize, BipTransformation transformation) { in createVariant() 77 private final BipPixel mPixel; 106 BipPixel pixel, in BipImageFormat() 127 mPixel = new BipPixel(pixel); in BipImageFormat() 151 public BipPixel getPixel() { in getPixel() 186 || mPixel.getType() == BipPixel.TYPE_UNKNOWN) { in toString()
|
D | BipImageProperties.java | 281 BipPixel pixel = format.getPixel(); in isThumbnailFormat() 284 case BipPixel.TYPE_FIXED: in isThumbnailFormat() 286 case BipPixel.TYPE_RESIZE_MODIFIED_ASPECT_RATIO: in isThumbnailFormat() 288 case BipPixel.TYPE_RESIZE_FIXED_ASPECT_RATIO: in isThumbnailFormat() 316 BipPixel pixel = format.getPixel(); in toString() 333 BipPixel pixel = format.getPixel(); in toString()
|
D | BipImageDescriptor.java | 101 mImageDescriptor.mPixel = BipPixel.createFixed(width, height); in setFixedDimensions() 152 private BipPixel mPixel = null; 187 mPixel = new BipPixel(xpp.getAttributeValue(null, "pixel")); in parse() 225 public BipPixel getPixel() { in getPixel()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcp/helpers/ |
D | CoverArt.java | 27 import com.android.bluetooth.avrcpcontroller.BipPixel; 43 private static final BipPixel PIXEL_THUMBNAIL = BipPixel.createFixed(200, 200); 134 BipPixel pixel = descriptor.getPixel(); in isDescriptorValid() 164 BipPixel pixel = BipPixel.createFixed(200, 200); in getImageProperties()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcp/ |
D | CoverArtTest.java | 34 import com.android.bluetooth.avrcpcontroller.BipPixel; 50 private static final BipPixel PIXEL_THUMBNAIL = BipPixel.createFixed(200, 200); 101 BipPixel pixel = format.getPixel(); in containsThumbnailFormat() 110 BipPixel pixel = format.getPixel(); in containsThumbnailFormat()
|