Home
last modified time | relevance | path

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

/cts/tests/tests/graphics/src/android/graphics/cts/
DYuvImageTest.java203 int[] argb = new int[stride * height]; in testGetYuvData() local
204 mTestBitmaps[0].getPixels(argb, 0, stride, 0, 0, width, height); in testGetYuvData()
205 byte[] yuv = convertArgbsToYuvs(argb, stride, height, ImageFormat.NV21); in testGetYuvData()
239 int[] argb = new int [stride * height]; in generateYuvImage() local
240 bitmap.getPixels(argb, 0, stride, 0, 0, width, height); in generateYuvImage()
241 byte[] yuv = convertArgbsToYuvs(argb, stride, height, format); in generateYuvImage()
303 private byte[] convertArgbsToYuvs(int[] argb, int width, int height, in convertArgbsToYuvs() argument
313 argb2yuv(argb[idx], yuvColor); in convertArgbsToYuvs()
328 argb2yuv(argb[idx], yuvColor0); in convertArgbsToYuvs()
329 argb2yuv(argb[idx + 1], yuvColor1); in convertArgbsToYuvs()
[all …]
DLightingColorFilterTest.java57 paint.setColorFilter(new LightingColorFilter(Color.TRANSPARENT, Color.argb(0, 0, 0xFF, 0))); in testLightingColorFilter()
68 paint.setColor(Color.argb(255, 60, 20, 40)); in testLightingColorFilter()
72 assertColor(Color.argb(255, 30, 30, 30), bitmap.getPixel(0, 0)); in testLightingColorFilter()
76 paint.setColor(Color.argb(0x80, 60, 20, 40)); in testLightingColorFilter()
80 assertColor(Color.argb(0x80, 30, 30, 30), bitmap.getPixel(0, 0)); in testLightingColorFilter()
DColorTest.java30 assertEquals(Color.RED, Color.argb(0xff, 0xff, 0x00, 0x00)); in testArgb()
31 assertEquals(Color.YELLOW, Color.argb(0xff, 0xff, 0xff, 0x00)); in testArgb()
DBitmapFactoryTest.java77 Color.argb(255, 0, 0, 0),
78 Color.argb(128, 255, 0, 0),
79 Color.argb(128, 25, 26, 27),
80 Color.argb(2, 255, 254, 253),
85 Color.argb(255, 0, 0, 0),
86 Color.argb(128, 255, 0, 0),
87 Color.argb(128, 26, 26, 28),
88 Color.argb(2, 255, 255, 255),
DPixelXorXfermodeTest.java63 return Color.argb(alpha, red, green, blue); in alphaColor()
DColorMatrixColorFilterTest.java76 assertColor(Color.argb(128, 255, 0, 64), bitmap.getPixel(0, 0), 2); in testColorMatrixColorFilter()
DPorterDuffColorFilterTest.java43 int filterColor = Color.argb(0x80, 0, 0xFF, 0); in testPorterDuffColorFilter()
DSweepGradientTest.java118 color = Color.argb(alpha, red, green, blue); in checkColors()
DBitmapTest.java47 private final int PREMUL_COLOR = Color.argb(2, 255, 254, 253);
48 private final int PREMUL_ROUNDED_COLOR = Color.argb(2, 255, 255, 255);
49 private final int PREMUL_STORED_COLOR = Color.argb(2, 2, 2, 2);
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DBitmapFilterTests.java52 = new ColorVerifier(Color.argb(255, 127, 127, 127),
55 = new ColorVerifier(Color.argb(255, 127, 127, 127),