/cts/tests/tests/os/src/android/os/cts/ |
D | ParcelFileDescriptorProcessTest.java | 47 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 …]
|
D | ParcelFileDescriptorTest.java | 254 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/ |
D | PipeShort.java | 98 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/ |
D | LinearGradientTest.java | 50 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()
|
D | SweepGradientTest.java | 112 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()
|
D | BlurMaskFilterTest.java | 77 assertEquals(Color.red(expected), Color.red(actual)); in checkColor()
|
D | ColorMatrixColorFilterTest.java | 99 assertEquals(Color.red(expected), Color.red(actual), tolerance); in assertColor()
|
D | ColorTest.java | 108 assertEquals(0xff, Color.red(Color.RED)); in testRed() 109 assertEquals(0xff, Color.red(Color.YELLOW)); in testRed()
|
D | LightingColorFilterTest.java | 85 assertEquals(Color.red(expected), Color.red(actual), TOLERANCE); in assertColor()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/util/ |
D | CompareUtils.java | 10 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/uirendering/src/android/uirendering/cts/bitmapcomparers/ |
D | PSNRComparer.java | 63 MSE += (Color.red(ideal[index]) - Color.red(given[index])) * in verifySame() 64 (Color.red(ideal[index]) - Color.red(given[index])); in verifySame()
|
D | MeanSquaredComparer.java | 97 float red = Color.red(color) / 255.0f; in getColorSum() local 100 return (red + green + blue); in getColorSum()
|
D | NearPixelComparer.java | 61 int error = Math.abs(Color.red(ideal) - Color.red(given)); in pixelsAreSame()
|
D | WeightedPixelDifference.java | 59 error += Math.abs(Color.red(color1) - Color.red(color2)); in errorBetweenPixels()
|
D | ThresholdDifferenceComparer.java | 52 int error = Math.abs(Color.red(ideal[index]) - Color.red(given[index])); in verifySame()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/ |
D | layered_filter_fast_f32.rs | 105 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 …]
|
D | pixel_format_f32.rsh | 7 // 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;
|
D | layered_filter_f32_helper.rsh | 95 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;
|
D | ImageCompare.java | 31 final int R = Color.red(pixel); in luma()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | intrinsic_lut.rs | 19 short red[256]; 26 tmp.r = red[in.r];
|
/cts/tests/tests/animation/src/android/animation/cts/ |
D | EvaluatorTest.java | 75 int rRED = Color.red(RED); in testArgbEvaluator() 79 int rBLUE = Color.red(BLUE); in testArgbEvaluator() 87 int rResult = Color.red(result); in testArgbEvaluator() 97 rResult = Color.red(result); in testArgbEvaluator() 107 rResult = Color.red(result); in testArgbEvaluator()
|
/cts/tests/camera/src/android/hardware/camera2/cts/rs/ |
D | BitmapUtils.java | 85 diff += Math.abs(Color.red(aPix) - Color.red(bPix)); // red in calcDifferenceMetric()
|
/cts/tests/tests/view/src/android/view/cts/util/ |
D | DrawingUtils.java | 82 + Color.red(expectedPixelColor) + "," in assertAllPixelsOfColor() 87 + Color.red(actualPixelColor) + "," in assertAllPixelsOfColor()
|
/cts/tests/tests/transition/src/android/transition/cts/ |
D | ChangeBoundsTest.java | 176 View red = mActivity.findViewById(R.id.redSquare); in isRestartingAnimation() local 181 return red.getTop() < closestDistance || green.getTop() < closestDistance; in isRestartingAnimation() 191 View red = mActivity.findViewById(R.id.redSquare); in isRestartingClip() local 192 Rect redClip = red.getClipBounds(); in isRestartingClip()
|
/cts/tools/dasm/src/java_cup/ |
D | emit.java | 488 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()
|