Home
last modified time | relevance | path

Searched refs:green (Results 1 – 25 of 34) 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()
DPixelXorXfermodeTest.java61 int green = Color.green(color); in alphaColor() local
63 return Color.argb(alpha, red, green, blue); in alphaColor()
DComposeShaderTest.java58 int green = (int)((greenX + greenY - greenX * greenY) * 255); in testPorterDuff() local
63 assertEquals(green, Color.green(pixel), TOLERANCE); in testPorterDuff()
DColorTest.java40 assertEquals(0x00, Color.green(Color.RED)); in testGreen()
41 assertEquals(0xff, Color.green(Color.GREEN)); in testGreen()
DColorMatrixColorFilterTest.java100 assertEquals(Color.green(expected), Color.green(actual), tolerance); in assertColor()
DBlurMaskFilterTest.java78 assertEquals(Color.green(expected), Color.green(actual)); in checkColor()
DLightingColorFilterTest.java86 assertEquals(Color.green(expected), Color.green(actual), TOLERANCE); in assertColor()
DDiscretePathEffectTest.java81 if (Color.green(pixel) > 0) { in testDiscretePathEffect()
DCornerPathEffectTest.java82 if (Color.green(pixel) > 0) { in testCornerPathEffect()
DEmbossMaskFilterTest.java87 color += Color.red(pixel) + Color.green(pixel) + Color.blue(pixel); in brightness()
DPorterDuffColorFilterTest.java52 assertEquals(0x80, Color.green(lowerLeft), TOLERANCE); in testPorterDuffColorFilter()
DYuvImageTest.java381 int g = Color.green(actual) - Color.green(exp); in distance()
388 int g = Color.green(argb); in argb2yuv()
/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/
Dintrinsic_lut.rs20 short green[256];
27 tmp.g = green[in.g];
/cts/suite/cts/deviceTests/browserbench/assets/octane/
Draytrace.js81 green : 0.0, property in Flog.RayTracer.Color
90 this.green = g;
98 result.green = c1.green + c2.green;
108 result.green = c1.green + s;
120 result.green = c1.green - c2.green;
130 result.green = c1.green * c2.green;
140 result.green = c1.green * f;
150 result.green = c1.green / f;
158 this.green = (this.green > 0.0) ? ( (this.green > 1.0) ? 1.0 : this.green ) : 0.0;
163 …var d = Math.abs(this.red - color.red) + Math.abs(this.green - color.green) + Math.abs(this.blue -…
[all …]
/cts/tests/tests/uirendering/src/android/uirendering/cts/util/
DCompareUtils.java11 + Math.abs(Color.green(color) - Color.green(expectedColor)) in verifyPixelWithThreshold()
/cts/tests/tests/animation/src/android/animation/cts/
DArgbEvaluatorTest.java29 int gRED = Color.green(RED); in testEvaluate()
33 int gBLUE = Color.green(BLUE); in testEvaluate()
50 int gResult = Color.green(result); in testEvaluate()
DAnimationActivity.java253 int green = (int)(Math.random() * 255); in addBall() local
255 int color = 0xff000000 | red << 16 | green << 8 | blue; in addBall()
256 int darkColor = 0xff000000 | red/4 << 16 | green/4 << 8 | blue/4; in addBall()
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/rs/
DBitmapUtils.java86 diff += Math.abs(Color.green(aPix) - Color.green(bPix)); // green in calcDifferenceMetric()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DBitmapFilterTests.java46 int weight = Color.red(color) + Color.blue(color) + Color.green(color);

12