Home
last modified time | relevance | path

Searched refs:expectedColor (Results 1 – 21 of 21) sorted by relevance

/cts/tests/tests/opengl/src/android/opengl/cts/
DNativeColorBufferTest.java46 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 …]
DColorBufferTest.java51 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/view/surfacevalidator/src/android/view/cts/surfacevalidator/
DPixelChecker.java38 int getNumMatchingPixels(PixelColor expectedColor, Image.Plane plane, Rect boundsToCheck) { in getNumMatchingPixels() argument
49 if (matchesColor(expectedColor, scanline, i)) { in getNumMatchingPixels()
57 boolean matchesColor(PixelColor expectedColor, byte[] scanline, int offset) { in matchesColor() argument
63 return alpha <= expectedColor.mMaxAlpha in matchesColor()
64 && alpha >= expectedColor.mMinAlpha in matchesColor()
65 && red <= expectedColor.mMaxRed in matchesColor()
66 && red >= expectedColor.mMinRed in matchesColor()
67 && green <= expectedColor.mMaxGreen in matchesColor()
68 && green >= expectedColor.mMinGreen in matchesColor()
69 && blue <= expectedColor.mMaxBlue in matchesColor()
[all …]
DASurfaceControlTestActivity.java161 public RectChecker(Rect boundsToCheck, int expectedColor) { in RectChecker() argument
162 super(expectedColor); in RectChecker()
204 boolean matchesColor(PixelColor expectedColor, int color) { in matchesColor() argument
210 return alpha <= expectedColor.mMaxAlpha in matchesColor()
211 && alpha >= expectedColor.mMinAlpha in matchesColor()
212 && red <= expectedColor.mMaxRed in matchesColor()
213 && red >= expectedColor.mMinRed in matchesColor()
214 && green <= expectedColor.mMaxGreen in matchesColor()
215 && green >= expectedColor.mMinGreen in matchesColor()
216 && blue <= expectedColor.mMaxBlue in matchesColor()
[all …]
/cts/tests/tests/uirendering27/src/android/uirendering/cts/util/
DCompareUtils.java9 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/
DCompareUtils.java9 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/uirendering27/src/android/uirendering/cts/bitmapverifiers/
DSamplePointVerifier.java74 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()
DPerPixelBitmapVerifier.java87 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/bitmapverifiers/
DSamplePointVerifier.java74 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()
DPerPixelBitmapVerifier.java87 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/
DShadowTests.java44 private static SamplePointVerifier createVerifier(int expectedColor, in createVerifier() argument
58 expectedColor, in createVerifier()
59 expectedColor, in createVerifier()
DLayerTests.java65 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()
DHardwareRendererTests.kt468 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/widget/src/android/widget/cts/util/
DTestUtils.java288 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/
DMainInteractionSession.java218 int expectedColor = 0; in compareScreenshot() local
225 expectedColor += 1; in compareScreenshot()
230 double colorRatio = (double) expectedColor / pixelCount; in compareScreenshot()
/cts/tests/tests/graphics/src/android/graphics/cts/
DColorTest.java164 final int expectedColor = pair[0]; in resourceColor() local
169 + Integer.toHexString(expectedColor) + " expected", in resourceColor()
170 expectedColor, in resourceColor()
190 assertEquals("Color should be expected value", expectedColor, value.data); in resourceColor()
DBitmapColorSpaceTest.java473 @ColorInt int newColor, @ColorInt int expectedColor) { in verifySetPixel() argument
481 verifySetPixel(b, newColor, expectedColor); in verifySetPixel()
486 verifySetPixel(b, newColor, expectedColor); in verifySetPixel()
491 verifySetPixel(b, newColor, expectedColor); in verifySetPixel()
498 @ColorInt int newColor, @ColorInt int expectedColor) { in verifySetPixel() argument
506 ColorUtils.verifyColor(expectedColor, dst.asIntBuffer().get(), 1); in verifySetPixel()
516 @ColorInt int newColor, @ColorInt int expectedColor) { in verifySetPixels() argument
525 verifySetPixels(b, newColor, expectedColor); in verifySetPixels()
530 verifySetPixels(b, newColor, expectedColor); in verifySetPixels()
535 verifySetPixels(b, newColor, expectedColor); in verifySetPixels()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DTextureViewTest.java441 float[] expectedColor = ColorSpace.connect(srcColorSpace, dstSpace).transform(srcColor); in verify() local
447 assertEquals(expectedColor[0], outputColor[0], 0.01f); in verify()
448 assertEquals(expectedColor[1], outputColor[1], 0.01f); in verify()
449 assertEquals(expectedColor[2], outputColor[2], 0.01f); in verify()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DSplashscreenTests.java462 private void waitAndAssertOverrideThemeColor(int expectedColor) { in waitAndAssertOverrideThemeColor() argument
472 if (expectedColor > 0) { in waitAndAssertOverrideThemeColor()
474 Integer.toHexString(expectedColor), in waitAndAssertOverrideThemeColor()
/cts/tests/tests/text/src/android/text/cts/
DHtmlTest.java164 public void testColor(String html, int expectedColor) { in testColor() argument
174 + Integer.toHexString(expectedColor) + "\nactual: 0x" in testColor()
175 + Integer.toHexString(actualColor), expectedColor, actualColor); in testColor()
/cts/tests/tests/calendarprovider/src/android/provider/cts/calendar/
DCalendarTest.java1780 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()