/cts/tests/tests/os/src/android/os/cts/ |
D | ParcelFileDescriptorProcessTest.java | 48 private IParcelFileDescriptorPeer blue; field in ParcelFileDescriptorProcessTest 103 blue = blueConn.get(); in setUp() 104 red.setPeer(blue); in setUp() 105 blue.setPeer(red); in setUp() 129 blue.doGet(); in testPullPipeNormal() 131 blue.write(1); in testPullPipeNormal() 134 blue.close(); in testPullPipeNormal() 145 assertEquals(2, blue.read()); in testPushPipeNormal() 148 assertEquals(-1, blue.read()); in testPushPipeNormal() 149 assertEquals(null, blue.checkError()); in testPushPipeNormal() [all …]
|
D | ParcelFileDescriptorTest.java | 249 final ParcelFileDescriptor blue = pipe[1]; in testPipeNormal() local 251 write(blue, 1); in testPipeNormal() 254 blue.close(); in testPipeNormal() 265 final ParcelFileDescriptor blue = pipe[1]; in testPipeError_Discouraged() local 267 write(blue, 2); in testPipeError_Discouraged() 268 blue.closeWithError("OMG MUFFINS"); in testPipeError_Discouraged() 285 final ParcelFileDescriptor blue = pipe[1]; in testPipeError() local 287 write(blue, 2); in testPipeError() 288 blue.closeWithError("OMG MUFFINS"); in testPipeError() 347 final ParcelFileDescriptor blue = pair[1]; in testSocketErrorAfterClose() 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()
|
D | HardwareRendererTests.kt | 101 val blue = channels[channelIndex++].toInt() and 0xFF in <lambda>() constant 103 pixels[pixelIndex++] = Color.argb(alpha, red, green, blue) in <lambda>() 183 val blue = buffer.get() in testBasicDrawCpuConsumer() constant 187 assertEquals(0xFF.toByte(), blue, "blue") in testBasicDrawCpuConsumer() 465 val blue = buffer.get().toInt() and 0xFF in testLotsOfBuffers() constant 472 assertEquals(Color.blue(expectedColor), blue, "blue") in testLotsOfBuffers()
|
/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/common/device-side/util/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/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/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/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/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/ |
D | MediaStorageTest.java | 191 final Uri blue = create.call(); in doMediaNone() local 193 clearMediaOwner(blue, mUserId); in doMediaNone() 206 assertFalse(seen.contains(ContentUris.parseId(blue))); in doMediaNone() 210 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(blue, "r")) { in doMediaNone() 214 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(blue, "w")) { in doMediaNone() 229 final Uri blue = create.call(); in doMediaRead() local 231 clearMediaOwner(blue, mUserId); in doMediaRead() 243 assertTrue(seen.contains(ContentUris.parseId(blue))); in doMediaRead() 247 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(blue, "r")) { in doMediaRead() 249 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(blue, "w")) { in doMediaRead() [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;
|
D | layered_filter_fast_f32.rscript | 107 sharp->blue = in.b * g_kOneOver255; 113 sharp->blue = 114 ApplyLUT_Float(sharp->blue, g_camera_response.lut_remove_crf_float); 271 weight * sharp->blue, weight}; 292 weight * sharp->blue, weight}; 388 fuzzy->blue += factor * result.blue; 434 sharp->blue += factor * (fuzzy->blue - sharp->blue); 438 fuzzy->blue = 0; 464 fuzzy->blue += sharp->blue * capacity; 485 result.b = ApplyLUT_Float(fuzzy->blue, g_camera_response.lut_apply_crf_float); [all …]
|
/cts/tests/tests/view/surfacevalidator/src/android/view/cts/surfacevalidator/ |
D | PixelColor.java | 43 short blue = (short) ((color >> 16) & 0xFF); in PixelColor() local 51 mMinBlue = (short) getMinValue(blue); in PixelColor() 52 mMaxBlue = (short) getMaxValue(blue); in PixelColor()
|
D | PixelChecker.java | 68 final int blue = scanline[i + 2] & 0xFF; in validatePlane() local 77 && blue <= maxBlue in validatePlane() 78 && blue >= minBlue) { in validatePlane()
|
D | RectChecker.java | 90 final int blue = scanline[i + 2] & 0xFF; in validatePlaneForTarget() local 99 && blue <= maxBlue in validatePlaneForTarget() 100 && blue >= minBlue) { in validatePlaneForTarget()
|
/cts/tests/tests/systemui/src/android/systemui/cts/ |
D | LightBarTests.java | 224 Color.blue(mixedIconColor), hsvMixedIconColor); in evaluateLightBarBitmap() 226 Color.blue(mixedIconPartialColor), hsvMixedPartialColor); in evaluateLightBarBitmap() 254 Color.RGBToHSV(Color.red(c), Color.green(c), Color.blue(c), hsvPixel); in evaluateLightBarBitmap() 284 int bgBlue = Color.blue(background); in mixSrcOver() 289 int fgBlue = Color.blue(foreground); in mixSrcOver() 305 && Math.abs(Color.blue(c1) - Color.blue(c2)) < COLOR_COMPONENT_ERROR_MARGIN; in isColorSame()
|
/cts/tests/camera/src/android/hardware/camera2/cts/rs/ |
D | BitmapUtils.java | 96 aFirstPix[2] = Color.blue(aPixels[2]); in compareBitmap() 99 bFirstPix[2] = Color.blue(bPixels[2]); in compareBitmap() 107 int aB = Color.blue(aPix); in compareBitmap() 110 int bB = Color.blue(bPix); in compareBitmap()
|
/cts/tests/tests/animation/src/android/animation/cts/ |
D | EvaluatorTest.java | 103 int bSTART = Color.blue(START); in testArgbEvaluator() 107 int bEND = Color.blue(END); in testArgbEvaluator() 115 int bResult = Color.blue(result); in testArgbEvaluator() 125 bResult = Color.blue(result); in testArgbEvaluator() 143 bResult = Color.blue(result); in testArgbEvaluator()
|
/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/bitmapverifiers/ |
D | SamplePointWideGamutVerifier.java | 54 if (!floatCompare(expected.blue(), actual.blue(), mEps)) localSuccess = false; in verify()
|