/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | LinearGradientTest.java | 52 assertEquals(b.getPixel(10, 10), b.getPixel(20, 10)); in testLinearGradient() 54 assertTrue(Color.blue(b.getPixel(10, 0)) > Color.blue(b.getPixel(10, 5))); in testLinearGradient() 55 assertTrue(Color.blue(b.getPixel(10, 5)) > Color.blue(b.getPixel(10, 10))); in testLinearGradient() 56 assertTrue(Color.green(b.getPixel(10, 0)) < Color.green(b.getPixel(10, 5))); in testLinearGradient() 57 assertTrue(Color.green(b.getPixel(10, 5)) < Color.green(b.getPixel(10, 10))); in testLinearGradient() 59 assertTrue(Color.green(b.getPixel(10, 15)) > Color.green(b.getPixel(10, 20))); in testLinearGradient() 60 assertTrue(Color.green(b.getPixel(10, 20)) > Color.green(b.getPixel(10, 25))); in testLinearGradient() 61 assertTrue(Color.red(b.getPixel(10, 15)) < Color.red(b.getPixel(10, 20))); in testLinearGradient() 62 assertTrue(Color.red(b.getPixel(10, 20)) < Color.red(b.getPixel(10, 25))); in testLinearGradient() 68 assertEquals(b.getPixel(10, 10), b.getPixel(20, 10)); in testLinearGradient() [all …]
|
D | BitmapRGBAF16Test.java | 110 assertEquals(0xff0f131f, mOpaqueBitmap.getPixel(0, 0)); in testGetPixel() 111 assertEquals(0xff0f1421, mOpaqueBitmap.getPixel(1, 0)); in testGetPixel() 112 assertEquals(0xff101523, mOpaqueBitmap.getPixel(2, 0)); in testGetPixel() 115 assertEquals(0xffff0000, mTransparentBitmap.getPixel(0, 0)); in testGetPixel() 116 assertEquals(0xff00ff00, mTransparentBitmap.getPixel(1, 0)); in testGetPixel() 117 assertEquals(0xff0000ff, mTransparentBitmap.getPixel(2, 0)); in testGetPixel() 120 assertEquals(0x7fff0000, mTransparentBitmap.getPixel(61, 63)); in testGetPixel() 121 assertEquals(0x7f00ff00, mTransparentBitmap.getPixel(62, 63)); in testGetPixel() 122 assertEquals(0x7f0000ff, mTransparentBitmap.getPixel(63, 63)); in testGetPixel() 127 int before = mOpaqueBitmap.getPixel(5, 5); in testSetPixel() [all …]
|
D | PorterDuffXfermodeTest.java | 53 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4)); in testPorterDuffXfermode() 54 assertEquals(Color.BLUE, target.getPixel(WIDTH / 4, HEIGHT * 3 / 4)); in testPorterDuffXfermode() 55 assertEquals(Color.BLUE, target.getPixel(WIDTH * 3 / 4, HEIGHT * 3 / 4)); in testPorterDuffXfermode() 62 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4)); in testPorterDuffXfermode() 63 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT * 3 / 4)); in testPorterDuffXfermode() 64 assertEquals(Color.TRANSPARENT, target.getPixel(WIDTH * 3 / 4, HEIGHT * 3 / 4)); in testPorterDuffXfermode() 71 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4)); in testPorterDuffXfermode() 72 assertEquals(Color.MAGENTA, target.getPixel(WIDTH / 4, HEIGHT * 3 / 4)); in testPorterDuffXfermode() 73 assertEquals(Color.BLUE, target.getPixel(WIDTH * 3 / 4, HEIGHT * 3 / 4)); in testPorterDuffXfermode()
|
D | PorterDuffColorFilterTest.java | 57 assertEquals(Color.RED, target.getPixel(width / 4, height / 4)); in testPorterDuffColorFilter() 58 int lowerLeft = target.getPixel(width / 4, height * 3 / 4); in testPorterDuffColorFilter() 61 int lowerRight = target.getPixel(width * 3 / 4, height * 3 / 4); in testPorterDuffColorFilter() 70 assertEquals(Color.RED, target.getPixel(width / 4, height / 4)); in testPorterDuffColorFilter() 71 assertEquals(Color.BLUE, target.getPixel(width / 4, height * 3 / 4)); in testPorterDuffColorFilter() 72 assertEquals(Color.BLUE, target.getPixel(width * 3 / 4, height * 3 / 4)); in testPorterDuffColorFilter() 80 assertEquals(Color.RED, target.getPixel(width / 4, height / 4)); in testPorterDuffColorFilter() 81 assertEquals(Color.CYAN, target.getPixel(width / 4, height * 3 / 4)); in testPorterDuffColorFilter() 82 assertEquals(Color.CYAN, target.getPixel(width * 3 / 4, height * 3 / 4)); in testPorterDuffColorFilter()
|
D | ColorMatrixColorFilterTest.java | 59 ColorUtils.verifyColor(Color.CYAN, bitmap.getPixel(0, 0)); in testColorMatrixColorFilter() 62 ColorUtils.verifyColor(Color.GREEN, bitmap.getPixel(0, 0)); in testColorMatrixColorFilter() 65 ColorUtils.verifyColor(Color.RED, bitmap.getPixel(0, 0)); in testColorMatrixColorFilter() 69 ColorUtils.verifyColor(Color.WHITE, bitmap.getPixel(0, 0)); in testColorMatrixColorFilter() 85 ColorUtils.verifyColor(Color.argb(128, 255, 0, 64), bitmap.getPixel(0, 0), 2); in testColorMatrixColorFilter() 89 ColorUtils.verifyColor(Color.CYAN, bitmap.getPixel(0, 0)); in testColorMatrixColorFilter() 96 ColorUtils.verifyColor(Color.CYAN, bitmap.getPixel(0, 0)); in testColorMatrixColorFilter() 100 ColorUtils.verifyColor(Color.BLUE, bitmap.getPixel(0, 0)); in testColorMatrixColorFilter()
|
D | VulkanPreTransformTest.java | 130 diff += pixelDiff(bitmap.getPixel(0, 0), 0, 255, 0); in validatePixelValuesAfterRotation() 131 diff += pixelDiff(bitmap.getPixel(width - 1, 0), 255, 255, 0); in validatePixelValuesAfterRotation() 132 diff += pixelDiff(bitmap.getPixel(0, height - 1), 255, 0, 0); in validatePixelValuesAfterRotation() 133 diff += pixelDiff(bitmap.getPixel(width - 1, height - 1), 0, 0, 255); in validatePixelValuesAfterRotation() 135 diff += pixelDiff(bitmap.getPixel(0, 0), 255, 0, 0); in validatePixelValuesAfterRotation() 136 diff += pixelDiff(bitmap.getPixel(width - 1, 0), 0, 255, 0); in validatePixelValuesAfterRotation() 137 diff += pixelDiff(bitmap.getPixel(0, height - 1), 0, 0, 255); in validatePixelValuesAfterRotation() 138 diff += pixelDiff(bitmap.getPixel(width - 1, height - 1), 255, 255, 0); in validatePixelValuesAfterRotation()
|
D | LightingColorFilterTest.java | 52 verifyColor(Color.MAGENTA, bitmap.getPixel(0, 0)); in testLightingColorFilter() 57 verifyColor(Color.BLUE, bitmap.getPixel(0, 0)); in testLightingColorFilter() 62 verifyColor(Color.CYAN, bitmap.getPixel(0, 0)); in testLightingColorFilter() 69 verifyColor(Color.GREEN, bitmap.getPixel(0, 0)); in testLightingColorFilter() 75 verifyColor(Color.MAGENTA, bitmap.getPixel(0, 0)); in testLightingColorFilter() 82 verifyColor(Color.argb(255, 30, 30, 30), bitmap.getPixel(0, 0)); in testLightingColorFilter() 90 verifyColor(Color.argb(0x80, 30, 30, 30), bitmap.getPixel(0, 0)); in testLightingColorFilter()
|
D | RadialGradientTest.java | 56 ColorUtils.verifyColor(Color.BLACK, bitmap.getPixel(0, 0), 1); in testZeroScaleMatrix() 57 ColorUtils.verifyColor(Color.BLACK, bitmap.getPixel(1, 0), 1); in testZeroScaleMatrix() 58 ColorUtils.verifyColor(Color.BLACK, bitmap.getPixel(2, 0), 1); in testZeroScaleMatrix()
|
D | ComposeShaderTest.java | 65 int pixel = bitmap.getPixel(x, y); in testPorterDuff() 100 assertEquals(Color.WHITE, bitmap.getPixel(0, 0)); in testXfermode() 130 assertEquals(Color.WHITE, bitmap.getPixel(1, 1)); in testChildLocalMatrix() 137 assertEquals(Color.WHITE, bitmap.getPixel(2, 2)); in testChildLocalMatrix() 145 assertEquals(Color.WHITE, bitmap.getPixel(2, 2)); in testChildLocalMatrix() 153 assertEquals(Color.RED, bitmap.getPixel(2, 2)); in testChildLocalMatrix() 154 assertEquals(Color.CYAN, bitmap.getPixel(2, 1)); in testChildLocalMatrix()
|
D | BlurMaskFilterTest.java | 73 verifyColor(color, bitmap.getPixel(x, y), alphaTolerance); in verifyQuadrants() 74 verifyColor(color, bitmap.getPixel(right - x, y), alphaTolerance); in verifyQuadrants() 75 verifyColor(color, bitmap.getPixel(x, bottom - y), alphaTolerance); in verifyQuadrants() 76 verifyColor(color, bitmap.getPixel(right - x, bottom - y), alphaTolerance); in verifyQuadrants()
|
D | PaintFlagsDrawFilterTest.java | 80 pixelWithoutFilter = bitmapWithoutFilter.getPixel(i, j); in delta() 81 pixelWithFilter = bitmapWithFilter.getPixel(i, j); in delta() 97 int pixel = bitmap.getPixel(x, y); in verifyUnderline() 171 int color = bitmap.getPixel(i, j); in verifyContainsNonBW() 187 int color = bitmap.getPixel(i, j); in verifyContainsOnlyBlackAndWhite()
|
D | DashPathEffectTest.java | 74 assertEquals(FOREGROUND, bitmap.getPixel(x, y)); in testDashPathEffect() 76 assertEquals(BACKGROUND, bitmap.getPixel(x, y)); in testDashPathEffect() 79 assertEquals(BACKGROUND, bitmap.getPixel(x, y)); in testDashPathEffect()
|
D | BitmapTest.java | 140 + dst, Color.BLACK, dstBitmap.getPixel(0, 0)); in testCopyConfigs() 143 + dst, Color.WHITE, dstBitmap.getPixel(0, 0)); in testCopyConfigs() 299 ColorUtils.verifyColor(expected[0], observed.getPixel(0, 0)); in verify2x2BitmapContents() 300 ColorUtils.verifyColor(expected[1], observed.getPixel(1, 0)); in verify2x2BitmapContents() 301 ColorUtils.verifyColor(expected[2], observed.getPixel(0, 1)); in verify2x2BitmapContents() 302 ColorUtils.verifyColor(expected[3], observed.getPixel(1, 1)); in verify2x2BitmapContents() 448 bitmap.getPixel(0, 0); in testGenerationId() 487 assertEquals(0xffff0000, mBitmap.getPixel(10, 10)); in testEraseColor() 488 assertEquals(0xffff0000, mBitmap.getPixel(50, 50)); in testEraseColor() 504 int source = mBitmap.getPixel(10, 20); in testExtractAlpha() [all …]
|
D | SumPathEffectTest.java | 75 assertEquals(expected.getPixel(i, j), bitmap.getPixel(i, j)); in testSumPathEffect()
|
D | ComposePathEffectTest.java | 76 assertEquals(expected.getPixel(x, y), actual.getPixel(x, y)); in testComposePathEffect()
|
D | PathDashPathEffectTest.java | 71 if (expected.getPixel(x, y) != b.getPixel(x, y)) { in testPathDashPathEffect()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | ColorDrawableTest.java | 141 assertEquals(Color.WHITE, DrawableTestUtils.getPixel(d, 0, 0)); in testSetColorFilter() 144 assertEquals(Color.BLACK, DrawableTestUtils.getPixel(d, 0, 0)); in testSetColorFilter() 147 assertEquals(Color.BLACK, DrawableTestUtils.getPixel(d, 0, 0)); in testSetColorFilter() 153 assertEquals(Color.WHITE, DrawableTestUtils.getPixel(d, 0, 0)); in testSetTint() 157 assertEquals(Color.BLACK, DrawableTestUtils.getPixel(d, 0, 0)); in testSetTint() 167 final int pixel = b.getPixel(0, 0); in testDraw()
|
D | AdaptiveIconDrawableTest.java | 226 assertEquals(255, Color.alpha(bitmap.getPixel(50, 50))); in testSetAlpha() 231 assertEquals(200, Color.alpha(bitmap.getPixel(50, 50))); in testSetAlpha() 236 assertEquals(100, Color.alpha(bitmap.getPixel(50, 50))); in testSetAlpha() 361 int ra = (a.getPixel(i, j) >> 16) & 0xff; in equalBitmaps() 362 int ga = (a.getPixel(i, j) >> 8) & 0xff; in equalBitmaps() 363 int ba = a.getPixel(i, j) & 0xff; in equalBitmaps() 364 int rb = (b.getPixel(i, j) >> 16) & 0xff; in equalBitmaps() 365 int gb = (b.getPixel(i, j) >> 8) & 0xff; in equalBitmaps() 366 int bb = b.getPixel(i, j) & 0xff; in equalBitmaps() 367 if (region.contains(i, j) && a.getPixel(i, j) != b.getPixel(i, j) ) { in equalBitmaps()
|
D | TransitionDrawableTest.java | 156 int colorFrom = mBitmap.getPixel(0, 0); in testReverseTransition() 164 colorFrom = mBitmap.getPixel(0, 0); in testReverseTransition() 214 assertEquals(color, bmp.getPixel(i, j)); in verifyColorFillRect() 222 assertTrue(color != bmp.getPixel(i, j)); in verifyColorNotFillRect()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/ |
D | PathShapeTest.java | 75 assertEquals(TEST_COLOR_1, bitmap.getPixel(50, 50)); in testDraw() 86 if (bitmap.getPixel(25, i) == TEST_COLOR_2) { in testDraw() 89 if (bitmap.getPixel(i, 25) == TEST_COLOR_2) { in testDraw() 92 if (bitmap.getPixel(i, i) == TEST_COLOR_2) { in testDraw()
|
D | RoundRectShapeTest.java | 86 assertEquals(0, bitmap.getPixel(0, 0)); in testDraw() 87 assertEquals(TEST_COLOR_1, bitmap.getPixel(TEST_WIDTH / 2, 0)); in testDraw() 91 assertEquals(0, bitmap.getPixel(0, 0)); in testDraw() 92 assertEquals(TEST_COLOR_2, bitmap.getPixel(TEST_WIDTH / 2, 0)); in testDraw()
|
D | ArcShapeTest.java | 81 assertEquals(TEST_COLOR_1, bitmap.getPixel(TEST_WIDTH / 2, TEST_HEIGHT / 2)); in testDraw() 91 if (bitmap.getPixel(i, i) == TEST_COLOR_2) { in testDraw()
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | BitmapUtils.java | 55 if (bmp1.getPixel(i, j) != bmp2.getPixel(i, j)) { in compareBitmaps() 96 int firstColor = bitmap.getPixel(0, 0); in logIfBitmapSolidColor() 99 if (bitmap.getPixel(x, y) != firstColor) { in logIfBitmapSolidColor()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/ |
D | ImageCompare.java | 67 int pixel1 = bitmap1.getPixel(x, y); in psnr() 68 int pixel2 = bitmap2.getPixel(x, y); in psnr()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | TextureViewTest.java | 94 assertEquals(Color.WHITE, getPixel(window, center)); in testFirstFrames() 224 int color = dstBitmap.getPixel(0, 0); in verify() 289 private int getPixel(Window window, Point point) { in getPixel() method in TextureViewTest 294 int pixel = screenshot.getPixel(point.x, point.y); in getPixel() 302 int pixel = getPixel(window, point); in waitForColor() 314 int pixel = getPixel(window, point); in waitForChange()
|