Home
last modified time | relevance | path

Searched refs:ColorUtils (Results 1 – 19 of 19) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/cts/
DColorMatrixColorFilterTest.java32 import com.android.compatibility.common.util.ColorUtils;
60 ColorUtils.verifyColor(Color.CYAN, bitmap.getPixel(0, 0)); in testColorMatrixColorFilter()
63 ColorUtils.verifyColor(Color.GREEN, bitmap.getPixel(0, 0)); in testColorMatrixColorFilter()
66 ColorUtils.verifyColor(Color.RED, bitmap.getPixel(0, 0)); in testColorMatrixColorFilter()
70 ColorUtils.verifyColor(Color.WHITE, bitmap.getPixel(0, 0)); in testColorMatrixColorFilter()
86 ColorUtils.verifyColor(Color.argb(128, 255, 0, 64), bitmap.getPixel(0, 0), 2); in testColorMatrixColorFilter()
90 ColorUtils.verifyColor(Color.CYAN, bitmap.getPixel(0, 0)); in testColorMatrixColorFilter()
97 ColorUtils.verifyColor(Color.CYAN, bitmap.getPixel(0, 0)); in testColorMatrixColorFilter()
101 ColorUtils.verifyColor(Color.BLUE, bitmap.getPixel(0, 0)); in testColorMatrixColorFilter()
DLightingColorFilterTest.java29 import com.android.compatibility.common.util.ColorUtils;
40 ColorUtils.verifyColor(expected, actual, TOLERANCE); in verifyColor()
97 ColorUtils.verifyColor(Color.BLACK, filter.getColorAdd()); in testGetColorAdd()
100 ColorUtils.verifyColor(0x12345678, filter.getColorAdd()); in testGetColorAdd()
107 ColorUtils.verifyColor(Color.WHITE, filter.getColorMultiply()); in testGetColorMultiply()
110 ColorUtils.verifyColor(0x87654321, filter.getColorMultiply()); in testGetColorMultiply()
DLinearGradientTest.java35 import com.android.compatibility.common.util.ColorUtils;
96 ColorUtils.verifyColor("Top-most color should be mostly blue!",
99 ColorUtils.verifyColor("Middle color should be mostly green!",
102 ColorUtils.verifyColor("Bottom-most color should be mostly red!",
105 ColorUtils.verifyColor("The pixels in same gradient line should be equivalent!",
121 ColorUtils.verifyColor("Top-most color should be mostly red!",
124 ColorUtils.verifyColor("Bottom-most color should be mostly blue!",
128 ColorUtils.verifyColor("The pixels in same gradient line should be equivalent!",
156 ColorUtils.verifyColor(Color.BLACK, bitmap.getPixel(0, 0), 1);
157 ColorUtils.verifyColor(Color.BLACK, bitmap.getPixel(20, 20), 1);
DRadialGradientTest.java35 import com.android.compatibility.common.util.ColorUtils;
63 ColorUtils.verifyColor(Color.BLACK, bitmap.getPixel(0, 0), 1); in testZeroScaleMatrix()
64 ColorUtils.verifyColor(Color.BLACK, bitmap.getPixel(1, 0), 1); in testZeroScaleMatrix()
65 ColorUtils.verifyColor(Color.BLACK, bitmap.getPixel(2, 0), 1); in testZeroScaleMatrix()
89 ColorUtils.verifyColor("Center color should be red!", convert.apply(red), in testColorLong()
95 ColorUtils.verifyColor("Edge point " + p + " should be blue", blueColor, in testColorLong()
126 ColorUtils.verifyColor("Point(" + x + ", " + y + ") should match " in testColorLong()
DSweepGradientTest.java37 import com.android.compatibility.common.util.ColorUtils;
171 ColorUtils.verifyColor(Color.BLACK, bitmap.getPixel(0, 0), 1); in testZeroScaleMatrix()
172 ColorUtils.verifyColor(Color.BLACK, bitmap.getPixel(1, 0), 1); in testZeroScaleMatrix()
292 ColorUtils.verifyColor("First color (at angle " + toString(angle) in testColorLong()
307 ColorUtils.verifyColor("Radius " + radius + " at angle " + toString(angle) in testColorLong()
DBitmapRGBAF16Test.java34 import com.android.compatibility.common.util.ColorUtils;
135 ColorUtils.verifyColor(0x7f102030, after, 1); in testSetPixel()
141 ColorUtils.verifyColor(0x7f102030, after, 1); in testSetPixel()
DSystemPalette.java30 import androidx.core.graphics.ColorUtils;
115 ColorUtils.colorToLAB(palette[i], labColor); in testColorsMatchExpectedLuminance()
146 final double contrast = ColorUtils.calculateContrast(foreground, background); in testContrastRatio()
156 final double contrast = ColorUtils.calculateContrast(foreground, background); in testContrastRatio()
DBitmapTest.java54 import com.android.compatibility.common.util.ColorUtils;
448 ColorUtils.verifyColor(expected[0], observed.getPixel(0, 0)); in verify2x2BitmapContents()
449 ColorUtils.verifyColor(expected[1], observed.getPixel(1, 0)); in verify2x2BitmapContents()
450 ColorUtils.verifyColor(expected[2], observed.getPixel(0, 1)); in verify2x2BitmapContents()
451 ColorUtils.verifyColor(expected[3], observed.getPixel(1, 1)); in verify2x2BitmapContents()
911 ColorUtils.verifyColor("Erasing to Bitmap's ColorSpace " in testGetColor()
926 ColorUtils.verifyColor("Bitmap(Config: " + mBitmap.getConfig() in testGetColor()
965 ColorUtils.verifyColor("Config " + config + " mismatch at 10, 10 ", in testEraseColorLong()
967 ColorUtils.verifyColor("Config " + config + " mismatch at 50, 50 ", in testEraseColorLong()
992 ColorUtils.verifyColor("Config " + config + ", ColorSpace " + cs in testEraseColorLong()
[all …]
DBitmapColorSpaceTest.java43 import com.android.compatibility.common.util.ColorUtils;
506 ColorUtils.verifyColor(expectedColor, dst.asIntBuffer().get(), 1); in verifySetPixel()
556 ColorUtils.verifyColor(expectedColor, buffer.get(), 1); in verifySetPixels()
1176 ColorUtils.verifyColor("PRO_PHOTO image did not convert properly", expected, in testProPhoto()
DPaintTest.java60 import com.android.compatibility.common.util.ColorUtils;
2228 ColorUtils.verifyColor("Paint#" + methodName + " mismatch for " + cs, srgbColor,
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DBlurTests.java55 import com.android.compatibility.common.util.ColorUtils;
346 ColorUtils.verifyColor("failed for pixel (x, y) = (" + x + ", " + y + ")", in verifyOnlyBackgroundImageVisible()
349 ColorUtils.verifyColor("failed for pixel (x, y) = (" + x + ", " + y + ")", in verifyOnlyBackgroundImageVisible()
376 ColorUtils.verifyColor("failed for pixel (x, y) = (" + x + ", " + y + ")", in assertNoBlurBehind()
380 ColorUtils.verifyColor("failed for pixel (x, y) = (" + x + ", " + y + ")", in assertNoBlurBehind()
385 ColorUtils.verifyColor("failed for pixel (x, y) = (" + x + ", " + y + ")", in assertNoBlurBehind()
389 ColorUtils.verifyColor("failed for pixel (x, y) = (" + x + ", " + y + ")", in assertNoBlurBehind()
400 ColorUtils.verifyColor("failed for pixel (x, y) = (" + x + ", " + y + ")", in assertNoBackgroundBlur()
421 ColorUtils.verifyColor( in assertBlur()
438 ColorUtils.verifyColor( in assertBlur()
DSplashscreenTests.java84 import androidx.core.graphics.ColorUtils;
305 int debugPixel = ColorUtils.blendARGB(pixel, color, ratio); in markDebugPixel()
/cts/tests/tests/content/src/android/content/res/cts/
DColorStateListTest.java28 import androidx.core.graphics.ColorUtils;
103 ColorUtils.colorToLAB(c1.getDefaultColor(), labColor); in testWithLStar()
120 ColorUtils.colorToLAB(defaultColor, labColor); in testCreateFromXmlWithLStar()
/cts/tests/tests/graphics/src/android/graphics/cts/utils/
DColorUtils.java26 public final class ColorUtils { class
DCamUtils.java102 return ColorUtils.xyzToColor(xT * CamUtils.WHITE_POINT_D65[0], in intFromLstar()
DCam.java321 int argb = ColorUtils.xyzToColor(x, y, z); in viewed()
/cts/tests/tests/systemui/src/android/systemui/cts/
DColorUtils.java22 public class ColorUtils { class
DLightBarTests.java407 float hueDiff = Math.abs(ColorUtils.hue(background) - ColorUtils.hue(c)); in evaluateBarBitmap()
410 if (ColorUtils.brightness(c) > ColorUtils.brightness(background)) { in evaluateBarBitmap()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DColorUtils.java29 public class ColorUtils { class