Home
last modified time | relevance | path

Searched refs:green (Results 1 – 25 of 70) sorted by relevance

123

/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DBlendModeTest.java182 int green = (Color.green(Color.GREEN) * Color.green(Color.BLUE)) / 255; in testBlendMode_MODULATE() local
184 int resultColor = Color.argb(alpha, red, green, blue); in testBlendMode_MODULATE()
201 int greenDst = Color.green(DST_COLOR); in testBlendMode_OVERLAY()
202 int greenSrc = Color.green(SRC_COLOR); in testBlendMode_OVERLAY()
209 int green = computeOverlay(alphaSrc, alphaDst, greenSrc, greenDst); in testBlendMode_OVERLAY() local
211 int result = Color.argb(alpha, red, green, blue); in testBlendMode_OVERLAY()
232 int greenDst = Color.green(DST_COLOR); in testBlendMode_DARKEN()
233 int greenSrc = Color.green(SRC_COLOR); in testBlendMode_DARKEN()
240 int green = computeDarken(alphaDst, alphaSrc, greenDst, greenSrc); in testBlendMode_DARKEN() local
242 int result = Color.argb(alphaOut, red, green, blue); in testBlendMode_DARKEN()
[all …]
DShadowTests.java106 return Color.red(color) > Color.green(color) in testRedSpotShadow()
122 return Color.red(color) > Color.green(color) in testRedAmbientShadow()
138 return Color.red(color) > Color.green(color) in testRedAmbientBlueSpotShadow()
DHardwareRendererTests.kt100 val green = channels[channelIndex++].toInt() and 0xFF in <lambda>() constant
103 pixels[pixelIndex++] = Color.argb(alpha, red, green, blue) in <lambda>()
182 val green = buffer.get() in testBasicDrawCpuConsumer() constant
186 assertEquals(0, green, "green") in testBasicDrawCpuConsumer()
464 val green = buffer.get().toInt() and 0xFF in testLotsOfBuffers() constant
471 assertEquals(Color.green(expectedColor), green, "green") in testLotsOfBuffers()
/cts/tests/tests/graphics/src/android/graphics/cts/
DLinearGradientTest.java60 assertTrue(Color.green(b.getPixel(10, 0)) < Color.green(b.getPixel(10, 5))); in testLinearGradient()
61 assertTrue(Color.green(b.getPixel(10, 5)) < Color.green(b.getPixel(10, 10))); in testLinearGradient()
63 assertTrue(Color.green(b.getPixel(10, 15)) > Color.green(b.getPixel(10, 20))); in testLinearGradient()
64 assertTrue(Color.green(b.getPixel(10, 20)) > Color.green(b.getPixel(10, 25))); in testLinearGradient()
84 long green = Color.pack(0, 1, 0, 1, p3);
86 long[] colors = new long[] { blue, green, red };
100 convert.apply(green), b.getColor(0, 20), 0.09f);
110 assertTrue(b.getColor(10, 0).green() < b.getColor(10, 5).green());
111 assertTrue(b.getColor(10, 5).green() < b.getColor(10, 10).green());
113 assertTrue(b.getColor(10, 20).green() > b.getColor(10, 30).green());
[all …]
DColor_ColorLongTest.java22 import static android.graphics.Color.green;
61 assertEquals(0.7f, green(pack(0.5f, 0.7f, 1.0f)), 0.01f); in testGreen()
62 assertEquals(0.7f, green(pack(0.5f, 0.7f, 1.0f, 1.0f, p3)), 0.01f); in testGreen()
136 assertEquals(0.0f, color1.green(), 0.01f); in testValueOf()
143 assertEquals(0.7f, color2.green(), 0.01f); in testValueOf()
150 assertEquals(0.5f, color3.green(), 0.01f); in testValueOf()
157 assertEquals(0.5f, color4.green(), 0.01f); in testValueOf()
165 assertEquals(0.5f, color5.green(), 0.01f); in testValueOf()
173 assertEquals(0.5f, color6.green(), 0.01f); in testValueOf()
180 assertEquals(0.5f, color7.green(), 0.01f); in testValueOf()
[all …]
DComposeShaderTest.java66 int green = (int) ((greenX + greenY - greenX * greenY) * 255); in testPorterDuff() local
71 assertEquals(green, Color.green(pixel), TOLERANCE); in testPorterDuff()
99 int green = (int)((greenX + greenY - greenX * greenY) * 255); in testBlendMode() local
104 assertEquals(green, Color.green(pixel), TOLERANCE); in testBlendMode()
DSweepGradientTest.java131 int green = (int) ((1d - delta) * Color.green(colors[i1]) + in verifyColors() local
132 delta * Color.green(colors[i2])); in verifyColors()
135 color = Color.argb(alpha, red, green, blue); in verifyColors()
143 assertEquals(Color.green(color), Color.green(pixel), tolerance); in verifyColors()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DColorUtils.java51 String green = verifyChannel("green", expected, observed, tolerance, (i) -> Color.green(i)); in verifyColor() local
55 buildErrorString(s, red, green, blue, alpha); in verifyColor()
59 @Nullable String green, @Nullable String blue, @Nullable String alpha) { in buildErrorString() argument
61 for (String channel : new String[]{red, green, blue, alpha}) { in buildErrorString()
99 String green = verifyChannel("green", expected, observed, tolerance, (c) -> c.green()); in verifyColor() local
103 buildErrorString(msg, red, green, blue, alpha); in verifyColor()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DColorUtils.java51 String green = verifyChannel("green", expected, observed, tolerance, (i) -> Color.green(i)); in verifyColor() local
55 buildErrorString(s, red, green, blue, alpha); in verifyColor()
59 @Nullable String green, @Nullable String blue, @Nullable String alpha) { in buildErrorString() argument
61 for (String channel : new String[]{red, green, blue, alpha}) { in buildErrorString()
99 String green = verifyChannel("green", expected, observed, tolerance, (c) -> c.green()); in verifyColor() local
103 buildErrorString(msg, red, green, blue, alpha); in verifyColor()
/cts/tests/tests/uirendering27/src/android/uirendering/cts/util/
DCompareUtils.java11 + Math.abs(Color.green(color) - Color.green(expectedColor)) in verifyPixelWithThreshold()
22 int average = Color.red(color) + Color.green(color) + Color.blue(color); in verifyPixelGrayScale()
25 && Math.abs(Color.green(color) - average) <= threshold in verifyPixelGrayScale()
/cts/tests/tests/uirendering/src/android/uirendering/cts/util/
DCompareUtils.java11 + Math.abs(Color.green(color) - Color.green(expectedColor)) in verifyPixelWithThreshold()
22 int average = Color.red(color) + Color.green(color) + Color.blue(color); in verifyPixelGrayScale()
25 && Math.abs(Color.green(color) - average) <= threshold in verifyPixelGrayScale()
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
Dpixel_format_f32.rsh7 // 1. Initially, it stores the input color (red, green, blue) and the depth
17 // the color (red, green, blue) of FocusPixel is updated and ready to be used in
21 // the color (red, green, blue) of FocusPixel is *not* changed.
28 float green;
52 float green;
Dlayered_filter_f32_helper.rsh96 result.green += weight * sharp_nbr->green;
108 result.green *= factor;
144 fuzzy.green = result.g * factor;
180 result.green += weight * sharp_nbr->green;
192 result.green *= fac;
202 p->green = 0;
222 p->green = 0;
Dlayered_filter_fast_f32.rscript106 sharp->green = in.g * g_kOneOver255;
111 sharp->green =
112 ApplyLUT_Float(sharp->green, g_camera_response.lut_remove_crf_float);
270 float4 this_value = {weight * sharp->red, weight * sharp->green,
291 float4 this_value = {weight * sharp->red, weight * sharp->green,
387 fuzzy->green += factor * result.green;
433 sharp->green += factor * (fuzzy->green - sharp->green);
437 fuzzy->green = 0;
463 fuzzy->green += sharp->green * capacity;
484 ApplyLUT_Float(fuzzy->green, g_camera_response.lut_apply_crf_float);
[all …]
/cts/tests/tests/view/surfacevalidator/src/android/view/cts/surfacevalidator/
DPixelColor.java44 short green = (short) ((color >> 8) & 0xFF); in PixelColor() local
53 mMinGreen = (short) getMinValue(green); in PixelColor()
54 mMaxGreen = (short) getMaxValue(green); in PixelColor()
DPixelChecker.java67 final int green = scanline[i + 1] & 0xFF; in validatePlane() local
75 && green <= maxGreen in validatePlane()
76 && green >= minGreen in validatePlane()
DRectChecker.java89 final int green = scanline[i + 1] & 0xFF; in validatePlaneForTarget() local
97 && green <= maxGreen in validatePlaneForTarget()
98 && green >= minGreen in validatePlaneForTarget()
/cts/tests/tests/transition/src/android/transition/cts/
DChangeBoundsTest.java231 && redAndGreen.green.position.width() > middleSize in waitForSizeIsMiddle()
232 && redAndGreen.green.position.height() > middleSize in waitForSizeIsMiddle()
243 && redAndGreen.green.clip != null in waitForClipIsMiddle()
246 && redAndGreen.green.clip.width() > middleSize in waitForClipIsMiddle()
247 && redAndGreen.green.clip.height() > middleSize in waitForClipIsMiddle()
261 && Math.abs(smallSize - start.green.position.top) < errorPx; in isRestartingAnimation()
265 return start.green.position.top == 0 in isRestartingAnimation()
283 && start.green.clip.width() < smallSize + errorPx; in isRestartingClip()
288 && start.green.clip.width() > largeSize - errorPx; in isRestartingClip()
458 public final PositionAndClip green; field in ChangeBoundsTest.RedAndGreen
[all …]
/cts/tests/tests/systemui/src/android/systemui/cts/
DLightBarTests.java223 Color.RGBToHSV(Color.red(mixedIconColor), Color.green(mixedIconColor), in evaluateLightBarBitmap()
225 Color.RGBToHSV(Color.red(mixedIconPartialColor), Color.green(mixedIconPartialColor), in evaluateLightBarBitmap()
254 Color.RGBToHSV(Color.red(c), Color.green(c), Color.blue(c), hsvPixel); in evaluateLightBarBitmap()
283 int bgGreen = Color.green(background); in mixSrcOver()
288 int fgGreen = Color.green(foreground); in mixSrcOver()
304 && Math.abs(Color.green(c1) - Color.green(c2)) < COLOR_COMPONENT_ERROR_MARGIN in isColorSame()
/cts/tests/camera/src/android/hardware/camera2/cts/rs/
DBitmapUtils.java95 aFirstPix[1] = Color.green(aPixels[1]); in compareBitmap()
98 bFirstPix[1] = Color.green(bPixels[1]); in compareBitmap()
106 int aG = Color.green(aPix); in compareBitmap()
109 int bG = Color.green(bPix); in compareBitmap()
/cts/tests/tests/os/src/android/os/cts/
DCrossProcessExceptionTest.java39 private IBinder green; field in CrossProcessExceptionTest
74 green = greenConn.get(); in setUp()
143 green.dump(fds[0].getFileDescriptor(), new String[] { cmd }); in doCommand()
/cts/tests/tests/animation/src/android/animation/cts/
DEvaluatorTest.java102 int gSTART = Color.green(START); in testArgbEvaluator()
106 int gEND = Color.green(END); in testArgbEvaluator()
114 int gResult = Color.green(result); in testArgbEvaluator()
124 gResult = Color.green(result); in testArgbEvaluator()
142 gResult = Color.green(result); in testArgbEvaluator()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dintrinsic_lut.rscript20 short green[256];
27 tmp.g = green[in.g];
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/
DSamplePointWideGamutVerifier.java53 if (!floatCompare(expected.green(), actual.green(), mEps)) localSuccess = false; in verify()
/cts/tests/tests/view/src/android/view/cts/util/
DDrawingUtils.java84 + Color.green(expectedPixelColor) + "," in assertAllPixelsOfColor()
89 + Color.green(actualPixelColor) + "," in assertAllPixelsOfColor()

123