/cts/tests/tests/systemui/src/android/systemui/cts/ |
D | ColorUtils.java | 24 public static float brightness(int argb) { in brightness() argument 25 int r = (argb >> 16) & 0xFF; in brightness() 26 int g = (argb >> 8) & 0xFF; in brightness() 27 int b = argb & 0xFF; in brightness() 34 public static float hue(int argb) { in hue() argument 35 int r = (argb >> 16) & 0xFF; in hue() 36 int g = (argb >> 8) & 0xFF; in hue() 37 int b = argb & 0xFF; in hue()
|
D | LightBarTests.java | 291 return Color.argb(fgAlpha + (255 - fgAlpha) * bgAlpha / 255, in mixSrcOver()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | YuvImageTest.java | 196 int[] argb = new int[stride * height]; in testGetYuvData() local 197 mTestBitmaps[0].getPixels(argb, 0, stride, 0, 0, width, height); in testGetYuvData() 198 byte[] yuv = convertArgbsToYuvs(argb, stride, height, ImageFormat.NV21); in testGetYuvData() 233 int[] argb = new int [stride * height]; in generateYuvImage() local 234 bitmap.getPixels(argb, 0, stride, 0, 0, width, height); in generateYuvImage() 235 byte[] yuv = convertArgbsToYuvs(argb, stride, height, format); in generateYuvImage() 298 private byte[] convertArgbsToYuvs(int[] argb, int width, int height, in convertArgbsToYuvs() argument 308 argb2yuv(argb[idx], yuvColor); in convertArgbsToYuvs() 323 argb2yuv(argb[idx], yuvColor0); in convertArgbsToYuvs() 324 argb2yuv(argb[idx + 1], yuvColor1); in convertArgbsToYuvs() [all …]
|
D | LightingColorFilterTest.java | 68 paint.setColorFilter(new LightingColorFilter(Color.TRANSPARENT, Color.argb(0, 0, 0xFF, 0))); in testLightingColorFilter() 79 paint.setColor(Color.argb(255, 60, 20, 40)); in testLightingColorFilter() 83 verifyColor(Color.argb(255, 30, 30, 30), bitmap.getPixel(0, 0)); in testLightingColorFilter() 87 paint.setColor(Color.argb(0x80, 60, 20, 40)); in testLightingColorFilter() 91 verifyColor(Color.argb(0x80, 30, 30, 30), bitmap.getPixel(0, 0)); in testLightingColorFilter()
|
D | ColorTest.java | 151 assertEquals(Color.RED, Color.argb(0xff, 0xff, 0x00, 0x00)); in testArgb() 152 assertEquals(Color.YELLOW, Color.argb(0xff, 0xff, 0xff, 0x00)); in testArgb() 153 assertEquals(Color.RED, Color.argb(1.0f, 1.0f, 0.0f, 0.0f)); in testArgb() 154 assertEquals(Color.YELLOW, Color.argb(1.0f, 1.0f, 1.0f, 0.0f)); in testArgb()
|
D | BitmapFactoryTest.java | 90 Color.argb(255, 0, 0, 0), 91 Color.argb(128, 255, 0, 0), 92 Color.argb(128, 25, 26, 27), 93 Color.argb(2, 255, 254, 253), 98 Color.argb(255, 0, 0, 0), 99 Color.argb(128, 255, 0, 0), 100 Color.argb(128, 26, 26, 28), 101 Color.argb(2, 255, 255, 255), 959 Bitmap argb = Bitmap.createBitmap(gray.getWidth(), gray.getHeight(), Config.ARGB_8888); in grayToARGB() local 960 for (int y = 0; y < argb.getHeight(); y++) { in grayToARGB() [all …]
|
D | ColorMatrixColorFilterTest.java | 85 ColorUtils.verifyColor(Color.argb(128, 255, 0, 64), bitmap.getPixel(0, 0), 2); in testColorMatrixColorFilter()
|
D | PorterDuffColorFilterTest.java | 52 int filterColor = Color.argb(0x80, 0, 0xFF, 0); in testPorterDuffColorFilter()
|
D | BitmapTest.java | 73 private static final int PREMUL_COLOR = Color.argb(2, 255, 254, 253); 74 private static final int PREMUL_ROUNDED_COLOR = Color.argb(2, 255, 255, 255); 75 private static final int PREMUL_STORED_COLOR = Color.argb(2, 2, 2, 2); 778 int srgbColor = Color.argb(color.alpha, color.red, color.green, color.blue); in testEraseColorLong() 808 int srgbColor = Color.argb(.5f, .3f, .6f, .7f); in testEraseColorOnP3() 1130 int srgbColor = Color.argb(color.alpha, color.red, color.green, color.blue); in testSetColorSpace()
|
D | SweepGradientTest.java | 135 color = Color.argb(alpha, red, green, blue); in verifyColors()
|
D | Color_ColorLongTest.java | 373 int sRgb = Color.argb(1.0f, 0.5f, 0.5f, 0.5f); in testConvertToBT709()
|
D | PaintTest.java | 2191 for (int srgbColor : new int[]{ Color.argb(1.0f, .5f, .5f, .5f), 2192 Color.argb(1.0f, .3f, .6f, .9f), 2193 Color.argb(0.5f, .2f, .8f, .7f) }) {
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | BlendModeTest.java | 184 int resultColor = Color.argb(alpha, red, green, blue); in testBlendMode_MODULATE() 211 int result = Color.argb(alpha, red, green, blue); in testBlendMode_OVERLAY() 242 int result = Color.argb(alphaOut, red, green, blue); in testBlendMode_DARKEN() 269 int result = Color.argb(alphaOut, red, green, blue); in testBlendMode_LIGHTEN() 296 int result = Color.argb(alphaOut, red, green, blue); in testBlendMode_COLOR_DODGE() 332 int result = Color.argb(alphaOut, red, green, blue); in testBlendMode_COLOR_BURN() 366 int result = Color.argb(alphaOut, red, green, blue); in testBlendMode_HARD_LIGHT() 400 int result = Color.argb(alphaOut, red, green, blue); in testBlendMode_SOFT_LIGHT() 445 int result = Color.argb(alphaOut, red, green, blue); in testBlendMode_DIFFERENCE() 471 int result = Color.argb(alphaOut, red, green, blue); in testBlendMode_EXCLUSION() [all …]
|
D | BitmapFilterTests.java | 62 = new ColorVerifier(Color.argb(255, 127, 127, 127), 66 = new ColorVerifier(Color.argb(255, 127, 127, 127),
|
D | BlendModeColorFilterTest.java | 47 private static final int FILTER_COLOR = Color.argb(0x80, 0, 0xFF, 0);
|
D | HardwareRendererTests.kt | 103 pixels[pixelIndex++] = Color.argb(alpha, red, green, blue) in <lambda>() 416 Color.argb(255, 10 * i, 6 * i, 2 * i) in testLotsOfBuffers()
|
D | HardwareBitmapTests.java | 302 bitmap.eraseColor(Color.argb(127, 250, 0, 0)); in testHardwareExtractAlpha()
|
/cts/tests/tests/widget/src/android/widget/cts/util/ |
D | TestUtils.java | 328 return Color.argb(a, r, g, b); in compositeColors()
|