/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/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() 86 protected boolean verifyPixel(int color, int expectedColor) { in create() 87 return super.verifyPixel(color, expectedColor) && verifier.verifyPixel(color); in create()
|
D | PerPixelBitmapVerifier.java | 87 int expectedColor = getExpectedColor(x, y); in verifyPixel() local 88 return CompareUtils.verifyPixelWithThreshold(observedColor, expectedColor, mColorTolerance); in verifyPixel()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | ShadowTests.java | 43 private static SamplePointVerifier createVerifier(int expectedColor, in createVerifier() argument 57 expectedColor, in createVerifier() 58 expectedColor, in createVerifier()
|
D | LayerTests.java | 66 final int expectedColor = Color.rgb(255, 191, 191); in testLayerPaintAlpha() local 77 .runWithVerifier(new ColorVerifier(expectedColor)); in testLayerPaintAlpha() 83 final int expectedColor = Color.rgb(255, 128, 128); in testLayerPaintSimpleAlphaWithHardware() local 91 .runWithVerifier(new ColorVerifier(expectedColor)); in testLayerPaintSimpleAlphaWithHardware() 97 final int expectedColor = Color.rgb(255, 128, 128); in testLayerPaintSimpleAlphaWithSoftware() local 105 .runWithVerifier(new ColorVerifier(expectedColor)); in testLayerPaintSimpleAlphaWithSoftware() 158 final int expectedColor = Color.rgb(54, 54, 54); in testLayerPaintColorFilter() local 167 .runWithVerifier(new ColorVerifier(expectedColor)); in testLayerPaintColorFilter() 175 final int expectedColor = Color.WHITE; in testLayerPaintBlend() local 189 .runWithVerifier(new ColorVerifier(expectedColor)); in testLayerPaintBlend()
|
/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 | ColorTest.java | 90 final int expectedColor = pair[0]; in resourceColor() local 95 + Integer.toHexString(expectedColor) + " expected", in resourceColor() 96 expectedColor, in resourceColor() 116 assertEquals("Color should be expected value", expectedColor, value.data); in resourceColor()
|
D | BitmapColorSpaceTest.java | 349 @ColorInt int newColor, @ColorInt int expectedColor) { in verifySetPixel() argument 359 verifySetPixel(b, newColor, expectedColor); in verifySetPixel() 362 verifySetPixel(b, newColor, expectedColor); in verifySetPixel() 365 verifySetPixel(b, newColor, expectedColor); in verifySetPixel() 372 @ColorInt int newColor, @ColorInt int expectedColor) { in verifySetPixel() argument 379 assertEquals(expectedColor, dst.asIntBuffer().get()); in verifySetPixel() 389 @ColorInt int newColor, @ColorInt int expectedColor) { in verifySetPixels() argument 399 verifySetPixels(b, newColor, expectedColor); in verifySetPixels() 402 verifySetPixels(b, newColor, expectedColor); in verifySetPixels() 405 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/view/src/android/view/cts/ |
D | TextureViewTest.java | 196 float[] expectedColor = ColorSpace.connect(srcSpace, dstSpace).transform(srcColor); in verify() local 202 assertEquals(expectedColor[0], outputColor[0], 0.01f); in verify() 203 assertEquals(expectedColor[1], outputColor[1], 0.01f); in verify() 204 assertEquals(expectedColor[2], outputColor[2], 0.01f); in verify()
|
/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()
|