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.java311 private static Bitmap decode(ImageDecoder.Source src, boolean unpremul) { in decode() argument
316 decoder.setUnpremultipliedRequired(unpremul); in decode()
324 private static Bitmap decode(int resId, boolean unpremul) { in decode() argument
332 return decode(src, unpremul); in decode()
341 public void testDecode10BitHeif(int bitmapFormat, boolean unpremul) throws IOException { in testDecode10BitHeif() argument
350 bm = decode(resId, unpremul); in testDecode10BitHeif()
358 opt.inPremultiplied = !unpremul; in testDecode10BitHeif()
368 nTestDecode(aimagedecoder, bitmapFormat, unpremul, bm); in testDecode10BitHeif()
378 public void testDecode10BitAvif(int bitmapFormat, boolean unpremul) throws IOException { in testDecode10BitAvif() argument
387 bm = decode(resId, unpremul); in testDecode10BitAvif()
[all …]
DBitmapFactoryTest.java638 Bitmap unpremul = BitmapFactory.decodeResource(mRes, R.drawable.premul_data, options); in testDecodePremultipliedData() local
640 assertEquals(unpremul.getConfig(), Bitmap.Config.ARGB_8888); in testDecodePremultipliedData()
641 assertTrue(premul.getHeight() == 1 && unpremul.getHeight() == 1); in testDecodePremultipliedData()
642 assertTrue(premul.getWidth() == unpremul.getWidth() && in testDecodePremultipliedData()
649 assertEquals(unpremul.getPixel(i, 0), RAW_COLORS[i]); in testDecodePremultipliedData()
DImageDecoderTest.java613 Bitmap unpremul = ImageDecoder.decodeBitmap(src, in testUnpremul() local
615 assertNotNull(unpremul); in testUnpremul()
616 assertEquals(unpremul.hasAlpha(), hasAlpha[i]); in testUnpremul()
617 assertFalse(unpremul.isPremultiplied()); in testUnpremul()
/cts/tests/tests/graphics/jni/
Dandroid_graphics_cts_AImageDecoderTest.cpp513 jint androidBitmapFormat, jboolean unpremul, jobject jbitmap) { in testDecode() argument
538 if (unpremul) { in testDecode()
614 if (!decodeAgain(unpremul)) return; in testDecode()