Home
last modified time | relevance | path

Searched refs:blue (Results 1 – 25 of 88) sorted by relevance

1234

/cts/tests/tests/os/src/android/os/cts/
DParcelFileDescriptorProcessTest.java48 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 …]
DParcelFileDescriptorTest.java249 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()
365 final ParcelFileDescriptor blue = pair[1]; in testSocketErrorAfterClose() local
[all …]
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DBlendModeTest.java183 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 …]
DShadowTests.java107 && 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/
DLinearGradientTest.java58 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 …]
DColor_ColorLongTest.java19 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 …]
DSweepGradientTest.java133 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()
DRadialGradientTest.java72 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/uirendering/src/android/uirendering/cts/util/
DCompareUtils.java12 + 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/uirendering27/src/android/uirendering/cts/util/
DCompareUtils.java12 + 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/
DColorUtils.java52 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/renderscript/src/android/renderscript/cts/refocus/
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.
29 float blue;
53 float blue;
Dlayered_filter_f32_helper.rsh97 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/tests/view/surfacevalidator/src/android/view/cts/surfacevalidator/
DPixelChecker.java60 final int blue = scanline[offset + 2] & 0xFF; in matchesColor() local
69 && blue <= expectedColor.mMaxBlue in matchesColor()
70 && blue >= expectedColor.mMinBlue; in matchesColor()
DRectChecker.java90 final int blue = scanline[i + 2] & 0xFF; in validatePlaneForTarget() local
99 && blue <= maxBlue in validatePlaneForTarget()
100 && blue >= minBlue) { in validatePlaneForTarget()
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/
DBlurPixelVerifier.java43 float dstBlueChannel = Color.blue(mDstColor); in verify()
47 float srcBlueChannel = Color.blue(mSrcColor); in verify()
72 double pixelBlueChannel = Color.blue(pixelColor); in verify()
DSamplePointWideGamutVerifier.java54 if (!floatCompare(expected.blue(), actual.blue(), mEps)) localSuccess = false; in verify()
/cts/tests/camera/src/android/hardware/camera2/cts/rs/
DBitmapUtils.java96 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/hostsidetests/securitybulletin/test-apps/CVE-2021-0523/src/android/security/cts/CVE_2021_0523/
DPocService.java110 int blue = Color.blue(pixel); in onTouch() local
112 if ((red == 0xBE) && (green == 0xBE) && (blue == 0xBE)) { in onTouch()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dintrinsic_lut.rscript21 short blue[256];
28 tmp.b = blue[in.b];
/cts/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/
DMediaStorageTest.java178 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
269 final Uri blue = create.call(); in doMediaRead() local
271 clearMediaOwner(blue, mUserId); in doMediaRead()
283 assertTrue(seen.contains(ContentUris.parseId(blue))); in doMediaRead()
287 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(blue, "r")) { in doMediaRead()
[all …]
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/view/
DAlphaTestView.java81 float b = (float) Color.blue(color1) * inverseRatio + (float) Color.blue(color2) * ratio; in blendColor()
/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/ime/
DBitmapImage.java112 && Math.abs(Color.blue(lhs) - Color.blue(rhs)) <= TOLERANCE); in robustMatchInternal()
/cts/tests/tests/media/src/android/media/cts/
DCodecUtils.java223 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/
DCamUtils.java126 final float b = linearized(Color.blue(argb)); in yFromInt()
135 final float b = linearized(Color.blue(argb)); in xyzFromInt()

1234