Searched refs:isPremultiplied (Results 1 – 5 of 5) sorted by relevance
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | BitmapUtils.java | 195 int mseMargin, boolean lessThanMargin, boolean isPremultiplied) { in compareBitmapsMse() argument 213 mse += distance(expColors[idx], actualColors[idx], isPremultiplied); in compareBitmapsMse() 236 int mseMargin, boolean lessThanMargin, boolean isPremultiplied) { in assertBitmapsMse() argument 237 assertTrue(compareBitmapsMse(expected, actual, mseMargin, lessThanMargin, isPremultiplied)); in assertBitmapsMse() 246 private static double distance(int expect, int actual, boolean isPremultiplied) { in distance() argument 247 if (isPremultiplied) { in distance()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | BitmapFactoryTest.java | 241 assertFalse(bitmap.isPremultiplied()); in decodeOpaqueImage() 257 BitmapUtils.assertBitmapsMse(bPng, bWebp, tolerance, true, bPng.isPremultiplied()); in testWebpStreamDecode() 275 BitmapUtils.assertBitmapsMse(bPng, bWebp2, tolerance, true, bPng.isPremultiplied()); in testWebpStreamEncode() 290 assertTrue(bPng.isPremultiplied()); in testDecodeStream5() 298 assertTrue(bWebP1.isPremultiplied()); in testDecodeStream5() 300 BitmapUtils.assertBitmapsMse(bPng, bWebP1, tolerance, true, bPng.isPremultiplied()); in testDecodeStream5() 310 assertTrue(bWebP2.isPremultiplied()); in testDecodeStream5() 312 BitmapUtils.assertBitmapsMse(bPng, bWebP2, tolerance, true, bPng.isPremultiplied()); in testDecodeStream5() 612 assertTrue(simplePremul.isPremultiplied()); in testDecodePremultipliedDefault()
|
D | BitmapTest.java | 1298 assertFalse(bitmap.isPremultiplied()); in verifyAlphaAndPremul() 1314 assertEquals(bitmap.isPremultiplied(), expectedPremul); in verifyAlphaAndPremul() 1318 assertFalse(bitmap.isPremultiplied()); in verifyAlphaAndPremul() 1648 assertTrue(bitmap.isPremultiplied() == expectedPremul); in verifyPremultipliedBitmapConfig() 1651 assertFalse(bitmap.isPremultiplied()); in verifyPremultipliedBitmapConfig() 1689 assertFalse(bitmap.isPremultiplied()); in testPremultipliedCanvas() 2566 bm.isPremultiplied(), false); in testNdkInfo() 2582 hwBitmap.isPremultiplied(), true); in testNdkInfo()
|
D | ImageDecoderTest.java | 489 assertEquals(normal.isPremultiplied(), hasAlpha[i]); in testUnpremul() 499 assertFalse(unpremul.isPremultiplied()); in testUnpremul() 650 assertFalse(bm.isPremultiplied()); in testPostProcessorAndMadeOpaque() 682 assertTrue(bm.isPremultiplied()); in testPostProcessorAndAddedTransparency() 1309 assertFalse(bm.isPremultiplied()); in testResizeWebp()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | AnimatedImageDrawableTest.java | 520 expected.isPremultiplied()); in testExif()
|