/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | BlendModeTest.java | 182 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 …]
|
D | ShadowTests.java | 106 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()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | LinearGradientTest.java | 60 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 …]
|
D | Color_ColorLongTest.java | 22 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 …]
|
D | ComposeShaderTest.java | 66 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()
|
D | SweepGradientTest.java | 131 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/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/uirendering27/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/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | ColorUtils.java | 51 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/renderscript/src/android/renderscript/cts/refocus/ |
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;
|
/cts/tests/tests/view/surfacevalidator/src/android/view/cts/surfacevalidator/ |
D | PixelChecker.java | 59 final int green = scanline[offset + 1] & 0xFF; in matchesColor() local 67 && green <= expectedColor.mMaxGreen in matchesColor() 68 && green >= expectedColor.mMinGreen in matchesColor()
|
D | RectChecker.java | 89 final int green = scanline[i + 1] & 0xFF; in validatePlaneForTarget() local 97 && green <= maxGreen in validatePlaneForTarget() 98 && green >= minGreen in validatePlaneForTarget()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/ |
D | BlurPixelVerifier.java | 42 float dstGreenChannel = Color.green(mDstColor); in verify() 46 float srcGreenChannel = Color.green(mSrcColor); in verify() 71 double pixelGreenChannel = Color.green(pixelColor); in verify()
|
D | SamplePointWideGamutVerifier.java | 53 if (!floatCompare(expected.green(), actual.green(), mEps)) localSuccess = false; in verify()
|
/cts/tests/camera/src/android/hardware/camera2/cts/rs/ |
D | BitmapUtils.java | 95 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/transition/src/android/transition/cts/ |
D | ChangeBoundsTest.java | 231 && 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/hostsidetests/securitybulletin/test-apps/CVE-2021-0523/src/android/security/cts/CVE_2021_0523/ |
D | PocService.java | 109 int green = Color.green(pixel); in onTouch() local 112 if ((red == 0xBE) && (green == 0xBE) && (blue == 0xBE)) { in onTouch()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | CrossProcessExceptionTest.java | 39 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/renderscript/src/android/renderscript/cts/ |
D | intrinsic_lut.rscript | 20 short green[256]; 27 tmp.g = green[in.g];
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/view/ |
D | AlphaTestView.java | 80 float g = (float) Color.green(color1) * inverseRatio + (float) Color.green(color2) * ratio; in blendColor()
|
/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/ime/ |
D | BitmapImage.java | 111 && Math.abs(Color.green(lhs) - Color.green(rhs)) <= TOLERANCE in robustMatchInternal()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | CodecUtils.java | 223 return color.red() > 0.95 && color.green() < 0.05 && color.blue() < 0.05; in isRed() 227 return color.red() < 0.05 && color.green() > 0.95 && color.blue() < 0.05; in isGreen() 231 return color.red() < 0.05 && color.green() < 0.05 && color.blue() > 0.95; in isBlue() 235 return color.red() > 0.95 && color.green() > 0.95 && color.blue() > 0.95; in isWhite()
|
/cts/tests/tests/graphics/src/android/graphics/cts/utils/ |
D | CamUtils.java | 125 final float g = linearized(Color.green(argb)); in yFromInt() 134 final float g = linearized(Color.green(argb)); in xyzFromInt()
|
/cts/tests/tests/view/src/android/view/cts/util/ |
D | DrawingUtils.java | 84 + Color.green(expectedPixelColor) + "," in assertAllPixelsOfColor() 89 + Color.green(actualPixelColor) + "," in assertAllPixelsOfColor()
|