Home
last modified time | relevance | path

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

12

/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.java248 final ParcelFileDescriptor red = pipe[0]; in testPipeNormal() local
252 assertEquals(1, read(red)); in testPipeNormal()
255 assertEquals(-1, read(red)); in testPipeNormal()
256 red.checkError(); in testPipeNormal()
261 final ParcelFileDescriptor red = pipe[0]; in testPipeError() local
268 assertEquals(2, read(red)); in testPipeError()
269 assertEquals(-1, read(red)); in testPipeError()
271 red.checkError(); in testPipeError()
321 final ParcelFileDescriptor red = pair[0]; in testSocketErrorAfterClose() local
326 red.closeWithError("RED RAWR"); in testSocketErrorAfterClose()
[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/
DLinearGradientTest.java50 assertTrue(Color.red(b.getPixel(10, 15)) < Color.red(b.getPixel(10, 20))); in testLinearGradient()
51 assertTrue(Color.red(b.getPixel(10, 20)) < Color.red(b.getPixel(10, 25))); in testLinearGradient()
59 assertTrue(Color.red(b.getPixel(10, 0)) > Color.red(b.getPixel(10, 15))); in testLinearGradient()
60 assertTrue(Color.red(b.getPixel(10, 15)) > Color.red(b.getPixel(10, 30))); in testLinearGradient()
DSweepGradientTest.java112 int red = (int) ((1d - delta) * Color.red(colors[i1]) + in checkColors() local
113 delta * Color.red(colors[i2])); in checkColors()
118 color = Color.argb(alpha, red, green, blue); in checkColors()
125 assertEquals(Color.red(color), Color.red(pixel), tolerance); in checkColors()
DPixelXorXfermodeTest.java60 int red = Color.red(color); in alphaColor() local
63 return Color.argb(alpha, red, green, blue); in alphaColor()
DColorTest.java108 assertEquals(0xff, Color.red(Color.RED)); in testRed()
109 assertEquals(0xff, Color.red(Color.YELLOW)); in testRed()
DColorMatrixColorFilterTest.java99 assertEquals(Color.red(expected), Color.red(actual), tolerance); in assertColor()
DBlurMaskFilterTest.java77 assertEquals(Color.red(expected), Color.red(actual)); in checkColor()
DLightingColorFilterTest.java85 assertEquals(Color.red(expected), Color.red(actual), TOLERANCE); in assertColor()
DDiscretePathEffectTest.java86 if (Color.red(pixel) > 0) { in testDiscretePathEffect()
DEmbossMaskFilterTest.java87 color += Color.red(pixel) + Color.green(pixel) + Color.blue(pixel); in brightness()
DPorterDuffColorFilterTest.java51 assertEquals(0x80, Color.red(lowerLeft), TOLERANCE); in testPorterDuffColorFilter()
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapcomparers/
DPSNRComparer.java63 MSE += (Color.red(ideal[index]) - Color.red(given[index])) * in verifySame()
64 (Color.red(ideal[index]) - Color.red(given[index])); in verifySame()
DMeanSquaredComparer.java97 float red = Color.red(color) / 255.0f; in getColorSum() local
100 return (red + green + blue); in getColorSum()
DNearPixelComparer.java61 int error = Math.abs(Color.red(ideal) - Color.red(given)); in pixelsAreSame()
DWeightedPixelDifference.java59 error += Math.abs(Color.red(color1) - Color.red(color2)); in errorBetweenPixels()
DThresholdDifferenceComparer.java52 int error = Math.abs(Color.red(ideal[index]) - Color.red(given[index])); in verifySame()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dintrinsic_lut.rs19 short red[256];
26 tmp.r = red[in.r];
/cts/suite/cts/deviceTests/browserbench/assets/octane/
Draytrace.js80 red : 0.0, property in Flog.RayTracer.Color
89 this.red = r;
97 result.red = c1.red + c2.red;
107 result.red = c1.red + s;
119 result.red = c1.red - c2.red;
129 result.red = c1.red * c2.red;
139 result.red = c1.red * f;
149 result.red = c1.red / f;
157 this.red = (this.red > 0.0) ? ( (this.red > 1.0) ? 1.0 : this.red ) : 0.0;
163 …var d = Math.abs(this.red - color.red) + Math.abs(this.green - color.green) + Math.abs(this.blue -…
[all …]
/cts/tests/tests/uirendering/src/android/uirendering/cts/util/
DCompareUtils.java10 int diff = Math.abs(Color.red(color) - Color.red(expectedColor)) in verifyPixelWithThreshold()
/cts/tests/tests/animation/src/android/animation/cts/
DArgbEvaluatorTest.java28 int rRED = Color.red(RED); in testEvaluate()
32 int rBLUE = Color.red(BLUE); in testEvaluate()
49 int rResult = Color.red(result); in testEvaluate()
DAnimationActivity.java252 int red = (int)(Math.random() * 255); in addBall() local
255 int color = 0xff000000 | red << 16 | green << 8 | blue; in addBall()
256 int darkColor = 0xff000000 | red/4 << 16 | green/4 << 8 | blue/4; in addBall()
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/rs/
DBitmapUtils.java85 diff += Math.abs(Color.red(aPix) - Color.red(bPix)); // red in calcDifferenceMetric()
/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()

12