Home
last modified time | relevance | path

Searched refs:unpremul (Results 1 – 4 of 4) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/cts/
DAImageDecoderTest.java288 private static Bitmap decode(ImageDecoder.Source src, boolean unpremul) { in decode() argument
293 decoder.setUnpremultipliedRequired(unpremul); in decode()
301 private static Bitmap decode(int resId, boolean unpremul) { in decode() argument
309 return decode(src, unpremul); in decode()
317 public void testDecode(ImageDecoderTest.AssetRecord record, boolean unpremul) { in testDecode() argument
320 Bitmap bm = decode(src, unpremul); in testDecode()
325 nTestDecode(aimagedecoder, ANDROID_BITMAP_FORMAT_NONE, unpremul, bm); in testDecode()
331 public void testDecodeResources(ImageDecoderTest.Record record, boolean unpremul) in testDecodeResources() argument
333 Bitmap bm = decode(record.resId, unpremul); in testDecodeResources()
337 nTestDecode(aimagedecoder, ANDROID_BITMAP_FORMAT_NONE, unpremul, bm); in testDecodeResources()
[all …]
DBitmapFactoryTest.java621 Bitmap unpremul = BitmapFactory.decodeResource(mRes, R.drawable.premul_data, options); in testDecodePremultipliedData() local
623 assertEquals(unpremul.getConfig(), Bitmap.Config.ARGB_8888); in testDecodePremultipliedData()
624 assertTrue(premul.getHeight() == 1 && unpremul.getHeight() == 1); in testDecodePremultipliedData()
625 assertTrue(premul.getWidth() == unpremul.getWidth() && in testDecodePremultipliedData()
632 assertEquals(unpremul.getPixel(i, 0), RAW_COLORS[i]); in testDecodePremultipliedData()
DImageDecoderTest.java495 Bitmap unpremul = ImageDecoder.decodeBitmap(src, in testUnpremul() local
497 assertNotNull(unpremul); in testUnpremul()
498 assertEquals(unpremul.hasAlpha(), hasAlpha[i]); in testUnpremul()
499 assertFalse(unpremul.isPremultiplied()); in testUnpremul()
/cts/tests/tests/graphics/jni/
Dandroid_graphics_cts_AImageDecoderTest.cpp507 jint androidBitmapFormat, jboolean unpremul, jobject jbitmap) { in testDecode() argument
532 if (unpremul) { in testDecode()
608 if (!decodeAgain(unpremul)) return; in testDecode()