Home
last modified time | relevance | path

Searched refs:rgb (Results 1 – 21 of 21) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/cts/
DLightingColorFilterTest.java81 new LightingColorFilter(Color.rgb(0x80, 0xFF, 0x80), Color.rgb(0, 10, 10))); in testLightingColorFilter()
89 new LightingColorFilter(Color.rgb(0x80, 0xFF, 0x80), Color.rgb(0, 10, 10))); in testLightingColorFilter()
DColorTest.java296 assertEquals(Color.RED, Color.rgb(0xff, 0x00, 0x00)); in testRgb()
297 assertEquals(Color.YELLOW, Color.rgb(0xff, 0xff, 0x00)); in testRgb()
298 assertEquals(Color.RED, Color.rgb(1.0f, 0.0f, 0.0f)); in testRgb()
299 assertEquals(Color.YELLOW, Color.rgb(1.0f, 1.0f, 0.0f)); in testRgb()
DBitmapFactoryTest.java989 argb.setPixel(x, y, Color.rgb(grayByte, grayByte, grayByte)); in grayToARGB()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dyuv.rscript89 uchar4 rgb = yuvToRGBA4(py, pu, pv);
90 //rsDebug(" ", rgb);
92 rsSetElementAt_uchar4(aout, rgb, x, y);
113 float4 rgb = yuvToRGBA_f4(py, pu, pv);
114 //rsDebug(" ", rgb);
116 rsSetElementAt_float4(aout, rgb, x, y);
/cts/apps/CameraITS/tests/scene1_1/
Dtest_param_noise_reduction.py122 r_snrs = [rgb[0] for rgb in rgb_snr_list]
123 g_snrs = [rgb[1] for rgb in rgb_snr_list]
124 b_snrs = [rgb[2] for rgb in rgb_snr_list]
/cts/apps/CameraITS/tests/scene1_2/
Dtest_yuv_jpeg_all.py72 rgb = image_processing_utils.compute_image_means(patch)
74 img_type, cap['width'], cap['height'], str(rgb))
75 return rgb
/cts/apps/CameraITS/utils/
Dimage_processing_utils.py229 rgb = numpy.empty([h, w, 3], dtype=numpy.uint8)
230 rgb.reshape(w * h * 3)[:] = flt.reshape(w * h * 3)[:]
231 return rgb.astype(numpy.float32) / 255.0
292 rgb = decompress_jpeg_to_rgb_image(cap['data']).reshape(w * h * 3)
293 return (rgb[::3].reshape(h, w, 1), rgb[1::3].reshape(h, w, 1),
294 rgb[2::3].reshape(h, w, 1))
454 rgb = numpy.empty([h, w, 3], dtype=numpy.uint8)
455 rgb.reshape(w * h * 3)[:] = y3.reshape(w * h * 3)[:]
456 return rgb.astype(numpy.float32) / 255.0
/cts/tests/camera/src/android/hardware/camera2/cts/
DAllocationTest.java312 float[] rgb = new float[CHANNELS]; in convertPixelYuvToRgb() local
324 rgb[0] = r / COLOR_RANGE; in convertPixelYuvToRgb()
325 rgb[1] = g / COLOR_RANGE; in convertPixelYuvToRgb()
326 rgb[2] = b / COLOR_RANGE; in convertPixelYuvToRgb()
330 rgb[i] = Math.max(0.0f, Math.min(1.0f, rgb[i])); in convertPixelYuvToRgb()
334 Log.v(TAG, String.format("RGB calculated (r,g,b) = (%f, %f, %f)", rgb[0], rgb[1], in convertPixelYuvToRgb()
335 rgb[2])); in convertPixelYuvToRgb()
338 return rgb; in convertPixelYuvToRgb()
DImageReaderTest.java871 output[outputPos++] = Color.rgb(r, g, b); in convertPixelYuvToRgba()
/cts/tests/tests/graphics/src/android/graphics/cts/utils/
DColorUtils.java54 return Color.rgb( in xyzToColor()
/cts/tests/tests/media/src/android/media/cts/
DCodecUtils.java163 int rgb = bitmap.getPixel(i * 16 + 8, 8); in readBinaryCounterFromBitmap() local
164 if (Color.red(rgb) > 128) { in readBinaryCounterFromBitmap()
DDecodeAccuracyTestBase.java1995 outputPixels[yIndex * width + xIndex] = Color.rgb( in shrinkAndScaleBilinear()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DLayerTests.java65 final int expectedColor = Color.rgb(255, 191, 191); in testLayerPaintAlpha()
82 final int expectedColor = Color.rgb(255, 128, 128); in testLayerPaintSimpleAlphaWithHardware()
96 final int expectedColor = Color.rgb(255, 128, 128); in testLayerPaintSimpleAlphaWithSoftware()
157 final int expectedColor = Color.rgb(54, 54, 54); in testLayerPaintColorFilter()
510 .runWithVerifier(new ColorVerifier(Color.rgb(128, 128, 255))); in testWebViewWithAlpha()
535 .runWithVerifier(new ColorVerifier(Color.rgb(191, 191, 255))); in testWebViewWithAlphaLayer()
/cts/tests/camera/src/android/hardware/camera2/cts/rs/
Draw_converter.rscript73 static float3 gammaCorrectPixel(float3 rgb) {
75 ret.x = gammaEncode(rgb.x);
76 ret.y = gammaEncode(rgb.y);
77 ret.z = gammaEncode(rgb.z);
95 static float3 tonemap(float3 rgb) {
96 float3 sorted = clamp(rgb, 0.f, 1.f);
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/formats/
DCameraFormatsActivity.java791 rgbData[rgbIndex] = Color.rgb(r,g,b); in convertFromUnknown()
827 Color.rgb(yv, uv, vv); in convertFromNV21()
884 Color.rgb(yv, uv, vv); in convertFromYV12()
912 rgbData[rgbIndex] = Color.rgb(yv,uv,vv); in convertFromYUY2()
/cts/tests/tests/systemui/src/android/systemui/cts/
DLightBarTests.java76 private static final int LIGHT_BG_COLOR = Color.rgb(255, 128, 128);
/cts/tests/tests/text/src/android/text/style/cts/
DTextAppearanceSpanTest.java58 int[] colors = new int[] { Color.rgb(0, 0, 255), Color.BLACK }; in setup()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DNinePatchDrawableTest.java122 int ocean = Color.rgb(0, 0xFF, 0x80); in testDraw()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/bokeh/
DCameraBokehActivity.java520 imgArray[j] = Color.rgb(yval, uval, vval); in onImageAvailable()
/cts/tests/tests/text/src/android/text/cts/
DTextUtilsTest.java2084 new int[] {Color.rgb(0, 255, 0), Color.BLACK}); in testWriteToParcel()
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewTest.java755 new int[] { Color.rgb(0, 255, 0), Color.BLACK }); in testAccessTextColor()
980 new int[] { Color.rgb(0, 255, 0), Color.BLACK }); in testAccessHintTextColor()
1010 new int[] { Color.rgb(0, 255, 0), Color.BLACK }); in testAccessLinkTextColor()