Home
last modified time | relevance | path

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

123

/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()
126 blue.doGet(); in testPullPipeNormal()
128 blue.write(1); in testPullPipeNormal()
131 blue.close(); in testPullPipeNormal()
142 assertEquals(2, blue.read()); in testPushPipeNormal()
145 assertEquals(-1, blue.read()); in testPushPipeNormal()
146 assertEquals(null, blue.checkError()); in testPushPipeNormal()
[all …]
DParcelFileDescriptorTest.java283 final ParcelFileDescriptor blue = pipe[1]; in testPipeNormal() local
285 write(blue, 1); in testPipeNormal()
288 blue.close(); in testPipeNormal()
299 final ParcelFileDescriptor blue = pipe[1]; in testPipeError_Discouraged() local
301 write(blue, 2); in testPipeError_Discouraged()
302 blue.closeWithError("OMG MUFFINS"); in testPipeError_Discouraged()
319 final ParcelFileDescriptor blue = pipe[1]; in testPipeError() local
321 write(blue, 2); in testPipeError()
322 blue.closeWithError("OMG MUFFINS"); in testPipeError()
381 final ParcelFileDescriptor blue = pair[1]; in testSocketErrorAfterClose() local
[all …]
/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/graphics/src/android/graphics/cts/
DColor_ColorLongTest.java27 import static android.graphics.Color.blue;
66 assertEquals(1.0f, blue(pack(0.5f, 0.7f, 1.0f)), 0.01f); in testBlue()
67 assertEquals(1.0f, blue(pack(0.5f, 0.7f, 1.0f, 1.0f, p3)), 0.01f); in testBlue()
129 assertEquals(1.0f, color1.blue(), 0.01f); in testValueOf()
136 assertEquals(1.0f, color2.blue(), 0.01f); in testValueOf()
143 assertEquals(1.0f, color3.blue(), 0.01f); in testValueOf()
150 assertEquals(1.0f, color4.blue(), 0.01f); in testValueOf()
158 assertEquals(1.0f, color5.blue(), 0.01f); in testValueOf()
166 assertEquals(1.0f, color6.blue(), 0.01f); in testValueOf()
173 assertEquals(1.0f, color7.blue(), 0.01f); in testValueOf()
[all …]
DLinearGradientTest.java54 assertTrue(Color.blue(b.getPixel(10, 0)) > Color.blue(b.getPixel(10, 5))); in testLinearGradient()
55 assertTrue(Color.blue(b.getPixel(10, 5)) > Color.blue(b.getPixel(10, 10))); in testLinearGradient()
72 assertTrue(Color.blue(b.getPixel(10, 0)) < Color.blue(b.getPixel(10, 15))); in testLinearGradient()
73 assertTrue(Color.blue(b.getPixel(10, 15)) < Color.blue(b.getPixel(10, 30))); in testLinearGradient()
DSweepGradientTest.java128 int blue = (int) ((1d - delta) * Color.blue(colors[i1]) + in verifyColors() local
129 delta * Color.blue(colors[i2])); in verifyColors()
130 color = Color.argb(alpha, red, green, blue); in verifyColors()
139 assertEquals(Color.blue(color), Color.blue(pixel), tolerance); in verifyColors()
DBlurMaskFilterTest.java82 assertEquals(Color.blue(expected), Color.blue(actual)); in verifyColor()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dintrinsic_lut.rs21 short blue[256];
28 tmp.b = blue[in.b];
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
Dlayered_filter_fast_f32.rs107 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 …]
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;
DImageCompare.java33 final int B = Color.blue(pixel); in luma()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DColorUtils.java35 assertEquals(s, Color.blue(expected), Color.blue(observed), tolerance); in verifyColor()
/cts/tests/camera/src/android/hardware/camera2/cts/rs/
DBitmapUtils.java87 diff += Math.abs(Color.blue(aPix) - Color.blue(bPix)); // blue in calcDifferenceMetric()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DShadowTests.java106 && Color.red(color) > Color.blue(color); in testRedSpotShadow()
122 && Color.red(color) > Color.blue(color); in testRedAmbientShadow()
138 && Color.blue(color) > Color.red(color); in testRedAmbientBlueSpotShadow()
DBitmapTests.java166 int[] blue = new int[offset + height * stride]; in testChangeDuringUiAnimation() local
167 Arrays.fill(blue, Color.BLUE); in testChangeDuringUiAnimation()
169 boolean isBlue = comparer.verifySame(blue, bitmap, offset, stride, width, height); in testChangeDuringUiAnimation()
/cts/tests/tests/view/src/android/view/cts/util/
DDrawingUtils.java85 + Color.blue(expectedPixelColor) in assertAllPixelsOfColor()
90 + Color.blue(actualPixelColor) + "]"; in assertAllPixelsOfColor()
/cts/tests/tests/animation/src/android/animation/cts/
DEvaluatorTest.java102 int bSTART = Color.blue(START); in testArgbEvaluator()
106 int bEND = Color.blue(END); in testArgbEvaluator()
114 int bResult = Color.blue(result); in testArgbEvaluator()
124 bResult = Color.blue(result); in testArgbEvaluator()
142 bResult = Color.blue(result); in testArgbEvaluator()
DObjectAnimatorTest.java185 assertTrue(Color.blue(color) >= Color.blue(startColor)); in testOfObject()
186 assertTrue(Color.blue(color) <= Color.blue(endColor)); in testOfObject()
236 int startBlue = Color.blue(start); in testOfArgb()
238 int endBlue = Color.blue(end); in testOfArgb()
245 int blue = Color.blue(animatedValue); in testOfArgb()
248 assertTrue(blue >= startBlue); in testOfArgb()
249 assertTrue(blue <= endBlue); in testOfArgb()
DAnimationActivity.java253 int blue = (int)(Math.random() * 255); in addBall() local
254 int color = 0xff000000 | red << 16 | green << 8 | blue; in addBall()
255 int darkColor = 0xff000000 | red/4 << 16 | green/4 << 8 | blue/4; in addBall()
/cts/tests/tests/systemui/src/android/systemui/cts/
DLightBarTests.java274 int bgBlue = Color.blue(background); in mixSrcOver()
279 int fgBlue = Color.blue(foreground); in mixSrcOver()
295 && Math.abs(Color.blue(c1) - Color.blue(c2)) < COLOR_COMPONENT_ERROR_MARGIN; in isColorSame()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/util/
DLightNavigationBarVerifier.java157 (dark, light) -> Color.blue(dark) - Color.blue(light)), in verify()
/cts/tests/app/src/android/app/cts/
DNotificationManagerTest.java459 sendNotification(id, R.drawable.blue); in testNotify()
578 sendNotification(2, R.drawable.blue); in testCancelAll()
731 sendNotification(2, R.drawable.blue); in testAutogrouping()
741 sendNotification(2, R.drawable.blue); in testAutogrouping_autogroupStaysUntilAllNotificationsCanceled()
762 sendNotification(2, R.drawable.blue); in testAutogrouping_autogroupStaysUntilAllNotificationsAddedToGroup()
777 sendNotification(i, newGroup, R.drawable.blue); in testAutogrouping_autogroupStaysUntilAllNotificationsAddedToGroup()
782 sendNotification(1, newGroup, R.drawable.blue); in testAutogrouping_autogroupStaysUntilAllNotificationsAddedToGroup()
792 sendNotification(20, R.drawable.blue); in testNewNotificationsAddedToAutogroup_ifOriginalNotificationsCanceled()
813 sendNotification(id, newGroup, R.drawable.blue); in testNewNotificationsAddedToAutogroup_ifOriginalNotificationsCanceled()
820 sendNotification(50, R.drawable.blue); in testNewNotificationsAddedToAutogroup_ifOriginalNotificationsCanceled()
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/
DSamplePointWideGamutVerifier.java57 if (!floatCompare(c.blue(), b, mEps)) localSuccess = false; in verify()
/cts/tests/tests/widget/src/android/widget/cts/util/
DTestUtils.java293 int sourceBlue = Color.blue(actualColor); in areColorsTheSameWithTolerance()
298 int expectedBlue = Color.blue(expectedColor); in areColorsTheSameWithTolerance()
325 int b = compositeComponent(Color.blue(foreground), fgAlpha, in compositeColors()
326 Color.blue(background), bgAlpha, a); in compositeColors()

123