Home
last modified time | relevance | path

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

12

/cts/tests/tests/graphics/src/android/graphics/cts/
DLinearGradientTest.java45 assertTrue(Color.green(b.getPixel(10, 0)) < Color.green(b.getPixel(10, 5))); in testLinearGradient()
46 assertTrue(Color.green(b.getPixel(10, 5)) < Color.green(b.getPixel(10, 10))); in testLinearGradient()
48 assertTrue(Color.green(b.getPixel(10, 15)) > Color.green(b.getPixel(10, 20))); in testLinearGradient()
49 assertTrue(Color.green(b.getPixel(10, 20)) > Color.green(b.getPixel(10, 25))); in testLinearGradient()
DSweepGradientTest.java114 int green = (int) ((1d - delta) * Color.green(colors[i1]) + in checkColors() local
115 delta * Color.green(colors[i2])); in checkColors()
118 color = Color.argb(alpha, red, green, blue); in checkColors()
126 assertEquals(Color.green(color), Color.green(pixel), tolerance); in checkColors()
DComposeShaderTest.java58 int green = (int)((greenX + greenY - greenX * greenY) * 255); in testPorterDuff() local
63 assertEquals(green, Color.green(pixel), TOLERANCE); in testPorterDuff()
DBlurMaskFilterTest.java78 assertEquals(Color.green(expected), Color.green(actual)); in checkColor()
DColorMatrixColorFilterTest.java100 assertEquals(Color.green(expected), Color.green(actual), tolerance); in assertColor()
DColorTest.java40 assertEquals(0x00, Color.green(Color.RED)); in testGreen()
41 assertEquals(0xff, Color.green(Color.GREEN)); in testGreen()
DLightingColorFilterTest.java86 assertEquals(Color.green(expected), Color.green(actual), TOLERANCE); in assertColor()
/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/uirendering/src/android/uirendering/cts/bitmapcomparers/
DPSNRComparer.java67 MSE += (Color.green(ideal[index]) - Color.green(given[index])) * in verifySame()
68 (Color.green(ideal[index]) - Color.green(given[index])); in verifySame()
DMeanSquaredComparer.java98 float green = Color.green(color) / 255.0f; in getColorSum() local
100 return (red + green + blue); in getColorSum()
DNearPixelComparer.java62 error += Math.abs(Color.green(ideal) - Color.green(given)); in pixelsAreSame()
DWeightedPixelDifference.java60 error += Math.abs(Color.green(color1) - Color.green(color2)); in errorBetweenPixels()
DThresholdDifferenceComparer.java54 error += Math.abs(Color.green(ideal[index]) - Color.green(given[index])); in verifySame()
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
Dlayered_filter_fast_f32.rs106 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 …]
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;
DImageCompare.java32 final int G = Color.green(pixel); in luma()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dintrinsic_lut.rs20 short green[256];
27 tmp.g = green[in.g];
/cts/tests/tests/animation/src/android/animation/cts/
DEvaluatorTest.java76 int gRED = Color.green(RED); in testArgbEvaluator()
80 int gBLUE = Color.green(BLUE); in testArgbEvaluator()
88 int gResult = Color.green(result); in testArgbEvaluator()
98 gResult = Color.green(result); in testArgbEvaluator()
108 gResult = Color.green(result); in testArgbEvaluator()
/cts/tests/camera/src/android/hardware/camera2/cts/rs/
DBitmapUtils.java86 diff += Math.abs(Color.green(aPix) - Color.green(bPix)); // green in calcDifferenceMetric()
/cts/tests/tests/view/src/android/view/cts/util/
DDrawingUtils.java83 + Color.green(expectedPixelColor) + "," in assertAllPixelsOfColor()
88 + Color.green(actualPixelColor) + "," in assertAllPixelsOfColor()
/cts/tests/tests/transition/src/android/transition/cts/
DChangeBoundsTest.java177 View green = mActivity.findViewById(R.id.greenSquare); in isRestartingAnimation() local
181 return red.getTop() < closestDistance || green.getTop() < closestDistance; in isRestartingAnimation()
193 View green = mActivity.findViewById(R.id.greenSquare); in isRestartingClip() local
194 Rect greenClip = green.getClipBounds(); in isRestartingClip()
/cts/tests/tests/systemui/src/android/systemui/cts/
DLightStatusBarTests.java216 int bgGreen = Color.green(background); in mixSrcOver()
221 int fgGreen = Color.green(foreground); in mixSrcOver()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawableTestUtils.java164 totalError += Math.abs(Color.green(idealColor) - Color.green(givenColor)); in compareImages()
/cts/tests/tests/widget/src/android/widget/cts/util/
DTestUtils.java176 int sourceGreen = Color.green(rowPixels[column]); in assertAllPixelsOfColor()
181 int expectedGreen = Color.green(color); in assertAllPixelsOfColor()

12