/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() 128 red.setupReadPipe(); in testPullPipeNormal() 132 assertEquals(1, red.read()); in testPullPipeNormal() 135 assertEquals(-1, red.read()); in testPullPipeNormal() 136 assertEquals(null, red.checkError()); in testPullPipeNormal() 141 red.setupWritePipe(); in testPushPipeNormal() 142 red.doSet(); in testPushPipeNormal() [all …]
|
D | ParcelFileDescriptorTest.java | 248 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() 264 final ParcelFileDescriptor red = pipe[0]; in testPipeError_Discouraged() local 271 assertEquals(2, read(red)); in testPipeError_Discouraged() 272 assertEquals(-1, read(red)); in testPipeError_Discouraged() 274 red.checkError(); in testPipeError_Discouraged() 284 final ParcelFileDescriptor red = pipe[0]; in testPipeError() local 290 try (AutoCloseInputStream is = new AutoCloseInputStream(red)) { in testPipeError() [all …]
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | BlendModeTest.java | 181 int red = (Color.red(DST_COLOR) * Color.red(Color.BLUE)) / 255; in testBlendMode_MODULATE() local 184 int resultColor = Color.argb(alpha, red, green, blue); in testBlendMode_MODULATE() 198 int redDst = Color.red(DST_COLOR); in testBlendMode_OVERLAY() 199 int redSrc = Color.red(SRC_COLOR); in testBlendMode_OVERLAY() 208 int red = computeOverlay(alphaSrc, alphaDst, redSrc, redDst); in testBlendMode_OVERLAY() local 211 int result = Color.argb(alpha, red, green, blue); in testBlendMode_OVERLAY() 229 int redDst = Color.red(DST_COLOR); in testBlendMode_DARKEN() 230 int redSrc = Color.red(SRC_COLOR); in testBlendMode_DARKEN() 239 int red = computeDarken(alphaDst, alphaSrc, redDst, redSrc); in testBlendMode_DARKEN() local 242 int result = Color.argb(alphaOut, red, green, blue); in testBlendMode_DARKEN() [all …]
|
D | ShadowTests.java | 106 return Color.red(color) > Color.green(color) in testRedSpotShadow() 107 && Color.red(color) > Color.blue(color); in testRedSpotShadow() 122 return Color.red(color) > Color.green(color) in testRedAmbientShadow() 123 && Color.red(color) > Color.blue(color); in testRedAmbientShadow() 138 return Color.red(color) > Color.green(color) in testRedAmbientBlueSpotShadow() 139 && Color.blue(color) > Color.red(color); in testRedAmbientBlueSpotShadow()
|
D | HardwareRendererTests.kt | 99 val red = channels[channelIndex++].toInt() and 0xFF in <lambda>() constant 103 pixels[pixelIndex++] = Color.argb(alpha, red, green, blue) in <lambda>() 181 val red = buffer.get() in testBasicDrawCpuConsumer() constant 185 assertEquals(0, red, "red") in testBasicDrawCpuConsumer() 463 val red = buffer.get().toInt() and 0xFF in testLotsOfBuffers() constant 470 assertEquals(Color.red(expectedColor), red, "red") in testLotsOfBuffers()
|
/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 | 65 assertTrue(Color.red(b.getPixel(10, 15)) < Color.red(b.getPixel(10, 20))); in testLinearGradient() 66 assertTrue(Color.red(b.getPixel(10, 20)) < Color.red(b.getPixel(10, 25))); in testLinearGradient() 74 assertTrue(Color.red(b.getPixel(10, 0)) > Color.red(b.getPixel(10, 15))); in testLinearGradient() 75 assertTrue(Color.red(b.getPixel(10, 15)) > Color.red(b.getPixel(10, 30))); in testLinearGradient() 83 long red = Color.pack(1, 0, 0, 1, p3); 86 long[] colors = new long[] { blue, green, red }; 103 convert.apply(red), b.getColor(0, 39), 0.08f); 115 assertTrue(b.getColor(10, 20).red() < b.getColor(10, 30).red()); 116 assertTrue(b.getColor(10, 30).red() < b.getColor(10, 35).red()); 118 lg = new LinearGradient(0, 0, 0, 40, red, blue, TileMode.CLAMP); [all …]
|
D | Color_ColorLongTest.java | 25 import static android.graphics.Color.red; 53 assertEquals(0.5f, red(pack(0.5f, 0.0f, 1.0f)), 0.01f); in testRed() 54 assertEquals(0.5f, red(pack(0.5f, 0.0f, 1.0f, 1.0f, p3)), 0.01f); in testRed() 135 assertEquals(1.0f, color1.red(), 0.01f); in testValueOf() 142 assertEquals(0.5f, color2.red(), 0.01f); in testValueOf() 149 assertEquals(0.5f, color3.red(), 0.01f); in testValueOf() 156 assertEquals(0.5f, color4.red(), 0.01f); in testValueOf() 164 assertEquals(0.5f, color5.red(), 0.01f); in testValueOf() 172 assertEquals(0.5f, color6.red(), 0.01f); in testValueOf() 179 assertEquals(0.5f, color7.red(), 0.01f); in testValueOf() [all …]
|
D | SweepGradientTest.java | 129 int red = (int) ((1d - delta) * Color.red(colors[i1]) + in verifyColors() local 130 delta * Color.red(colors[i2])); in verifyColors() 135 color = Color.argb(alpha, red, green, blue); in verifyColors() 142 assertEquals(Color.red(color), Color.red(pixel), tolerance); in verifyColors() 258 long red = Color.pack(1, 0, 0, 1, p3); in testColorLong() local 260 SweepGradient gradient = new SweepGradient(50, 50, red, blue); in testColorLong() 294 convert.apply(red), c, .08f); in testColorLong() 300 + toString(lastAngle), c.red() < lastColor.red()); in testColorLong()
|
D | RadialGradientTest.java | 71 long red = Color.pack(1, 0, 0, 1, p3); in testColorLong() local 73 RadialGradient gradient = new RadialGradient(50, 50, 25, red, blue, TileMode.CLAMP); in testColorLong() 89 ColorUtils.verifyColor("Center color should be red!", convert.apply(red), in testColorLong() 120 + " (" + lastColor + ")", currentColor.red() < lastColor.red()); in testColorLong()
|
/cts/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/ |
D | MediaStorageTest.java | 190 final Uri red = create.call(); in doMediaNone() local 205 assertTrue(seen.contains(ContentUris.parseId(red))); in doMediaNone() 208 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(red, "rw")) { in doMediaNone() 228 final Uri red = create.call(); in doMediaRead() local 242 assertTrue(seen.contains(ContentUris.parseId(red))); in doMediaRead() 245 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(red, "rw")) { in doMediaRead() 263 final Uri red = create.call(); in doMediaWrite() local 277 assertTrue(seen.contains(ContentUris.parseId(red))); in doMediaWrite() 280 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(red, "rw")) { in doMediaWrite() 303 final Uri red = create.call(); in doMediaEscalation_Open() local [all …]
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | ColorUtils.java | 50 String red = verifyChannel("red", expected, observed, tolerance, (i) -> Color.red(i)); in verifyColor() local 55 buildErrorString(s, red, green, blue, alpha); in verifyColor() 58 private static void buildErrorString(@NonNull String s, @Nullable String red, in buildErrorString() argument 61 for (String channel : new String[]{red, green, blue, alpha}) { in buildErrorString() 98 String red = verifyChannel("red", expected, observed, tolerance, (c) -> c.red()); in verifyColor() local 103 buildErrorString(msg, red, green, blue, alpha); in verifyColor()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | ColorUtils.java | 50 String red = verifyChannel("red", expected, observed, tolerance, (i) -> Color.red(i)); in verifyColor() local 55 buildErrorString(s, red, green, blue, alpha); in verifyColor() 58 private static void buildErrorString(@NonNull String s, @Nullable String red, in buildErrorString() argument 61 for (String channel : new String[]{red, green, blue, alpha}) { in buildErrorString() 98 String red = verifyChannel("red", expected, observed, tolerance, (c) -> c.red()); in verifyColor() local 103 buildErrorString(msg, red, green, blue, alpha); in verifyColor()
|
/cts/tests/tests/uirendering27/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/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/renderscript/src/android/renderscript/cts/refocus/ |
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 | layered_filter_fast_f32.rscript | 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 …]
|
/cts/tests/tests/view/surfacevalidator/src/android/view/cts/surfacevalidator/ |
D | PixelColor.java | 45 short red = (short) (color & 0xFF); in PixelColor() local 49 mMinRed = (short) getMinValue(red); in PixelColor() 50 mMaxRed = (short) getMaxValue(red); in PixelColor()
|
D | PixelChecker.java | 66 final int red = scanline[i + 0] & 0xFF; in validatePlane() local 73 && red <= maxRed in validatePlane() 74 && red >= minRed in validatePlane()
|
D | RectChecker.java | 88 final int red = scanline[i + 0] & 0xFF; in validatePlaneForTarget() local 95 && red <= maxRed in validatePlaneForTarget() 96 && red >= minRed in validatePlaneForTarget()
|
/cts/tests/tests/transition/src/android/transition/cts/ |
D | ChangeBoundsTest.java | 229 redAndGreen.red.position.width() > middleSize in waitForSizeIsMiddle() 230 && redAndGreen.red.position.height() > middleSize in waitForSizeIsMiddle() 242 redAndGreen.red.clip != null in waitForClipIsMiddle() 244 && redAndGreen.red.clip.width() > middleSize in waitForClipIsMiddle() 245 && redAndGreen.red.clip.height() > middleSize in waitForClipIsMiddle() 260 return start.red.position.top == 0 in isRestartingAnimation() 266 && Math.abs(largeSize - start.red.position.top) < errorPx; in isRestartingAnimation() 282 return start.red.clip.width() < smallSize + errorPx in isRestartingClip() 287 return start.red.clip.width() > largeSize - errorPx in isRestartingClip() 457 public final PositionAndClip red; field in ChangeBoundsTest.RedAndGreen [all …]
|
/cts/tests/tests/systemui/src/android/systemui/cts/ |
D | LightBarTests.java | 223 Color.RGBToHSV(Color.red(mixedIconColor), Color.green(mixedIconColor), in evaluateLightBarBitmap() 225 Color.RGBToHSV(Color.red(mixedIconPartialColor), Color.green(mixedIconPartialColor), in evaluateLightBarBitmap() 254 Color.RGBToHSV(Color.red(c), Color.green(c), Color.blue(c), hsvPixel); in evaluateLightBarBitmap() 282 int bgRed = Color.red(background); in mixSrcOver() 287 int fgRed = Color.red(foreground); in mixSrcOver() 303 && Math.abs(Color.red(c1) - Color.red(c2)) < COLOR_COMPONENT_ERROR_MARGIN in isColorSame()
|
/cts/tests/camera/src/android/hardware/camera2/cts/rs/ |
D | BitmapUtils.java | 94 aFirstPix[0] = Color.red(aPixels[0]); in compareBitmap() 97 bFirstPix[0] = Color.red(bPixels[0]); in compareBitmap() 105 int aR = Color.red(aPix); in compareBitmap() 108 int bR = Color.red(bPix); in compareBitmap()
|
/cts/tests/tests/animation/src/android/animation/cts/ |
D | EvaluatorTest.java | 101 int rSTART = Color.red(START); in testArgbEvaluator() 105 int rEND = Color.red(END); in testArgbEvaluator() 113 int rResult = Color.red(result); in testArgbEvaluator() 123 rResult = Color.red(result); in testArgbEvaluator() 141 rResult = Color.red(result); in testArgbEvaluator()
|