Home
last modified time | relevance | path

Searched refs:blue (Results 1 – 25 of 54) 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.java255 final ParcelFileDescriptor blue = pipe[1]; in testPipeNormal() local
257 write(blue, 1); in testPipeNormal()
260 blue.close(); in testPipeNormal()
270 final ParcelFileDescriptor blue = pipe[1]; in testPipeError_Discouraged() local
272 write(blue, 2); in testPipeError_Discouraged()
273 blue.closeWithError("OMG MUFFINS"); in testPipeError_Discouraged()
289 final ParcelFileDescriptor blue = pipe[1]; in testPipeError() local
291 write(blue, 2); in testPipeError()
292 blue.closeWithError("OMG MUFFINS"); in testPipeError()
347 final ParcelFileDescriptor blue = pair[1]; in testSocketErrorAfterClose() local
[all …]
/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.java81 assertEquals(Color.blue(expected), Color.blue(actual)); in verifyColor()
DColorTest.java46 assertEquals(0x00, Color.blue(Color.RED)); in testBlue()
47 assertEquals(0x00, Color.blue(Color.YELLOW)); in testBlue()
/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/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/tests/tests/renderscript/src/android/renderscript/cts/
Dintrinsic_lut.rs21 short blue[256];
28 tmp.b = blue[in.b];
/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/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()
DValueAnimatorTest.java568 int startBlue = Color.blue(start); in testOfArgb()
570 int endBlue = Color.blue(end); in testOfArgb()
591 int blue = Color.blue(animatedValue); in testOfArgb() local
594 assertTrue(blue > startBlue); in testOfArgb()
595 assertTrue(blue < endBlue); in testOfArgb()
/cts/tests/tests/view/src/android/view/cts/util/
DDrawingUtils.java85 + Color.blue(expectedPixelColor) in assertAllPixelsOfColor()
90 + Color.blue(actualPixelColor) + "]"; in assertAllPixelsOfColor()
/cts/hostsidetests/theme/src/android/theme/cts/
DColorUtils.java62 public static int argb(int alpha, int red, int green, int blue) { in argb() argument
63 return (alpha << 24) | (red << 16) | (green << 8) | blue; in argb()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DBitmapTests.java159 int[] blue = new int[offset + height * stride]; in testChangeDuringUiAnimation() local
160 Arrays.fill(blue, Color.BLUE); in testChangeDuringUiAnimation()
162 boolean isBlue = comparer.verifySame(blue, bitmap, offset, stride, width, height); in testChangeDuringUiAnimation()
/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()
/cts/tests/tests/systemui/src/android/systemui/cts/
DLightBarTests.java257 int bgBlue = Color.blue(background); in mixSrcOver()
262 int fgBlue = Color.blue(foreground); in mixSrcOver()
/cts/tests/tests/view/src/android/view/cts/
DPixelCopyGLProducerCtsActivity.java90 Color.blue(color) / 255.0f, in clearColor()

123