/cts/tests/tests/opengl/src/android/opengl/cts/ |
D | NativeColorBufferTest.java | 50 float[] expectedColor = {r, g, b, a}; in test_RGBA_1001() local 58 compare(expectedColor, actualColor); in test_RGBA_1001() 67 float[] expectedColor = {r, g, b, a}; in test_RGBA_1101() local 76 compare(expectedColor, actualColor); in test_RGBA_1101() 86 float[] expectedColor = {r, g, b, a}; in test_RGBA_1111() local 95 compare(expectedColor, actualColor); in test_RGBA_1111() 105 float[] expectedColor = {r, g, b, a}; in test_RGBA_0101() local 114 compare(expectedColor, actualColor); in test_RGBA_0101() 124 float[] expectedColor = {r, g, b, a}; in test_RGBA_0011() local 133 compare(expectedColor, actualColor); in test_RGBA_0011() [all …]
|
D | ColorBufferTest.java | 55 float[] expectedColor = {r, g, b, a}; in test_RGBA_1001() local 63 compare(expectedColor, actualColor); in test_RGBA_1001() 72 float[] expectedColor = {r, g, b, a}; in test_RGBA_1101() local 81 compare(expectedColor, actualColor); in test_RGBA_1101() 91 float[] expectedColor = {r, g, b, a}; in test_RGBA_1111() local 100 compare(expectedColor, actualColor); in test_RGBA_1111() 110 float[] expectedColor = {r, g, b, a}; in test_RGBA_0101() local 119 compare(expectedColor, actualColor); in test_RGBA_0101() 129 float[] expectedColor = {r, g, b, a}; in test_RGBA_0011() local 138 compare(expectedColor, actualColor); in test_RGBA_0011() [all …]
|
/cts/tests/surfacecontrol/surfacevalidator/src/android/view/cts/surfacevalidator/ |
D | PixelChecker.java | 40 public static int getNumMatchingPixels(PixelColor expectedColor, Image.Plane plane, in getNumMatchingPixels() argument 52 if (matchesColor(expectedColor, scanline, i)) { in getNumMatchingPixels() 77 static boolean matchesColor(PixelColor expectedColor, byte[] scanline, int offset) { in matchesColor() argument 83 return alpha <= expectedColor.mMaxAlpha in matchesColor() 84 && alpha >= expectedColor.mMinAlpha in matchesColor() 85 && red <= expectedColor.mMaxRed in matchesColor() 86 && red >= expectedColor.mMinRed in matchesColor() 87 && green <= expectedColor.mMaxGreen in matchesColor() 88 && green >= expectedColor.mMinGreen in matchesColor() 89 && blue <= expectedColor.mMaxBlue in matchesColor() [all …]
|
D | ASurfaceControlTestActivity.java | 234 public RectChecker(Rect boundsToCheck, int expectedColor) { in RectChecker() argument 235 super(expectedColor); in RectChecker() 285 int expectedColor = Color.argb(expected.mAlpha, expected.mRed, in getNumMatchingPixels() local 289 color, expectedColor)); in getNumMatchingPixels()
|
D | BitmapPixelChecker.java | 76 int expectedColor = Color.argb(mPixelColor.mAlpha, mPixelColor.mRed, in getNumMatchingPixels() local 80 color, expectedColor)); in getNumMatchingPixels()
|
/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/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/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 | 44 private static SamplePointVerifier createVerifier(int expectedColor, in createVerifier() argument 58 expectedColor, in createVerifier() 59 expectedColor, in createVerifier()
|
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 | 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/framework/base/windowmanager/src/android/server/wm/animations/ |
D | ActivityTransitionTests.java | 618 public final Color expectedColor; field in ActivityTransitionTests.ColorCheckResult 621 private ColorCheckResult(boolean isFailure, Point firstWrongPixel, Color expectedColor, in ColorCheckResult() argument 625 this.expectedColor = expectedColor; in ColorCheckResult() 629 private ColorCheckResult(Point firstWrongPixel, Color expectedColor, Color actualColor) { in ColorCheckResult() argument 630 this(true, firstWrongPixel, expectedColor, actualColor); in ColorCheckResult() 638 + ", expectedColor=" + expectedColor in toString() 764 final Color expectedColor; in assertColorChangeXIndex() local 766 expectedColor = lessXColorC; in assertColorChangeXIndex() 768 expectedColor = largeXColorC; in assertColorChangeXIndex() 783 expectedColor.red(), expectedColor.green(), expectedColor.blue()}, in assertColorChangeXIndex() [all …]
|
D | SplashscreenTests.java | 533 private void waitAndAssertOverrideThemeColor(int expectedColor) { in waitAndAssertOverrideThemeColor() argument 536 if (expectedColor > 0) { in waitAndAssertOverrideThemeColor() 538 Integer.toHexString(expectedColor), in waitAndAssertOverrideThemeColor()
|
/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 | 283 int expectedColor = 0; in compareScreenshot() local 290 expectedColor += 1; in compareScreenshot() 295 double colorRatio = (double) expectedColor / pixelCount; in compareScreenshot()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | BitmapColorSpaceTest.java | 475 @ColorInt int newColor, @ColorInt int expectedColor) { in verifySetPixel() argument 483 verifySetPixel(b, newColor, expectedColor); in verifySetPixel() 488 verifySetPixel(b, newColor, expectedColor); in verifySetPixel() 493 verifySetPixel(b, newColor, expectedColor); in verifySetPixel() 500 @ColorInt int newColor, @ColorInt int expectedColor) { in verifySetPixel() argument 508 ColorUtils.verifyColor(expectedColor, dst.asIntBuffer().get(), 1); in verifySetPixel() 518 @ColorInt int newColor, @ColorInt int expectedColor) { in verifySetPixels() argument 527 verifySetPixels(b, newColor, expectedColor); in verifySetPixels() 532 verifySetPixels(b, newColor, expectedColor); in verifySetPixels() 537 verifySetPixels(b, newColor, expectedColor); in verifySetPixels() [all …]
|
D | ColorTest.java | 293 final int expectedColor = pair[0]; in resourceColor() local 298 + Integer.toHexString(expectedColor) + " expected", in resourceColor() 299 expectedColor, in resourceColor() 319 assertEquals("Color should be expected value", expectedColor, value.data); in resourceColor()
|
D | SystemPaletteTest.kt | 113 val expectedColor = expectedL[i] in <lambda>() constant 117 "have L $expectedColor in LAB space." in <lambda>() 118 ).that(labColor[0]).isWithin(3.0).of(expectedColor) in <lambda>()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | HtmlTest.java | 164 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/view/src/android/view/cts/ |
D | TextureViewTest.java | 733 float[] expectedColor = ColorSpace.connect(srcColorSpace, dstSpace).transform(srcColor); in verify() local 739 assertEquals(expectedColor[0], outputColor[0], 0.01f); in verify() 740 assertEquals(expectedColor[1], outputColor[1], 0.01f); in verify() 741 assertEquals(expectedColor[2], outputColor[2], 0.01f); in verify()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | RemoteViewsTest.java | 895 private static void verifyColorsOnFourCorners(final int expectedColor, final Bitmap bitmap) { in verifyColorsOnFourCorners() argument 899 assertEquals(expectedColor, bitmap.getPixel(offset, offset)); in verifyColorsOnFourCorners() 900 assertEquals(expectedColor, bitmap.getPixel(w - offset, offset)); in verifyColorsOnFourCorners() 901 assertEquals(expectedColor, bitmap.getPixel(offset, h - offset)); in verifyColorsOnFourCorners() 902 assertEquals(expectedColor, bitmap.getPixel(w - offset, h - offset)); in verifyColorsOnFourCorners()
|
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/ |
D | SurfaceControlTest.java | 2088 DefaultDataSpaceParameters(int pixelFormat, byte[] color, int expectedColor) { in DefaultDataSpaceParameters() argument 2091 mExpectedColor = expectedColor; in DefaultDataSpaceParameters()
|