/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | LinearGradientTest.java | 41 assertEquals(b.getPixel(10, 10), b.getPixel(20, 10)); in testLinearGradient() 43 assertTrue(Color.blue(b.getPixel(10, 0)) > Color.blue(b.getPixel(10, 5))); in testLinearGradient() 44 assertTrue(Color.blue(b.getPixel(10, 5)) > Color.blue(b.getPixel(10, 10))); in testLinearGradient() 45 assertTrue(Color.green(b.getPixel(10, 0)) < Color.green(b.getPixel(10, 5))); in testLinearGradient() 46 assertTrue(Color.green(b.getPixel(10, 5)) < Color.green(b.getPixel(10, 10))); in testLinearGradient() 48 assertTrue(Color.green(b.getPixel(10, 15)) > Color.green(b.getPixel(10, 20))); in testLinearGradient() 49 assertTrue(Color.green(b.getPixel(10, 20)) > Color.green(b.getPixel(10, 25))); in testLinearGradient() 50 assertTrue(Color.red(b.getPixel(10, 15)) < Color.red(b.getPixel(10, 20))); in testLinearGradient() 51 assertTrue(Color.red(b.getPixel(10, 20)) < Color.red(b.getPixel(10, 25))); in testLinearGradient() 57 assertEquals(b.getPixel(10, 10), b.getPixel(20, 10)); in testLinearGradient() [all …]
|
D | PorterDuffXfermodeTest.java | 47 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4)); in testPorterDuffXfermode() 48 assertEquals(Color.BLUE, target.getPixel(WIDTH / 4, HEIGHT * 3 / 4)); in testPorterDuffXfermode() 49 assertEquals(Color.BLUE, target.getPixel(WIDTH * 3 / 4, HEIGHT * 3 / 4)); in testPorterDuffXfermode() 56 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4)); in testPorterDuffXfermode() 57 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT * 3 / 4)); in testPorterDuffXfermode() 58 assertEquals(Color.TRANSPARENT, target.getPixel(WIDTH * 3 / 4, HEIGHT * 3 / 4)); in testPorterDuffXfermode() 65 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4)); in testPorterDuffXfermode() 66 assertEquals(Color.MAGENTA, target.getPixel(WIDTH / 4, HEIGHT * 3 / 4)); in testPorterDuffXfermode() 67 assertEquals(Color.BLUE, target.getPixel(WIDTH * 3 / 4, HEIGHT * 3 / 4)); in testPorterDuffXfermode()
|
D | PorterDuffColorFilterTest.java | 49 assertEquals(Color.RED, target.getPixel(width / 4, height / 4)); in testPorterDuffColorFilter() 50 int lowerLeft = target.getPixel(width / 4, height * 3 / 4); in testPorterDuffColorFilter() 53 int lowerRight = target.getPixel(width * 3 / 4, height * 3 / 4); in testPorterDuffColorFilter() 62 assertEquals(Color.RED, target.getPixel(width / 4, height / 4)); in testPorterDuffColorFilter() 63 assertEquals(Color.BLUE, target.getPixel(width / 4, height * 3 / 4)); in testPorterDuffColorFilter() 64 assertEquals(Color.BLUE, target.getPixel(width * 3 / 4, height * 3 / 4)); in testPorterDuffColorFilter() 72 assertEquals(Color.RED, target.getPixel(width / 4, height / 4)); in testPorterDuffColorFilter() 73 assertEquals(Color.CYAN, target.getPixel(width / 4, height * 3 / 4)); in testPorterDuffColorFilter() 74 assertEquals(Color.CYAN, target.getPixel(width * 3 / 4, height * 3 / 4)); in testPorterDuffColorFilter()
|
D | ColorMatrixColorFilterTest.java | 50 assertColor(Color.CYAN, bitmap.getPixel(0, 0)); in testColorMatrixColorFilter() 53 assertColor(Color.GREEN, bitmap.getPixel(0, 0)); in testColorMatrixColorFilter() 56 assertColor(Color.RED, bitmap.getPixel(0, 0)); in testColorMatrixColorFilter() 60 assertColor(Color.WHITE, bitmap.getPixel(0, 0)); in testColorMatrixColorFilter() 76 assertColor(Color.argb(128, 255, 0, 64), bitmap.getPixel(0, 0), 2); in testColorMatrixColorFilter() 80 assertColor(Color.CYAN, bitmap.getPixel(0, 0)); in testColorMatrixColorFilter() 87 assertColor(Color.CYAN, bitmap.getPixel(0, 0)); in testColorMatrixColorFilter() 91 assertColor(Color.BLUE, bitmap.getPixel(0, 0)); in testColorMatrixColorFilter()
|
D | LightingColorFilterTest.java | 42 assertColor(Color.MAGENTA, bitmap.getPixel(0, 0)); in testLightingColorFilter() 47 assertColor(Color.BLUE, bitmap.getPixel(0, 0)); in testLightingColorFilter() 52 assertColor(Color.CYAN, bitmap.getPixel(0, 0)); in testLightingColorFilter() 59 assertColor(Color.GREEN, bitmap.getPixel(0, 0)); in testLightingColorFilter() 65 assertColor(Color.MAGENTA, bitmap.getPixel(0, 0)); in testLightingColorFilter() 72 assertColor(Color.argb(255, 30, 30, 30), bitmap.getPixel(0, 0)); in testLightingColorFilter() 80 assertColor(Color.argb(0x80, 30, 30, 30), bitmap.getPixel(0, 0)); in testLightingColorFilter()
|
D | BlurMaskFilterTest.java | 66 checkColor(color, bitmap.getPixel(x, y), alphaTolerance); in checkQuadrants() 67 checkColor(color, bitmap.getPixel(right - x, y), alphaTolerance); in checkQuadrants() 68 checkColor(color, bitmap.getPixel(x, bottom - y), alphaTolerance); in checkQuadrants() 69 checkColor(color, bitmap.getPixel(right - x, bottom - y), alphaTolerance); in checkQuadrants()
|
D | BitmapTest.java | 344 assertEquals(0xffff0000, mBitmap.getPixel(10, 10)); in testEraseColor() 345 assertEquals(0xffff0000, mBitmap.getPixel(50, 50)); in testEraseColor() 362 int source = mBitmap.getPixel(10, 20); in testExtractAlpha1() 363 int result = ret.getPixel(10, 20); in testExtractAlpha1() 382 int source = mBitmap.getPixel(10, 20); in testExtractAlpha2() 383 int result = ret.getPixel(10, 20); in testExtractAlpha2() 432 mBitmap.getPixel(10, 16); in testGetPixel() 441 mBitmap.getPixel(200, 16); in testGetPixel() 448 mBitmap.getPixel(10, 300); in testGetPixel() 455 assertEquals(0xFF << 24, mBitmap.getPixel(10, 16)); in testGetPixel() [all …]
|
D | DashPathEffectTest.java | 67 assertEquals(FOREGROUND, bitmap.getPixel(x, y)); in testDashPathEffect() 69 assertEquals(BACKGROUND, bitmap.getPixel(x, y)); in testDashPathEffect() 72 assertEquals(BACKGROUND, bitmap.getPixel(x, y)); in testDashPathEffect()
|
D | PaintFlagsDrawFilterTest.java | 77 pixelWithoutFilter = bitmapWithoutFilter.getPixel(i, j); in delta() 78 pixelWithFilter = bitmapWithFilter.getPixel(i, j); in delta() 94 int pixel = bitmap.getPixel(x, y); in assertUnderline() 167 int color = bitmap.getPixel(i, j); in assertContainsNonBW() 183 int color = bitmap.getPixel(i, j); in assertContainsOnlyBlackAndWhite()
|
D | SumPathEffectTest.java | 68 assertEquals(expected.getPixel(i, j), bitmap.getPixel(i, j)); in testSumPathEffect()
|
D | ComposePathEffectTest.java | 67 assertEquals(expected.getPixel(x, y), actual.getPixel(x, y)); in testComposePathEffect()
|
D | PathDashPathEffectTest.java | 65 if (expected.getPixel(x, y) != b.getPixel(x, y)) { in testPathDashPathEffect()
|
D | PictureTest.java | 164 assertEquals(Color.BLUE, bitmap.getPixel(0, 0)); in checkBitmap() 166 assertEquals(Color.RED, bitmap.getPixel(x, 0)); in checkBitmap() 171 assertEquals(Color.GREEN, bitmap.getPixel(x, y)); in checkBitmap()
|
D | ComposeShaderTest.java | 59 int pixel = bitmap.getPixel(x, y); in testPorterDuff() 93 assertEquals(Color.WHITE, bitmap.getPixel(0, 0)); in testXfermode()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | ColorDrawableTest.java | 123 assertEquals(Color.WHITE, DrawableTestUtils.getPixel(d, 0, 0)); in testSetColorFilter() 126 assertEquals(Color.BLACK, DrawableTestUtils.getPixel(d, 0, 0)); in testSetColorFilter() 129 assertEquals(Color.BLACK, DrawableTestUtils.getPixel(d, 0, 0)); in testSetColorFilter() 134 assertEquals(Color.WHITE, DrawableTestUtils.getPixel(d, 0, 0)); in testSetTint() 138 assertEquals(Color.BLACK, DrawableTestUtils.getPixel(d, 0, 0)); in testSetTint() 147 final int pixel = b.getPixel(0, 0); in testDraw()
|
D | DrawableTestUtils.java | 157 int idealColor = expected.getPixel(x, y); in compareImages() 158 int givenColor = actual.getPixel(x, y); in compareImages() 185 public static int getPixel(Drawable d, int x, int y) { in getPixel() method in DrawableTestUtils 193 final int pixel = b.getPixel(x, y); in getPixel()
|
D | TransitionDrawableTest.java | 139 int colorFrom = mBitmap.getPixel(0, 0); in testReverseTransition() 147 colorFrom = mBitmap.getPixel(0, 0); in testReverseTransition() 199 assertEquals(color, bmp.getPixel(i, j)); in assertColorFillRect() 207 assertTrue(color != bmp.getPixel(i, j)); in assertColorNotFillRect()
|
D | PictureDrawableTest.java | 54 assertEquals(0xff0f0b0c, destBitmap.getPixel(10, 10)); in testDraw() 57 assertEquals(0xff0a0c0b, destBitmap.getPixel(10, 10)); in testDraw()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | TextureViewTest.java | 76 assertEquals(Color.WHITE, getPixel(center)); in testFirstFrames() 90 private int getPixel(Point point) { in getPixel() method in TextureViewTest 92 int pixel = screenshot.getPixel(point.x, point.y); in getPixel() 100 int pixel = getPixel(point); in waitForColor() 112 int pixel = getPixel(point); in waitForChange()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/ |
D | PathShapeTest.java | 67 assertEquals(TEST_COLOR_1, bitmap.getPixel(50, 50)); in testDraw() 78 if (bitmap.getPixel(25, i) == TEST_COLOR_2) { in testDraw() 81 if (bitmap.getPixel(i, 25) == TEST_COLOR_2) { in testDraw() 84 if (bitmap.getPixel(i, i) == TEST_COLOR_2) { in testDraw()
|
D | RoundRectShapeTest.java | 76 assertEquals(0, bitmap.getPixel(0, 0)); in testDraw() 77 assertEquals(TEST_COLOR_1, bitmap.getPixel(TEST_WIDTH / 2, 0)); in testDraw() 81 assertEquals(0, bitmap.getPixel(0, 0)); in testDraw() 82 assertEquals(TEST_COLOR_2, bitmap.getPixel(TEST_WIDTH / 2, 0)); in testDraw()
|
D | ArcShapeTest.java | 61 assertEquals(TEST_COLOR_1, bitmap.getPixel(TEST_WIDTH / 2, TEST_HEIGHT / 2)); in testDraw() 71 if (bitmap.getPixel(i, i) == TEST_COLOR_2) { in testDraw()
|
D | OvalShapeTest.java | 55 assertEquals(TEST_COLOR_1, bitmap.getPixel(TEST_WIDTH / 2, TEST_HEIGHT / 2)); in testDraw() 64 if (bitmap.getPixel(i, i) == TEST_COLOR_2) { in testDraw()
|
/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/libs/deviceutil/src/android/cts/util/ |
D | BitmapUtils.java | 49 if (bmp1.getPixel(i, j) != bmp2.getPixel(i, j)) { in compareBitmaps()
|