/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | ColorMatrixColorFilterTest.java | 32 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()
|
D | LightingColorFilterTest.java | 29 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()
|
D | LinearGradientTest.java | 35 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);
|
D | RadialGradientTest.java | 35 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()
|
D | SweepGradientTest.java | 37 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()
|
D | BitmapRGBAF16Test.java | 34 import com.android.compatibility.common.util.ColorUtils; 135 ColorUtils.verifyColor(0x7f102030, after, 1); in testSetPixel() 141 ColorUtils.verifyColor(0x7f102030, after, 1); in testSetPixel()
|
D | SystemPalette.java | 30 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()
|
D | BitmapTest.java | 54 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 …]
|
D | BitmapColorSpaceTest.java | 43 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()
|
D | PaintTest.java | 60 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/ |
D | BlurTests.java | 55 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()
|
D | SplashscreenTests.java | 84 import androidx.core.graphics.ColorUtils; 305 int debugPixel = ColorUtils.blendARGB(pixel, color, ratio); in markDebugPixel()
|
/cts/tests/tests/content/src/android/content/res/cts/ |
D | ColorStateListTest.java | 28 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/ |
D | ColorUtils.java | 26 public final class ColorUtils { class
|
D | CamUtils.java | 102 return ColorUtils.xyzToColor(xT * CamUtils.WHITE_POINT_D65[0], in intFromLstar()
|
D | Cam.java | 321 int argb = ColorUtils.xyzToColor(x, y, z); in viewed()
|
/cts/tests/tests/systemui/src/android/systemui/cts/ |
D | ColorUtils.java | 22 public class ColorUtils { class
|
D | LightBarTests.java | 407 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/ |
D | ColorUtils.java | 29 public class ColorUtils { class
|