Home
last modified time | relevance | path

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

/cts/tests/tests/graphics/src/android/graphics/cts/
DColorMatrixColorFilterTest.java32 import com.android.compatibility.common.util.ColorUtils;
59 ColorUtils.verifyColor(Color.CYAN, bitmap.getPixel(0, 0)); in testColorMatrixColorFilter()
62 ColorUtils.verifyColor(Color.GREEN, bitmap.getPixel(0, 0)); in testColorMatrixColorFilter()
65 ColorUtils.verifyColor(Color.RED, bitmap.getPixel(0, 0)); in testColorMatrixColorFilter()
69 ColorUtils.verifyColor(Color.WHITE, bitmap.getPixel(0, 0)); in testColorMatrixColorFilter()
85 ColorUtils.verifyColor(Color.argb(128, 255, 0, 64), bitmap.getPixel(0, 0), 2); in testColorMatrixColorFilter()
89 ColorUtils.verifyColor(Color.CYAN, bitmap.getPixel(0, 0)); in testColorMatrixColorFilter()
96 ColorUtils.verifyColor(Color.CYAN, bitmap.getPixel(0, 0)); in testColorMatrixColorFilter()
100 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()
DBitmapTest.java51 import com.android.compatibility.common.util.ColorUtils;
344 ColorUtils.verifyColor(expected[0], observed.getPixel(0, 0)); in verify2x2BitmapContents()
345 ColorUtils.verifyColor(expected[1], observed.getPixel(1, 0)); in verify2x2BitmapContents()
346 ColorUtils.verifyColor(expected[2], observed.getPixel(0, 1)); in verify2x2BitmapContents()
347 ColorUtils.verifyColor(expected[3], observed.getPixel(1, 1)); in verify2x2BitmapContents()
710 ColorUtils.verifyColor("Erasing to Bitmap's ColorSpace " in testGetColor()
725 ColorUtils.verifyColor("Bitmap(Config: " + mBitmap.getConfig() in testGetColor()
764 ColorUtils.verifyColor("Config " + config + " mismatch at 10, 10 ", in testEraseColorLong()
766 ColorUtils.verifyColor("Config " + config + " mismatch at 50, 50 ", in testEraseColorLong()
791 ColorUtils.verifyColor("Config " + config + ", ColorSpace " + cs in testEraseColorLong()
[all …]
DBitmapColorSpaceTest.java44 import com.android.compatibility.common.util.ColorUtils;
504 ColorUtils.verifyColor(expectedColor, dst.asIntBuffer().get(), 1); in verifySetPixel()
554 ColorUtils.verifyColor(expectedColor, buffer.get(), 1); in verifySetPixels()
1145 ColorUtils.verifyColor("PRO_PHOTO image did not convert properly", expected, in testProPhoto()
DPaintTest.java60 import com.android.compatibility.common.util.ColorUtils;
2215 ColorUtils.verifyColor("Paint#" + methodName + " mismatch for " + cs, srgbColor,
/cts/tests/tests/systemui/src/android/systemui/cts/
DLightBarTests.java263 float hueDiff = Math.abs(ColorUtils.hue(background) - ColorUtils.hue(c)); in evaluateLightBarBitmap()
266 if (ColorUtils.brightness(c) > ColorUtils.brightness(background)) { in evaluateLightBarBitmap()
DColorUtils.java22 public class ColorUtils { class
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DColorUtils.java29 public class ColorUtils { class
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DColorUtils.java29 public class ColorUtils { class