Home
last modified time | relevance | path

Searched refs:BipEncoding (Results 1 – 13 of 13) sorted by relevance

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/
DBipEncodingTest.java35 BipEncoding encoding = new BipEncoding(input); in testParse()
56 testParseMany(inputs, BipEncoding.JPEG, "JPEG", null, true); in testParseJpeg()
62 testParseMany(inputs, BipEncoding.GIF, "GIF", null, true); in testParseGif()
68 testParseMany(inputs, BipEncoding.WBMP, "WBMP", null, false); in testParseWbmp()
74 testParseMany(inputs, BipEncoding.PNG, "PNG", null, true); in testParsePng()
80 testParseMany(inputs, BipEncoding.JPEG2000, "JPEG2000", null, false); in testParseJpeg2000()
86 testParseMany(inputs, BipEncoding.BMP, "BMP", null, true); in testParseBmp()
92 testParseMany(inputs, BipEncoding.USR_XXX, "USR-TEST", "TEST", false); in testParseUsrProprietary()
96 testParseMany(inputs, BipEncoding.USR_XXX, "USR-NOKIA-FORMAT1", "NOKIA-FORMAT1", false); in testParseUsrProprietary()
103 BipEncoding.JPEG, in testCreateBasicEncoding()
[all …]
DBipImageFormatTest.java33 Assert.assertEquals(new BipEncoding(BipEncoding.JPEG, null), format.getEncoding()); in testParseNative_requiredOnly()
46 Assert.assertEquals(new BipEncoding(BipEncoding.JPEG, null), format.getEncoding()); in testParseNative_withSize()
59 Assert.assertEquals(new BipEncoding(BipEncoding.JPEG, null), format.getEncoding()); in testParseVariant_requiredOnly()
72 Assert.assertEquals(new BipEncoding(BipEncoding.JPEG, null), format.getEncoding()); in testParseVariant_withMaxSize()
117 Assert.assertEquals(new BipEncoding(BipEncoding.JPEG, null), format.getEncoding()); in testParseVariant_allFields()
126 Assert.assertEquals(new BipEncoding(BipEncoding.JPEG, null), format.getEncoding()); in testParseVariant_allFields()
135 Assert.assertEquals(new BipEncoding(BipEncoding.JPEG, null), format.getEncoding()); in testParseVariant_allFields()
148 new BipEncoding(BipEncoding.JPEG, null), in testCreateNative_requiredOnly()
152 Assert.assertEquals(new BipEncoding(BipEncoding.JPEG, null), format.getEncoding()); in testCreateNative_requiredOnly()
165 new BipEncoding(BipEncoding.JPEG, null), in testCreateNative_withSize()
[all …]
DBipImageDescriptorTest.java41 builder.setEncoding(BipEncoding.JPEG); in testBuildImageDescriptor_encodingConstants()
57 BipEncoding encoding = new BipEncoding(BipEncoding.JPEG, null); in testBuildImageDescriptor_encodingObject()
167 builder.setEncoding(BipEncoding.JPEG); in testBuildImageDescriptor_noSize()
183 builder.setEncoding(BipEncoding.JPEG); in testBuildImageDescriptor_useMaxSize()
201 builder.setEncoding(BipEncoding.JPEG); in testBuildImageDescriptor_allButSize()
223 builder.setEncoding(BipEncoding.JPEG); in testBuildImageDescriptor_noPixel()
DBipImagePropertiesTest.java419 new BipEncoding(BipEncoding.JPEG, null), in testCreateProperties()
425 new BipEncoding(BipEncoding.JPEG, null), in testCreateProperties()
431 new BipEncoding(BipEncoding.GIF, null), in testCreateProperties()
437 new BipEncoding(BipEncoding.JPEG, null), in testCreateProperties()
DRequestGetImageTest.java37 builder.setEncoding(BipEncoding.JPEG); in constructor_withDescriptorNotNull()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/bip/
DBipEncoding.java38 public class BipEncoding { class
82 public BipEncoding(String encoding) { in BipEncoding() method in BipEncoding
108 public BipEncoding(int encoding, String proprietaryId) { in BipEncoding() method in BipEncoding
125 public BipEncoding(int encoding) { in BipEncoding() method in BipEncoding
155 return mType == BipEncoding.JPEG in isAndroidSupported()
156 || mType == BipEncoding.PNG in isAndroidSupported()
157 || mType == BipEncoding.BMP in isAndroidSupported()
158 || mType == BipEncoding.GIF; in isAndroidSupported()
174 if (!(o instanceof BipEncoding)) return false; in equals()
176 BipEncoding e = (BipEncoding) o; in equals()
DBipImageFormat.java56 public static BipImageFormat createNative(BipEncoding encoding, BipPixel pixel, int size) { in createNative()
62 BipEncoding encoding, BipPixel pixel, int maxSize, BipTransformation transformation) { in createVariant()
71 private final BipEncoding mEncoding;
105 BipEncoding encoding, in BipImageFormat()
126 mEncoding = new BipEncoding(encoding); in BipImageFormat()
147 public BipEncoding getEncoding() { in getEncoding()
184 || mEncoding.getType() == BipEncoding.UNKNOWN in toString()
DBipImageDescriptor.java65 public Builder setEncoding(BipEncoding encoding) { in setEncoding()
77 mImageDescriptor.mEncoding = new BipEncoding(encoding, null); in setEncoding()
89 mImageDescriptor.mEncoding = new BipEncoding(BipEncoding.USR_XXX, encoding); in setPropietaryEncoding()
149 private BipEncoding mEncoding = null;
186 mEncoding = new BipEncoding(xpp.getAttributeValue(null, "encoding")); in parse()
221 public BipEncoding getEncoding() { in getEncoding()
DBipImageProperties.java278 BipEncoding encoding = format.getEncoding(); in isThumbnailFormat()
279 if (encoding == null || encoding.getType() != BipEncoding.JPEG) return false; in isThumbnailFormat()
315 BipEncoding encoding = format.getEncoding(); in toString()
332 BipEncoding encoding = format.getEncoding(); in toString()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcp/helpers/
DCoverArt.java23 import com.android.bluetooth.avrcpcontroller.BipEncoding;
133 BipEncoding encoding = descriptor.getEncoding(); in isDescriptorValid()
136 if (encoding.getType() == BipEncoding.JPEG && PIXEL_THUMBNAIL.equals(pixel)) { in isDescriptorValid()
163 BipEncoding encoding = new BipEncoding(BipEncoding.JPEG); in getImageProperties()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcp/
DCoverArtTest.java30 import com.android.bluetooth.avrcpcontroller.BipEncoding;
100 BipEncoding encoding = format.getEncoding(); in containsThumbnailFormat()
103 if (encoding.getType() == BipEncoding.JPEG && PIXEL_THUMBNAIL.equals(pixel)) { in containsThumbnailFormat()
109 BipEncoding encoding = format.getEncoding(); in containsThumbnailFormat()
112 if (encoding.getType() == BipEncoding.JPEG && PIXEL_THUMBNAIL.equals(pixel)) { in containsThumbnailFormat()
222 BipImageDescriptor descriptor = getDescriptor(BipEncoding.JPEG, 200, 200); in testGetImageWithValidDescriptor()
231 BipImageDescriptor descriptor = getDescriptor(BipEncoding.JPEG, 200, 200); in testGetImageWithThumbnailDescriptor()
242 BipImageDescriptor descriptor = getDescriptor(BipEncoding.BMP, 1200, 1200); in testGetImageWithInvalidDescriptor()
DAvrcpBipObexServerTest.java36 import com.android.bluetooth.avrcpcontroller.BipEncoding;
351 mRequest.setHeader(HEADER_ID_IMG_DESCRIPTOR, makeDescriptor(BipEncoding.JPEG, 200, 200)); in testGetImageWithValidHandleAndValidDescriptor()
367 makeDescriptor(BipEncoding.WBMP /* No Android support, won't work */, 200, 200)); in testGetImageWithValidHandleAndInvalidDescriptor()
379 mRequest.setHeader(HEADER_ID_IMG_DESCRIPTOR, makeDescriptor(BipEncoding.JPEG, 200, 200)); in testGetImageWithValidUnstoredHandle()
392 mRequest.setHeader(HEADER_ID_IMG_DESCRIPTOR, makeDescriptor(BipEncoding.JPEG, 200, 200)); in testGetImageWithInvalidHandle()
403 mRequest.setHeader(HEADER_ID_IMG_DESCRIPTOR, makeDescriptor(BipEncoding.JPEG, 200, 200)); in testGetImageWithNullHandle()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/
DAvrcpCoverArtManager.java387 builder.setEncoding(BipEncoding.JPEG); in determineImageDescriptor()