Home
last modified time | relevance | path

Searched refs:verifyColor (Results 1 – 15 of 15) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/cts/
DLightingColorFilterTest.java39 private void verifyColor(int expected, int actual) { in verifyColor() method in LightingColorFilterTest
40 ColorUtils.verifyColor(expected, actual, TOLERANCE); in verifyColor()
53 verifyColor(Color.MAGENTA, bitmap.getPixel(0, 0)); in testLightingColorFilter()
58 verifyColor(Color.BLUE, bitmap.getPixel(0, 0)); in testLightingColorFilter()
63 verifyColor(Color.CYAN, bitmap.getPixel(0, 0)); in testLightingColorFilter()
70 verifyColor(Color.GREEN, bitmap.getPixel(0, 0)); in testLightingColorFilter()
76 verifyColor(Color.MAGENTA, bitmap.getPixel(0, 0)); in testLightingColorFilter()
83 verifyColor(Color.argb(255, 30, 30, 30), bitmap.getPixel(0, 0)); in testLightingColorFilter()
91 verifyColor(Color.argb(0x80, 30, 30, 30), bitmap.getPixel(0, 0)); in testLightingColorFilter()
97 ColorUtils.verifyColor(Color.BLACK, filter.getColorAdd()); in testGetColorAdd()
[all …]
DColorMatrixColorFilterTest.java60 ColorUtils.verifyColor(Color.CYAN, bitmap.getPixel(0, 0)); in testColorMatrixColorFilter()
63 ColorUtils.verifyColor(Color.GREEN, bitmap.getPixel(0, 0)); in testColorMatrixColorFilter()
66 ColorUtils.verifyColor(Color.RED, bitmap.getPixel(0, 0)); in testColorMatrixColorFilter()
70 ColorUtils.verifyColor(Color.WHITE, bitmap.getPixel(0, 0)); in testColorMatrixColorFilter()
86 ColorUtils.verifyColor(Color.argb(128, 255, 0, 64), bitmap.getPixel(0, 0), 2); in testColorMatrixColorFilter()
90 ColorUtils.verifyColor(Color.CYAN, bitmap.getPixel(0, 0)); in testColorMatrixColorFilter()
97 ColorUtils.verifyColor(Color.CYAN, bitmap.getPixel(0, 0)); in testColorMatrixColorFilter()
101 ColorUtils.verifyColor(Color.BLUE, bitmap.getPixel(0, 0)); in testColorMatrixColorFilter()
DBlurMaskFilterTest.java74 verifyColor(color, bitmap.getPixel(x, y), alphaTolerance); in verifyQuadrants()
75 verifyColor(color, bitmap.getPixel(right - x, y), alphaTolerance); in verifyQuadrants()
76 verifyColor(color, bitmap.getPixel(x, bottom - y), alphaTolerance); in verifyQuadrants()
77 verifyColor(color, bitmap.getPixel(right - x, bottom - y), alphaTolerance); in verifyQuadrants()
80 private void verifyColor(int expected, int actual, int alphaTolerance) { in verifyColor() method in BlurMaskFilterTest
DLinearGradientTest.java96 ColorUtils.verifyColor("Top-most color should be mostly blue!",
99 ColorUtils.verifyColor("Middle color should be mostly green!",
102 ColorUtils.verifyColor("Bottom-most color should be mostly red!",
105 ColorUtils.verifyColor("The pixels in same gradient line should be equivalent!",
121 ColorUtils.verifyColor("Top-most color should be mostly red!",
124 ColorUtils.verifyColor("Bottom-most color should be mostly blue!",
128 ColorUtils.verifyColor("The pixels in same gradient line should be equivalent!",
156 ColorUtils.verifyColor(Color.BLACK, bitmap.getPixel(0, 0), 1);
157 ColorUtils.verifyColor(Color.BLACK, bitmap.getPixel(20, 20), 1);
DRadialGradientTest.java63 ColorUtils.verifyColor(Color.BLACK, bitmap.getPixel(0, 0), 1); in testZeroScaleMatrix()
64 ColorUtils.verifyColor(Color.BLACK, bitmap.getPixel(1, 0), 1); in testZeroScaleMatrix()
65 ColorUtils.verifyColor(Color.BLACK, bitmap.getPixel(2, 0), 1); in testZeroScaleMatrix()
89 ColorUtils.verifyColor("Center color should be red!", convert.apply(red), in testColorLong()
95 ColorUtils.verifyColor("Edge point " + p + " should be blue", blueColor, in testColorLong()
126 ColorUtils.verifyColor("Point(" + x + ", " + y + ") should match " in testColorLong()
DBitmapShaderTest.java96 verifyColor(BORDER_COLOR, bitmap, x + tileX, y + tileY); in verifyTile()
98 verifyColor(CENTER_COLOR, bitmap, x + tileX, y + tileY); in verifyTile()
109 private void verifyColor(int color, Bitmap bitmap, int x, int y) { in verifyColor() method in BitmapShaderTest
210 ColorUtils.verifyColor("expected solid red color", Color.RED, dstBitmap.getPixel(0, 0), 0); in testFiltering()
214 ColorUtils.verifyColor("color should be a blue/red mix", Color.valueOf(0.5f, 0.0f, 0.5f), in testFiltering()
219 ColorUtils.verifyColor("expected solid red color", Color.RED, dstBitmap.getPixel(0, 0), 0); in testFiltering()
224 ColorUtils.verifyColor("color should be a blue/red mix", Color.valueOf(0.5f, 0.0f, 0.5f), in testFiltering()
DSweepGradientTest.java171 ColorUtils.verifyColor(Color.BLACK, bitmap.getPixel(0, 0), 1); in testZeroScaleMatrix()
172 ColorUtils.verifyColor(Color.BLACK, bitmap.getPixel(1, 0), 1); in testZeroScaleMatrix()
292 ColorUtils.verifyColor("First color (at angle " + toString(angle) in testColorLong()
307 ColorUtils.verifyColor("Radius " + radius + " at angle " + toString(angle) in testColorLong()
DBitmapRGBAF16Test.java135 ColorUtils.verifyColor(0x7f102030, after, 1); in testSetPixel()
141 ColorUtils.verifyColor(0x7f102030, after, 1); in testSetPixel()
DBitmapTest.java451 ColorUtils.verifyColor(expected[0], observed.getPixel(0, 0)); in verify2x2BitmapContents()
452 ColorUtils.verifyColor(expected[1], observed.getPixel(1, 0)); in verify2x2BitmapContents()
453 ColorUtils.verifyColor(expected[2], observed.getPixel(0, 1)); in verify2x2BitmapContents()
454 ColorUtils.verifyColor(expected[3], observed.getPixel(1, 1)); in verify2x2BitmapContents()
975 ColorUtils.verifyColor("Erasing to Bitmap's ColorSpace " in testGetColor()
990 ColorUtils.verifyColor("Bitmap(Config: " + mBitmap.getConfig() in testGetColor()
1029 ColorUtils.verifyColor("Config " + config + " mismatch at 10, 10 ", in testEraseColorLong()
1031 ColorUtils.verifyColor("Config " + config + " mismatch at 50, 50 ", in testEraseColorLong()
1056 ColorUtils.verifyColor("Config " + config + ", ColorSpace " + cs in testEraseColorLong()
1059 ColorUtils.verifyColor("Config " + config + ", ColorSpace " + cs in testEraseColorLong()
[all …]
DBitmapColorSpaceTest.java508 ColorUtils.verifyColor(expectedColor, dst.asIntBuffer().get(), 1); in verifySetPixel()
558 ColorUtils.verifyColor(expectedColor, buffer.get(), 1); in verifySetPixels()
1178 ColorUtils.verifyColor("PRO_PHOTO image did not convert properly", expected, in testProPhoto()
DPaintTest.java2253 ColorUtils.verifyColor("Paint#" + methodName + " mismatch for " + cs, srgbColor,
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DColorUtils.java30 public static void verifyColor(int expected, int observed) { in verifyColor() method in ColorUtils
31 verifyColor(expected, observed, 0); in verifyColor()
34 public static void verifyColor(int expected, int observed, int tolerance) { in verifyColor() method in ColorUtils
35 verifyColor("", expected, observed, tolerance); in verifyColor()
46 public static void verifyColor(@NonNull String s, int expected, int observed, int tolerance) { in verifyColor() method in ColorUtils
90 public static void verifyColor(@NonNull String msg, Color expected, Color observed, in verifyColor() method in ColorUtils
/cts/tests/tests/appwidget/src/android/appwidget/cts/
DDarkTextThemeTest.java147 verifyColor(mAppWidgetHostView, Color.WHITE); in testWidget_light()
168 verifyColor(mAppWidgetHostView, Color.BLACK); in testWidget_dark()
181 verifyColor(listView.getChildAt(0), Color.WHITE); in testCollection_light()
182 verifyColor(listView.getChildAt(1), Color.WHITE); in testCollection_light()
183 verifyColor(listView.getChildAt(2), Color.WHITE); in testCollection_light()
197 verifyColor(listView.getChildAt(0), Color.BLACK); in testCollection_dark()
198 verifyColor(listView.getChildAt(1), Color.BLACK); in testCollection_dark()
199 verifyColor(listView.getChildAt(2), Color.BLACK); in testCollection_dark()
264 private void verifyColor(View parent, int color) { in verifyColor() method in DarkTextThemeTest
/cts/tests/framework/base/windowmanager/src/android/server/wm/animations/
DActivityTransitionTests.java658 final Color verifyColor = Color.valueOf(color); in getIsAppRegionOfScreenOfColorResult() local
676 verifyColor.red(), verifyColor.green(), verifyColor.blue()}, in getIsAppRegionOfScreenOfColorResult()
678 return new ColorCheckResult(new Point(sampleX, sampleY), verifyColor, in getIsAppRegionOfScreenOfColorResult()
DBlurTests.java714 ColorUtils.verifyColor( in assertBlur()
720 ColorUtils.verifyColor( in assertBlur()
763 ColorUtils.verifyColor( in assertPixel()