Home
last modified time | relevance | path

Searched refs:red (Results 1 – 25 of 56) sorted by relevance

123

/cts/tests/tests/os/src/android/os/cts/
DParcelFileDescriptorProcessTest.java47 private IParcelFileDescriptorPeer red; field in ParcelFileDescriptorProcessTest
102 red = redConn.get(); in setUp()
104 red.setPeer(blue); in setUp()
105 blue.setPeer(red); in setUp()
125 red.setupReadPipe(); in testPullPipeNormal()
129 assertEquals(1, red.read()); in testPullPipeNormal()
132 assertEquals(-1, red.read()); in testPullPipeNormal()
133 assertEquals(null, red.checkError()); in testPullPipeNormal()
138 red.setupWritePipe(); in testPushPipeNormal()
139 red.doSet(); in testPushPipeNormal()
[all …]
DParcelFileDescriptorTest.java254 final ParcelFileDescriptor red = pipe[0]; in testPipeNormal() local
258 assertEquals(1, read(red)); in testPipeNormal()
261 assertEquals(-1, read(red)); in testPipeNormal()
262 red.checkError(); in testPipeNormal()
269 final ParcelFileDescriptor red = pipe[0]; in testPipeError_Discouraged() local
276 assertEquals(2, read(red)); in testPipeError_Discouraged()
277 assertEquals(-1, read(red)); in testPipeError_Discouraged()
279 red.checkError(); in testPipeError_Discouraged()
288 final ParcelFileDescriptor red = pipe[0]; in testPipeError() local
294 try (AutoCloseInputStream is = new AutoCloseInputStream(red)) { in testPipeError()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/wavelib/
DPipeShort.java98 int red = mMaxValues - front; in read() local
99 if (red > count) { in read()
100 red = count; in read()
103 System.arraycopy(mBuffer, front, buffer, offset, red); in read()
105 if (front + red == mMaxValues) { in read()
106 if ((count -= red) > front) { in read()
110 System.arraycopy(mBuffer, 0, buffer, offset + red, count); in read()
111 red += count; in read()
114 mFront += red; in read()
115 return red; in read()
/cts/tests/tests/graphics/src/android/graphics/cts/
DColor_ColorLongTest.java33 import static android.graphics.Color.red;
50 assertEquals(0.5f, red(pack(0.5f, 0.0f, 1.0f)), 0.01f); in testRed()
51 assertEquals(0.5f, red(pack(0.5f, 0.0f, 1.0f, 1.0f, p3)), 0.01f); in testRed()
127 assertEquals(1.0f, color1.red(), 0.01f); in testValueOf()
134 assertEquals(0.5f, color2.red(), 0.01f); in testValueOf()
141 assertEquals(0.5f, color3.red(), 0.01f); in testValueOf()
148 assertEquals(0.5f, color4.red(), 0.01f); in testValueOf()
156 assertEquals(0.5f, color5.red(), 0.01f); in testValueOf()
164 assertEquals(0.5f, color6.red(), 0.01f); in testValueOf()
171 assertEquals(0.5f, color7.red(), 0.01f); in testValueOf()
[all …]
DLinearGradientTest.java61 assertTrue(Color.red(b.getPixel(10, 15)) < Color.red(b.getPixel(10, 20))); in testLinearGradient()
62 assertTrue(Color.red(b.getPixel(10, 20)) < Color.red(b.getPixel(10, 25))); in testLinearGradient()
70 assertTrue(Color.red(b.getPixel(10, 0)) > Color.red(b.getPixel(10, 15))); in testLinearGradient()
71 assertTrue(Color.red(b.getPixel(10, 15)) > Color.red(b.getPixel(10, 30))); in testLinearGradient()
DSweepGradientTest.java124 int red = (int) ((1d - delta) * Color.red(colors[i1]) + in verifyColors() local
125 delta * Color.red(colors[i2])); in verifyColors()
130 color = Color.argb(alpha, red, green, blue); in verifyColors()
137 assertEquals(Color.red(color), Color.red(pixel), tolerance); in verifyColors()
DBlurMaskFilterTest.java79 assertEquals(Color.red(expected), Color.red(actual)); in verifyColor()
DColorTest.java109 assertEquals(0xff, Color.red(Color.RED)); in testRed()
110 assertEquals(0xff, Color.red(Color.YELLOW)); in testRed()
/cts/tests/tests/uirendering/src/android/uirendering/cts/util/
DCompareUtils.java10 int diff = Math.abs(Color.red(color) - Color.red(expectedColor)) in verifyPixelWithThreshold()
22 int average = Color.red(color) + Color.green(color) + Color.blue(color); in verifyPixelGrayScale()
24 return Math.abs(Color.red(color) - average) <= threshold in verifyPixelGrayScale()
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
Dlayered_filter_fast_f32.rs105 sharp->red = in.r * g_kOneOver255;
109 sharp->red =
110 ApplyLUT_Float(sharp->red, g_camera_response.lut_remove_crf_float);
270 float4 this_value = {weight * sharp->red, weight * sharp->green,
291 float4 this_value = {weight * sharp->red, weight * sharp->green,
386 fuzzy->red += factor * result.red;
432 sharp->red += factor * (fuzzy->red - sharp->red);
436 fuzzy->red = 0;
462 fuzzy->red += sharp->red * capacity;
482 result.r = ApplyLUT_Float(fuzzy->red, 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.
27 float red;
51 float red;
Dlayered_filter_f32_helper.rsh95 result.red += weight * sharp_nbr->red;
107 result.red *= factor;
143 fuzzy.red = result.r * factor;
179 result.red += weight * sharp_nbr->red;
191 result.red *= fac;
201 p->red = 0;
221 p->red = 0;
DImageCompare.java31 final int R = Color.red(pixel); in luma()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dintrinsic_lut.rs19 short red[256];
26 tmp.r = red[in.r];
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DColorUtils.java33 assertEquals(s, Color.red(expected), Color.red(observed), tolerance); in verifyColor()
/cts/tests/camera/src/android/hardware/camera2/cts/rs/
DBitmapUtils.java85 diff += Math.abs(Color.red(aPix) - Color.red(bPix)); // red in calcDifferenceMetric()
/cts/tests/tests/animation/src/android/animation/cts/
DEvaluatorTest.java100 int rSTART = Color.red(START); in testArgbEvaluator()
104 int rEND = Color.red(END); in testArgbEvaluator()
112 int rResult = Color.red(result); in testArgbEvaluator()
122 rResult = Color.red(result); in testArgbEvaluator()
140 rResult = Color.red(result); in testArgbEvaluator()
DObjectAnimatorTest.java182 assertTrue(Color.red(color) <= Color.red(startColor)); in testOfObject()
183 assertTrue(Color.red(color) >= Color.red(endColor)); in testOfObject()
235 int startRed = Color.red(start); in testOfArgb()
237 int endRed = Color.red(end); in testOfArgb()
243 int red = Color.red(animatedValue); in testOfArgb()
246 assertTrue(red <= startRed); in testOfArgb()
247 assertTrue(red >= endRed); in testOfArgb()
DAnimationActivity.java251 int red = (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/view/src/android/view/cts/util/
DDrawingUtils.java83 + Color.red(expectedPixelColor) + "," in assertAllPixelsOfColor()
88 + Color.red(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.java157 int[] red = new int[offset + height * stride]; in testChangeDuringUiAnimation() local
158 Arrays.fill(red, Color.RED); in testChangeDuringUiAnimation()
161 boolean isRed = comparer.verifySame(red, bitmap, offset, stride, width, height); in testChangeDuringUiAnimation()
/cts/tests/tests/transition/src/android/transition/cts/
DChangeBoundsTest.java203 View red = mActivity.findViewById(R.id.redSquare); in isRestartingAnimation() local
208 return red.getTop() < closestDistance || green.getTop() < closestDistance; in isRestartingAnimation()
218 View red = mActivity.findViewById(R.id.redSquare); in isRestartingClip() local
219 Rect redClip = red.getClipBounds(); in isRestartingClip()
/cts/tools/dasm/src/java_cup/
Demit.java488 int red; in do_action_table() local
532 red = ((reduce_action)act).reduce_with().index(); in do_action_table()
533 if (red != row.default_reduce) in do_action_table()
534 out.print(j + "," + (-(red+1)) + ","); in do_action_table()
/cts/tests/tests/widget/src/android/widget/cts/util/
DTestUtils.java291 int sourceRed = Color.red(actualColor); in areColorsTheSameWithTolerance()
296 int expectedRed = Color.red(expectedColor); in areColorsTheSameWithTolerance()
321 int r = compositeComponent(Color.red(foreground), fgAlpha, in compositeColors()
322 Color.red(background), bgAlpha, a); in compositeColors()

123