/cts/tests/tests/os/src/android/os/cts/ |
D | ParcelFileDescriptorProcessTest.java | 50 private IParcelFileDescriptorPeer blue; field in ParcelFileDescriptorProcessTest 105 blue = blueConn.get(); in setUp() 106 red.setPeer(blue); in setUp() 107 blue.setPeer(red); in setUp() 131 blue.doGet(); in testPullPipeNormal() 133 blue.write(1); in testPullPipeNormal() 136 blue.close(); in testPullPipeNormal() 147 assertEquals(2, blue.read()); in testPushPipeNormal() 150 assertEquals(-1, blue.read()); in testPushPipeNormal() 151 assertEquals(null, blue.checkError()); in testPushPipeNormal() [all …]
|
D | ParcelFileDescriptorTest.java | 334 final ParcelFileDescriptor blue = pipe[1]; in testBasicPipeNormal() local 336 write(blue, 1); in testBasicPipeNormal() 339 blue.close(); in testBasicPipeNormal() 349 final ParcelFileDescriptor blue = pipe[1]; in testPipeNormal() local 351 write(blue, 1); in testPipeNormal() 354 blue.close(); in testPipeNormal() 366 final ParcelFileDescriptor blue = pipe[1]; in testPipeError_Discouraged() local 368 write(blue, 2); in testPipeError_Discouraged() 369 blue.closeWithError("OMG MUFFINS"); in testPipeError_Discouraged() 387 final ParcelFileDescriptor blue = pipe[1]; in testPipeError() local [all …]
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | BlendModeTest.java | 183 int blue = (Color.blue(DST_COLOR) * Color.blue(Color.BLUE)) / 255; in testBlendMode_MODULATE() local 184 int resultColor = Color.argb(alpha, red, green, blue); in testBlendMode_MODULATE() 204 int blueDst = Color.blue(DST_COLOR); in testBlendMode_OVERLAY() 205 int blueSrc = Color.blue(SRC_COLOR); in testBlendMode_OVERLAY() 210 int blue = computeOverlay(alphaSrc, alphaDst, blueSrc, blueDst); in testBlendMode_OVERLAY() local 211 int result = Color.argb(alpha, red, green, blue); in testBlendMode_OVERLAY() 235 int blueDst = Color.blue(DST_COLOR); in testBlendMode_DARKEN() 236 int blueSrc = Color.blue(SRC_COLOR); in testBlendMode_DARKEN() 241 int blue = computeDarken(alphaDst, alphaSrc, blueDst, blueSrc); in testBlendMode_DARKEN() local 242 int result = Color.argb(alphaOut, red, green, blue); in testBlendMode_DARKEN() [all …]
|
D | ShadowTests.java | 107 && Color.red(color) > Color.blue(color); in testRedSpotShadow() 123 && Color.red(color) > Color.blue(color); in testRedAmbientShadow() 139 && Color.blue(color) > Color.red(color); in testRedAmbientBlueSpotShadow()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | LinearGradientTest.java | 58 assertTrue(Color.blue(b.getPixel(10, 0)) > Color.blue(b.getPixel(10, 5))); in testLinearGradient() 59 assertTrue(Color.blue(b.getPixel(10, 5)) > Color.blue(b.getPixel(10, 10))); in testLinearGradient() 76 assertTrue(Color.blue(b.getPixel(10, 0)) < Color.blue(b.getPixel(10, 15))); in testLinearGradient() 77 assertTrue(Color.blue(b.getPixel(10, 15)) < Color.blue(b.getPixel(10, 30))); in testLinearGradient() 85 long blue = Color.pack(0, 0, 1, 1, p3); 86 long[] colors = new long[] { blue, green, red }; 97 convert.apply(blue), b.getColor(0, 0), 0.09f); 108 assertTrue(b.getColor(10, 0).blue() > b.getColor(10, 5).blue()); 109 assertTrue(b.getColor(10, 5).blue() > b.getColor(10, 10).blue()); 118 lg = new LinearGradient(0, 0, 0, 40, red, blue, TileMode.CLAMP); [all …]
|
D | Color_ColorLongTest.java | 19 import static android.graphics.Color.blue; 69 assertEquals(1.0f, blue(pack(0.5f, 0.7f, 1.0f)), 0.01f); in testBlue() 70 assertEquals(1.0f, blue(pack(0.5f, 0.7f, 1.0f, 1.0f, p3)), 0.01f); in testBlue() 137 assertEquals(1.0f, color1.blue(), 0.01f); in testValueOf() 144 assertEquals(1.0f, color2.blue(), 0.01f); in testValueOf() 151 assertEquals(1.0f, color3.blue(), 0.01f); in testValueOf() 158 assertEquals(1.0f, color4.blue(), 0.01f); in testValueOf() 166 assertEquals(1.0f, color5.blue(), 0.01f); in testValueOf() 174 assertEquals(1.0f, color6.blue(), 0.01f); in testValueOf() 181 assertEquals(1.0f, color7.blue(), 0.01f); in testValueOf() [all …]
|
D | SweepGradientTest.java | 133 int blue = (int) ((1d - delta) * Color.blue(colors[i1]) + in verifyColors() local 134 delta * Color.blue(colors[i2])); in verifyColors() 135 color = Color.argb(alpha, red, green, blue); in verifyColors() 144 assertEquals(Color.blue(color), Color.blue(pixel), tolerance); in verifyColors() 259 long blue = Color.pack(0, 0, 1, 1, p3); in testColorLong() local 260 SweepGradient gradient = new SweepGradient(50, 50, red, blue); in testColorLong() 303 + toString(lastAngle), c.blue() > lastColor.blue()); in testColorLong()
|
D | RadialGradientTest.java | 72 long blue = Color.pack(0, 0, 1, 1, p3); in testColorLong() local 73 RadialGradient gradient = new RadialGradient(50, 50, 25, red, blue, TileMode.CLAMP); in testColorLong() 91 Color blueColor = convert.apply(blue); in testColorLong() 124 currentColor.blue() > lastColor.blue()); in testColorLong()
|
/cts/tests/tests/uirendering27/src/android/uirendering/cts/util/ |
D | CompareUtils.java | 12 + Math.abs(Color.blue(color) - Color.blue(expectedColor)); in verifyPixelWithThreshold() 22 int average = Color.red(color) + Color.green(color) + Color.blue(color); in verifyPixelGrayScale() 26 && Math.abs(Color.blue(color) - average) <= threshold; in verifyPixelGrayScale()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | ColorUtils.java | 52 String blue = verifyChannel("blue", expected, observed, tolerance, (i) -> Color.blue(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() 100 String blue = verifyChannel("blue", expected, observed, tolerance, (c) -> c.blue()); in verifyColor() local 103 buildErrorString(msg, red, green, blue, alpha); in verifyColor()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/util/ |
D | CompareUtils.java | 12 + Math.abs(Color.blue(color) - Color.blue(expectedColor)); in verifyPixelWithThreshold() 22 int average = Color.red(color) + Color.green(color) + Color.blue(color); in verifyPixelGrayScale() 26 && Math.abs(Color.blue(color) - average) <= threshold; in verifyPixelGrayScale()
|
/cts/tests/surfacecontrol/surfacevalidator/src/android/view/cts/surfacevalidator/ |
D | PixelColor.java | 70 final float blue = Color.blue(color); in matchesColor() local 79 && blue <= mMaxBlue in matchesColor() 80 && blue >= mMinBlue; in matchesColor()
|
D | RectChecker.java | 90 final int blue = scanline[i + 2] & 0xFF; in validatePlaneForTarget() local 99 && blue <= maxBlue in validatePlaneForTarget() 100 && blue >= minBlue) { in validatePlaneForTarget()
|
D | PixelChecker.java | 80 final int blue = scanline[offset + 2] & 0xFF; in matchesColor() local 89 && blue <= expectedColor.mMaxBlue in matchesColor() 90 && blue >= expectedColor.mMinBlue; in matchesColor()
|
/cts/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/ |
D | MediaStorageTest.java | 178 final Uri blue = create.call(); in doMediaNone() local 180 clearMediaOwner(blue, mUserId); in doMediaNone() 193 assertFalse(seen.contains(ContentUris.parseId(blue))); in doMediaNone() 197 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(blue, "r")) { in doMediaNone() 201 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(blue, "w")) { in doMediaNone() 212 mContext.grantUriPermission(mContext.getPackageName(), blue, flag); in doMediaNone() local 270 final Uri blue = create.call(); in doReadUriPermissionOnUriWithoutId_sameQueryResult() local 271 clearMediaOwner(blue, mUserId); in doReadUriPermissionOnUriWithoutId_sameQueryResult() 291 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(blue, "r")) { in doReadUriPermissionOnUriWithoutId_sameQueryResult() 292 fail("Expected read access to " + blue.toString() + " be blocked"); in doReadUriPermissionOnUriWithoutId_sameQueryResult() [all …]
|
/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. 29 float blue; 53 float blue;
|
D | layered_filter_f32_helper.rsh | 97 result.blue += weight * sharp_nbr->blue; 109 result.blue *= factor; 145 fuzzy.blue = result.b * factor; 181 result.blue += weight * sharp_nbr->blue; 193 result.blue *= fac; 203 p->blue = 0; 223 p->blue = 0;
|
/cts/tests/camera/src/android/hardware/camera2/cts/rs/ |
D | BitmapUtils.java | 70 aFirstPix[2] = Color.blue(aPixels[2]); in compareBitmap() 73 bFirstPix[2] = Color.blue(bPixels[2]); in compareBitmap() 81 int aB = Color.blue(aPix); in compareBitmap() 84 int bB = Color.blue(bPix); in compareBitmap()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/ |
D | BlurPixelVerifier.java | 43 float dstBlueChannel = Color.blue(mDstColor); in verify() 47 float srcBlueChannel = Color.blue(mSrcColor); in verify() 72 double pixelBlueChannel = Color.blue(pixelColor); in verify()
|
D | SamplePointWideGamutVerifier.java | 54 if (!floatCompare(expected.blue(), actual.blue(), mEps)) localSuccess = false; in verify()
|
/cts/apps/CameraITS/tests/scene8/ |
D | test_ae_awb_regions.py | 170 def _do_awb_check(blue, yellow): argument 184 blue_r_b_ratio = _get_red_blue_ratio(blue) 349 _, yellow, _, dark, _, light, _, blue = ( 353 _, blue, _, light, _, dark, _, yellow = ( 359 _do_awb_check(blue, yellow)
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | intrinsic_lut.rscript | 21 short blue[256]; 28 tmp.b = blue[in.b];
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/view/ |
D | AlphaTestView.java | 81 float b = (float) Color.blue(color1) * inverseRatio + (float) Color.blue(color2) * ratio; in blendColor()
|
/cts/tests/tests/media/common/src/android/media/cts/ |
D | CodecUtils.java | 218 return color.red() > 0.95 && color.green() < 0.05 && color.blue() < 0.05; in isRed() 222 return color.red() < 0.05 && color.green() > 0.95 && color.blue() < 0.05; in isGreen() 226 return color.red() < 0.05 && color.green() < 0.05 && color.blue() > 0.95; in isBlue() 230 return color.red() > 0.95 && color.green() > 0.95 && color.blue() > 0.95; in isWhite()
|
/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/ime/ |
D | BitmapImage.java | 112 && Math.abs(Color.blue(lhs) - Color.blue(rhs)) <= TOLERANCE); in robustMatchInternal()
|