Home
last modified time | relevance | path

Searched refs:getPixel (Results 1 – 25 of 50) sorted by relevance

12

/cts/tests/tests/graphics/src/android/graphics/cts/
DLinearGradientTest.java41 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 …]
DPorterDuffXfermodeTest.java47 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()
DPorterDuffColorFilterTest.java49 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()
DColorMatrixColorFilterTest.java50 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()
DLightingColorFilterTest.java42 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()
DBlurMaskFilterTest.java66 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()
DBitmapTest.java344 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 …]
DDashPathEffectTest.java67 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()
DPaintFlagsDrawFilterTest.java77 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()
DSumPathEffectTest.java68 assertEquals(expected.getPixel(i, j), bitmap.getPixel(i, j)); in testSumPathEffect()
DComposePathEffectTest.java67 assertEquals(expected.getPixel(x, y), actual.getPixel(x, y)); in testComposePathEffect()
DPathDashPathEffectTest.java65 if (expected.getPixel(x, y) != b.getPixel(x, y)) { in testPathDashPathEffect()
DPictureTest.java164 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()
DComposeShaderTest.java59 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/
DColorDrawableTest.java123 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()
DDrawableTestUtils.java157 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()
DTransitionDrawableTest.java139 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()
DPictureDrawableTest.java54 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/
DTextureViewTest.java76 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/
DPathShapeTest.java67 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()
DRoundRectShapeTest.java76 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()
DArcShapeTest.java61 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()
DOvalShapeTest.java55 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/
DImageCompare.java67 int pixel1 = bitmap1.getPixel(x, y); in psnr()
68 int pixel2 = bitmap2.getPixel(x, y); in psnr()
/cts/libs/deviceutil/src/android/cts/util/
DBitmapUtils.java49 if (bmp1.getPixel(i, j) != bmp2.getPixel(i, j)) { in compareBitmaps()

12