/cts/tests/tests/opengl/src/android/opengl/cts/ |
D | ColorBufferTest.java | 51 float[] expectedColor = {r, g, b, a}; in test_RGBA_1001() local 59 compare(expectedColor, actualColor); in test_RGBA_1001() 68 float[] expectedColor = {r, g, b, a}; in test_RGBA_1101() local 77 compare(expectedColor, actualColor); in test_RGBA_1101() 87 float[] expectedColor = {r, g, b, a}; in test_RGBA_1111() local 96 compare(expectedColor, actualColor); in test_RGBA_1111() 106 float[] expectedColor = {r, g, b, a}; in test_RGBA_0101() local 115 compare(expectedColor, actualColor); in test_RGBA_0101() 125 float[] expectedColor = {r, g, b, a}; in test_RGBA_0011() local 134 compare(expectedColor, actualColor); in test_RGBA_0011() [all …]
|
D | NativeColorBufferTest.java | 46 float[] expectedColor = {r, g, b, a}; in test_RGBA_1001() local 54 compare(expectedColor, actualColor); in test_RGBA_1001() 63 float[] expectedColor = {r, g, b, a}; in test_RGBA_1101() local 72 compare(expectedColor, actualColor); in test_RGBA_1101() 82 float[] expectedColor = {r, g, b, a}; in test_RGBA_1111() local 91 compare(expectedColor, actualColor); in test_RGBA_1111() 101 float[] expectedColor = {r, g, b, a}; in test_RGBA_0101() local 110 compare(expectedColor, actualColor); in test_RGBA_0101() 120 float[] expectedColor = {r, g, b, a}; in test_RGBA_0011() local 129 compare(expectedColor, actualColor); in test_RGBA_0011() [all …]
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/util/ |
D | CompareUtils.java | 9 public static boolean verifyPixelWithThreshold(int color, int expectedColor, int threshold) { in verifyPixelWithThreshold() argument 10 int diff = Math.abs(Color.red(color) - Color.red(expectedColor)) in verifyPixelWithThreshold() 11 + Math.abs(Color.green(color) - Color.green(expectedColor)) in verifyPixelWithThreshold() 12 + Math.abs(Color.blue(color) - Color.blue(expectedColor)); in verifyPixelWithThreshold()
|
/cts/hostsidetests/services/activityandwindowmanager/activitymanager/src/android/server/cts/ |
D | SplashscreenTests.java | 37 private void assertAllColor(BufferedImage img, Rectangle bounds, int expectedColor) { in assertAllColor() argument 43 assertEquals("Colors must match at x=" + x + " y=" + y, expectedColor, color); in assertAllColor()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | LayerTests.java | 63 final int expectedColor = Color.rgb(255, 191, 191); in testLayerPaintAlpha() local 74 .runWithVerifier(new ColorVerifier(expectedColor)); in testLayerPaintAlpha() 80 final int expectedColor = Color.rgb(255, 128, 128); in testLayerPaintSimpleAlphaWithHardware() local 88 .runWithVerifier(new ColorVerifier(expectedColor)); in testLayerPaintSimpleAlphaWithHardware() 94 final int expectedColor = Color.rgb(255, 128, 128); in testLayerPaintSimpleAlphaWithSoftware() local 102 .runWithVerifier(new ColorVerifier(expectedColor)); in testLayerPaintSimpleAlphaWithSoftware() 110 final int expectedColor = Color.rgb(54, 54, 54); in testLayerPaintColorFilter() local 119 .runWithVerifier(new ColorVerifier(expectedColor)); in testLayerPaintColorFilter() 127 final int expectedColor = Color.WHITE; in testLayerPaintBlend() local 141 .runWithVerifier(new ColorVerifier(expectedColor)); in testLayerPaintBlend()
|
D | ShadowTests.java | 40 protected boolean verifyPixel(int color, int expectedColor) { in verifyPixel() argument 41 return super.verifyPixel(color, expectedColor) in verifyPixel()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/ |
D | SamplePointVerifier.java | 74 protected boolean verifyPixel(int color, int expectedColor) { in verifyPixel() argument 75 return CompareUtils.verifyPixelWithThreshold(color, expectedColor, mTolerance); in verifyPixel()
|
D | PerPixelBitmapVerifier.java | 90 int expectedColor = getExpectedColor(x, y); in verifyPixel() local 91 return CompareUtils.verifyPixelWithThreshold(observedColor, expectedColor, mColorTolerance); in verifyPixel()
|
/cts/tests/tests/assist/service/src/android/voiceinteraction/service/ |
D | MainInteractionSession.java | 180 int expectedColor = 0; in compareScreenshot() local 184 expectedColor += 1; in compareScreenshot() 190 double colorRatio = (double) expectedColor / (expectedColor + wrongColor); in compareScreenshot()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | BitmapColorSpaceTest.java | 345 @ColorInt int newColor, @ColorInt int expectedColor) { in verifySetPixel() argument 355 verifySetPixel(b, newColor, expectedColor); in verifySetPixel() 358 verifySetPixel(b, newColor, expectedColor); in verifySetPixel() 361 verifySetPixel(b, newColor, expectedColor); in verifySetPixel() 368 @ColorInt int newColor, @ColorInt int expectedColor) { in verifySetPixel() argument 375 assertEquals(expectedColor, dst.asIntBuffer().get()); in verifySetPixel() 385 @ColorInt int newColor, @ColorInt int expectedColor) { in verifySetPixels() argument 395 verifySetPixels(b, newColor, expectedColor); in verifySetPixels() 398 verifySetPixels(b, newColor, expectedColor); in verifySetPixels() 401 verifySetPixels(b, newColor, expectedColor); in verifySetPixels() [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/util/ |
D | TestUtils.java | 288 private static boolean areColorsTheSameWithTolerance(@ColorInt int expectedColor, in areColorsTheSameWithTolerance() argument 295 int expectedAlpha = Color.alpha(expectedColor); in areColorsTheSameWithTolerance() 296 int expectedRed = Color.red(expectedColor); in areColorsTheSameWithTolerance() 297 int expectedGreen = Color.green(expectedColor); in areColorsTheSameWithTolerance() 298 int expectedBlue = Color.blue(expectedColor); in areColorsTheSameWithTolerance()
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | CalendarTest.java | 1780 final int expectedColor = ColorHelper.DEFAULT_COLORS[ColorHelper.E_COLOR_0]; in testEventColors() local 1781 ev.put(Events.EVENT_COLOR, expectedColor); in testEventColors() 1793 expectedColor, in testEventColors()
|