/cts/tests/tests/opengl/src/android/opengl/cts/ |
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 …]
|
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 …]
|
/cts/tests/tests/uirendering27/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/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/uirendering27/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 | LayerTests.java | 65 final int expectedColor = Color.rgb(255, 191, 191); in testLayerPaintAlpha() local 76 .runWithVerifier(new ColorVerifier(expectedColor)); in testLayerPaintAlpha() 82 final int expectedColor = Color.rgb(255, 128, 128); in testLayerPaintSimpleAlphaWithHardware() local 90 .runWithVerifier(new ColorVerifier(expectedColor)); in testLayerPaintSimpleAlphaWithHardware() 96 final int expectedColor = Color.rgb(255, 128, 128); in testLayerPaintSimpleAlphaWithSoftware() local 104 .runWithVerifier(new ColorVerifier(expectedColor)); in testLayerPaintSimpleAlphaWithSoftware() 157 final int expectedColor = Color.rgb(54, 54, 54); in testLayerPaintColorFilter() local 166 .runWithVerifier(new ColorVerifier(expectedColor)); in testLayerPaintColorFilter() 174 final int expectedColor = Color.WHITE; in testLayerPaintBlend() local 188 .runWithVerifier(new ColorVerifier(expectedColor)); in testLayerPaintBlend()
|
D | ShadowTests.java | 44 private static SamplePointVerifier createVerifier(int expectedColor, in createVerifier() argument 58 expectedColor, in createVerifier() 59 expectedColor, in createVerifier()
|
D | HardwareRendererTests.kt | 468 val expectedColor = colorForIndex(index) in testLotsOfBuffers() constant 470 assertEquals(Color.red(expectedColor), red, "red") in testLotsOfBuffers() 471 assertEquals(Color.green(expectedColor), green, "green") in testLotsOfBuffers() 472 assertEquals(Color.blue(expectedColor), blue, "blue") in testLotsOfBuffers()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | ColorTest.java | 96 final int expectedColor = pair[0]; in resourceColor() local 101 + Integer.toHexString(expectedColor) + " expected", in resourceColor() 102 expectedColor, in resourceColor() 122 assertEquals("Color should be expected value", expectedColor, value.data); in resourceColor()
|
D | BitmapColorSpaceTest.java | 471 @ColorInt int newColor, @ColorInt int expectedColor) { in verifySetPixel() argument 479 verifySetPixel(b, newColor, expectedColor); in verifySetPixel() 484 verifySetPixel(b, newColor, expectedColor); in verifySetPixel() 489 verifySetPixel(b, newColor, expectedColor); in verifySetPixel() 496 @ColorInt int newColor, @ColorInt int expectedColor) { in verifySetPixel() argument 504 ColorUtils.verifyColor(expectedColor, dst.asIntBuffer().get(), 1); in verifySetPixel() 514 @ColorInt int newColor, @ColorInt int expectedColor) { in verifySetPixels() argument 523 verifySetPixels(b, newColor, expectedColor); in verifySetPixels() 528 verifySetPixels(b, newColor, expectedColor); in verifySetPixels() 533 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/assist/service/src/android/assist/service/ |
D | MainInteractionSession.java | 190 int expectedColor = 0; in compareScreenshot() local 197 expectedColor += 1; in compareScreenshot() 202 double colorRatio = (double) expectedColor / pixelCount; in compareScreenshot()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | TextureViewTest.java | 416 float[] expectedColor = ColorSpace.connect(srcColorSpace, dstSpace).transform(srcColor); in verify() local 422 assertEquals(expectedColor[0], outputColor[0], 0.01f); in verify() 423 assertEquals(expectedColor[1], outputColor[1], 0.01f); in verify() 424 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()
|