/cts/tests/tests/uirendering/src/android/uirendering/cts/util/ |
D | CompareUtils.java | 11 + 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/graphics/src/android/graphics/cts/ |
D | Color_ColorLongTest.java | 30 import static android.graphics.Color.green; 58 assertEquals(0.7f, green(pack(0.5f, 0.7f, 1.0f)), 0.01f); in testGreen() 59 assertEquals(0.7f, green(pack(0.5f, 0.7f, 1.0f, 1.0f, p3)), 0.01f); in testGreen() 128 assertEquals(0.0f, color1.green(), 0.01f); in testValueOf() 135 assertEquals(0.7f, color2.green(), 0.01f); in testValueOf() 142 assertEquals(0.5f, color3.green(), 0.01f); in testValueOf() 149 assertEquals(0.5f, color4.green(), 0.01f); in testValueOf() 157 assertEquals(0.5f, color5.green(), 0.01f); in testValueOf() 165 assertEquals(0.5f, color6.green(), 0.01f); in testValueOf() 172 assertEquals(0.5f, color7.green(), 0.01f); in testValueOf() [all …]
|
D | LinearGradientTest.java | 56 assertTrue(Color.green(b.getPixel(10, 0)) < Color.green(b.getPixel(10, 5))); in testLinearGradient() 57 assertTrue(Color.green(b.getPixel(10, 5)) < Color.green(b.getPixel(10, 10))); in testLinearGradient() 59 assertTrue(Color.green(b.getPixel(10, 15)) > Color.green(b.getPixel(10, 20))); in testLinearGradient() 60 assertTrue(Color.green(b.getPixel(10, 20)) > Color.green(b.getPixel(10, 25))); in testLinearGradient()
|
D | SweepGradientTest.java | 126 int green = (int) ((1d - delta) * Color.green(colors[i1]) + in verifyColors() local 127 delta * Color.green(colors[i2])); in verifyColors() 130 color = Color.argb(alpha, red, green, blue); in verifyColors() 138 assertEquals(Color.green(color), Color.green(pixel), tolerance); in verifyColors()
|
D | BlurMaskFilterTest.java | 81 assertEquals(Color.green(expected), Color.green(actual)); in verifyColor()
|
D | ComposeShaderTest.java | 64 int green = (int)((greenX + greenY - greenX * greenY) * 255); in testPorterDuff() local 69 assertEquals(green, Color.green(pixel), TOLERANCE); in testPorterDuff()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | intrinsic_lut.rs | 20 short green[256]; 27 tmp.g = green[in.g];
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/ |
D | layered_filter_fast_f32.rs | 106 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 …]
|
D | pixel_format_f32.rsh | 7 // 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;
|
D | layered_filter_f32_helper.rsh | 96 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;
|
D | ImageCompare.java | 32 final int G = Color.green(pixel); in luma()
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | ColorUtils.java | 34 assertEquals(s, Color.green(expected), Color.green(observed), tolerance); in verifyColor()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | CrossProcessExceptionTest.java | 39 private IBinder green; field in CrossProcessExceptionTest 74 green = greenConn.get(); in setUp() 140 green.dump(fds[0].getFileDescriptor(), new String[] { cmd }); in doCommand()
|
/cts/tests/tests/transition/src/android/transition/cts/ |
D | ChangeBoundsTest.java | 205 final View green = mActivity.findViewById(R.id.greenSquare); in waitForMiddleOfTransition() local 208 () -> red.getTop() > closestDistance && green.getTop() > closestDistance); in waitForMiddleOfTransition() 211 assertTrue(green.getTop() > closestDistance); in waitForMiddleOfTransition() 216 View green = mActivity.findViewById(R.id.greenSquare); in isRestartingAnimation() local 220 return red.getTop() < closestDistance || green.getTop() < closestDistance; in isRestartingAnimation() 232 View green = mActivity.findViewById(R.id.greenSquare); in isRestartingClip() local 233 Rect greenClip = green.getClipBounds(); in isRestartingClip()
|
/cts/tests/camera/src/android/hardware/camera2/cts/rs/ |
D | BitmapUtils.java | 86 diff += Math.abs(Color.green(aPix) - Color.green(bPix)); // green in calcDifferenceMetric()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | ShadowTests.java | 105 return Color.red(color) > Color.green(color) in testRedSpotShadow() 121 return Color.red(color) > Color.green(color) in testRedAmbientShadow() 137 return Color.red(color) > Color.green(color) in testRedAmbientBlueSpotShadow()
|
/cts/tests/tests/view/src/android/view/cts/util/ |
D | DrawingUtils.java | 84 + Color.green(expectedPixelColor) + "," in assertAllPixelsOfColor() 89 + Color.green(actualPixelColor) + "," in assertAllPixelsOfColor()
|
/cts/tests/tests/animation/src/android/animation/cts/ |
D | EvaluatorTest.java | 101 int gSTART = Color.green(START); in testArgbEvaluator() 105 int gEND = Color.green(END); in testArgbEvaluator() 113 int gResult = Color.green(result); in testArgbEvaluator() 123 gResult = Color.green(result); in testArgbEvaluator() 141 gResult = Color.green(result); in testArgbEvaluator()
|
D | AnimationActivity.java | 252 int green = (int)(Math.random() * 255); in addBall() local 254 int color = 0xff000000 | red << 16 | green << 8 | blue; in addBall() 255 int darkColor = 0xff000000 | red/4 << 16 | green/4 << 8 | blue/4; in addBall()
|
/cts/tests/tests/systemui/src/android/systemui/cts/ |
D | LightBarTests.java | 273 int bgGreen = Color.green(background); in mixSrcOver() 278 int fgGreen = Color.green(foreground); in mixSrcOver() 294 && Math.abs(Color.green(c1) - Color.green(c2)) < COLOR_COMPONENT_ERROR_MARGIN in isColorSame()
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/util/ |
D | LightNavigationBarVerifier.java | 155 (dark, light) -> Color.green(dark) - Color.green(light)), in verify()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/ |
D | SamplePointWideGamutVerifier.java | 56 if (!floatCompare(c.green(), g, mEps)) localSuccess = false; in verify()
|
/cts/tests/tests/widget/src/android/widget/cts/util/ |
D | TestUtils.java | 292 int sourceGreen = Color.green(actualColor); in areColorsTheSameWithTolerance() 297 int expectedGreen = Color.green(expectedColor); in areColorsTheSameWithTolerance() 323 int g = compositeComponent(Color.green(foreground), fgAlpha, in compositeColors() 324 Color.green(background), bgAlpha, a); in compositeColors()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | TextureViewCtsActivity.java | 229 Color.green(color) / 255.0f, in drawColor() 234 public void drawColor(float red, float green, float blue, float alpha) throws Throwable { in drawColor() argument 236 glClearColor(red, green, blue, alpha); in drawColor()
|
D | PixelCopyGLProducerCtsActivity.java | 89 Color.green(color) / 255.0f, in clearColor()
|