/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 | 435 return Color.argb(fgAlpha + (255 - fgAlpha) * bgAlpha / 255, in mixSrcOver()
|
/cts/tests/tests/graphics/src/android/graphics/cts/utils/ |
D | CamUtils.java | 107 public static float lstarFromInt(int argb) { in lstarFromInt() argument 108 return lstarFromY(yFromInt(argb)); in lstarFromInt() 123 static float yFromInt(int argb) { in yFromInt() argument 124 final float r = linearized(Color.red(argb)); in yFromInt() 125 final float g = linearized(Color.green(argb)); in yFromInt() 126 final float b = linearized(Color.blue(argb)); in yFromInt() 132 static float[] xyzFromInt(int argb) { in xyzFromInt() argument 133 final float r = linearized(Color.red(argb)); in xyzFromInt() 134 final float g = linearized(Color.green(argb)); in xyzFromInt() 135 final float b = linearized(Color.blue(argb)); in xyzFromInt()
|
D | Cam.java | 139 public static Cam fromInt(int argb) { in fromInt() argument 140 return fromIntInFrame(argb, Frame.DEFAULT); in fromInt() 147 public static Cam fromIntInFrame(int argb, Frame frame) { in fromIntInFrame() argument 149 float[] xyz = CamUtils.xyzFromInt(argb); in fromIntInFrame() 321 int argb = ColorUtils.xyzToColor(x, y, z); in viewed() local 322 return argb; in viewed()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | YuvImageTest.java | 197 int[] argb = new int[stride * height]; in testGetYuvData() local 198 mTestBitmaps[0].getPixels(argb, 0, stride, 0, 0, width, height); in testGetYuvData() 199 byte[] yuv = convertArgbsToYuvs(argb, stride, height, ImageFormat.NV21); in testGetYuvData() 234 int[] argb = new int [stride * height]; in generateYuvImage() local 235 bitmap.getPixels(argb, 0, stride, 0, 0, width, height); in generateYuvImage() 236 byte[] yuv = convertArgbsToYuvs(argb, stride, height, format); in generateYuvImage() 299 private byte[] convertArgbsToYuvs(int[] argb, int width, int height, in convertArgbsToYuvs() argument 309 argb2yuv(argb[idx], yuvColor); in convertArgbsToYuvs() 324 argb2yuv(argb[idx], yuvColor0); in convertArgbsToYuvs() 325 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 | BitmapFactoryTest.java | 98 Color.argb(255, 0, 0, 0), 99 Color.argb(128, 255, 0, 0), 100 Color.argb(128, 25, 26, 27), 101 Color.argb(2, 255, 254, 253), 106 Color.argb(255, 0, 0, 0), 107 Color.argb(128, 255, 0, 0), 108 Color.argb(128, 26, 26, 28), 109 Color.argb(2, 255, 255, 255), 985 Bitmap argb = Bitmap.createBitmap(gray.getWidth(), gray.getHeight(), Config.ARGB_8888); in grayToARGB() local 986 for (int y = 0; y < argb.getHeight(); y++) { in grayToARGB() [all …]
|
D | ColorTest.java | 219 assertEquals(Color.RED, Color.argb(0xff, 0xff, 0x00, 0x00)); in testArgb() 220 assertEquals(Color.YELLOW, Color.argb(0xff, 0xff, 0xff, 0x00)); in testArgb() 221 assertEquals(Color.RED, Color.argb(1.0f, 1.0f, 0.0f, 0.0f)); in testArgb() 222 assertEquals(Color.YELLOW, Color.argb(1.0f, 1.0f, 1.0f, 0.0f)); in testArgb()
|
D | PorterDuffColorFilterTest.java | 52 int filterColor = Color.argb(0x80, 0, 0xFF, 0); in testPorterDuffColorFilter()
|
D | ColorMatrixColorFilterTest.java | 86 ColorUtils.verifyColor(Color.argb(128, 255, 0, 64), bitmap.getPixel(0, 0), 2); in testColorMatrixColorFilter()
|
D | SweepGradientTest.java | 135 color = Color.argb(alpha, red, green, blue); in verifyColors()
|
D | BitmapTest.java | 83 private static final int PREMUL_COLOR = Color.argb(2, 255, 254, 253); 84 private static final int PREMUL_ROUNDED_COLOR = Color.argb(2, 255, 255, 255); 85 private static final int PREMUL_STORED_COLOR = Color.argb(2, 2, 2, 2); 979 int srgbColor = Color.argb(color.alpha, color.red, color.green, color.blue); in testEraseColorLong() 1009 int srgbColor = Color.argb(.5f, .3f, .6f, .7f); in testEraseColorOnP3() 1331 int srgbColor = Color.argb(color.alpha, color.red, color.green, color.blue); in testSetColorSpace()
|
D | Color_ColorLongTest.java | 373 int sRgb = Color.argb(1.0f, 0.5f, 0.5f, 0.5f); in testConvertToBT709()
|
D | PaintTest.java | 2204 for (int srgbColor : new int[]{ Color.argb(1.0f, .5f, .5f, .5f), 2205 Color.argb(1.0f, .3f, .6f, .9f), 2206 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 | 303 bitmap.eraseColor(Color.argb(127, 250, 0, 0)); in testHardwareExtractAlpha()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/view/ |
D | AlphaTestView.java | 82 return Color.argb((int) a, (int) r, (int) g, (int) b); in blendColor()
|
/cts/tests/tests/view/surfacevalidator/src/android/view/cts/surfacevalidator/ |
D | ASurfaceControlTestActivity.java | 228 int expectedColor = Color.argb(expected.mAlpha, expected.mRed, in getNumMatchingPixels()
|
/cts/tests/tests/widget/src/android/widget/cts/util/ |
D | TestUtils.java | 328 return Color.argb(a, r, g, b); in compositeColors()
|