Home
last modified time | relevance | path

Searched refs:argb (Results 1 – 18 of 18) sorted by relevance

/cts/tests/tests/systemui/src/android/systemui/cts/
DColorUtils.java24 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()
DLightBarTests.java291 return Color.argb(fgAlpha + (255 - fgAlpha) * bgAlpha / 255, in mixSrcOver()
/cts/tests/tests/graphics/src/android/graphics/cts/
DYuvImageTest.java196 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 …]
DLightingColorFilterTest.java68 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()
DColorTest.java151 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()
DBitmapFactoryTest.java90 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 …]
DColorMatrixColorFilterTest.java85 ColorUtils.verifyColor(Color.argb(128, 255, 0, 64), bitmap.getPixel(0, 0), 2); in testColorMatrixColorFilter()
DPorterDuffColorFilterTest.java52 int filterColor = Color.argb(0x80, 0, 0xFF, 0); in testPorterDuffColorFilter()
DBitmapTest.java73 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()
DSweepGradientTest.java135 color = Color.argb(alpha, red, green, blue); in verifyColors()
DColor_ColorLongTest.java373 int sRgb = Color.argb(1.0f, 0.5f, 0.5f, 0.5f); in testConvertToBT709()
DPaintTest.java2191 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/
DBlendModeTest.java184 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 …]
DBitmapFilterTests.java62 = new ColorVerifier(Color.argb(255, 127, 127, 127),
66 = new ColorVerifier(Color.argb(255, 127, 127, 127),
DBlendModeColorFilterTest.java47 private static final int FILTER_COLOR = Color.argb(0x80, 0, 0xFF, 0);
DHardwareRendererTests.kt103 pixels[pixelIndex++] = Color.argb(alpha, red, green, blue) in <lambda>()
416 Color.argb(255, 10 * i, 6 * i, 2 * i) in testLotsOfBuffers()
DHardwareBitmapTests.java302 bitmap.eraseColor(Color.argb(127, 250, 0, 0)); in testHardwareExtractAlpha()
/cts/tests/tests/widget/src/android/widget/cts/util/
DTestUtils.java328 return Color.argb(a, r, g, b); in compositeColors()