/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | BitmapShaderTest.java | 41 private static final int BORDER_COLOR = Color.BLUE; 104 bitmap.setPixel(1, 0, Color.BLUE); in testClamp() 118 Assert.assertArrayEquals(new int[] { Color.RED, Color.BLUE, Color.BLUE, Color.BLUE }, in testClamp() 126 bitmap.setPixel(1, 0, Color.BLUE); in testRepeat() 140 Assert.assertArrayEquals(new int[] { Color.RED, Color.BLUE, Color.RED, Color.BLUE }, in testRepeat() 148 bitmap.setPixel(1, 0, Color.BLUE); in testMirror() 162 Assert.assertArrayEquals(new int[] { Color.RED, Color.BLUE, Color.BLUE, Color.RED }, in testMirror()
|
D | RadialGradientTest.java | 49 Color.RED, Color.BLUE, TileMode.CLAMP); in testZeroScaleMatrix() 173 colors[0] = Color.pack(Color.BLUE); in testMismatchColorLongs() 180 long color0 = Color.pack(Color.BLUE); in testMismatchColorLongs2() 215 new RadialGradient(0.5f, 0.5f, 0, Color.RED, Color.BLUE, TileMode.CLAMP); in testZeroRadius() 220 new RadialGradient(0.5f, 0.5f, 0, new int[] {Color.RED, Color.BLUE}, null, TileMode.CLAMP); in testZeroRadiusArray() 225 new RadialGradient(0.5f, 0.5f, 0, Color.pack(Color.RED), Color.pack(Color.BLUE), in testZeroRadiusLong() 231 new RadialGradient(0.5f, 0.5f, 0, new long[]{Color.pack(Color.RED), Color.pack(Color.BLUE)}, in testZeroRadiusLongArray()
|
D | PorterDuffXfermodeTest.java | 47 b2.eraseColor(Color.BLUE); in testPorterDuffXfermode() 55 assertEquals(Color.BLUE, target.getPixel(WIDTH / 4, HEIGHT * 3 / 4)); in testPorterDuffXfermode() 56 assertEquals(Color.BLUE, target.getPixel(WIDTH * 3 / 4, HEIGHT * 3 / 4)); in testPorterDuffXfermode() 74 assertEquals(Color.BLUE, target.getPixel(WIDTH * 3 / 4, HEIGHT * 3 / 4)); in testPorterDuffXfermode()
|
D | SweepGradientTest.java | 78 final int[] colors = new int[] { Color.GREEN, Color.RED, Color.BLUE }; in testColorArray() 89 final int[] colors = new int[] { Color.GREEN, Color.RED, Color.BLUE, Color.GREEN }; in testMultiColor() 157 new int[] {Color.BLUE, Color.RED, Color.BLUE}, null); in testZeroScaleMatrix() 210 colors[0] = Color.pack(Color.BLUE); in testMismatchColorLongs() 217 long color0 = Color.pack(Color.BLUE); in testMismatchColorLongs2()
|
D | PorterDuffColorFilterTest.java | 46 b2.eraseColor(Color.BLUE); in testPorterDuffColorFilter() 72 assertEquals(Color.BLUE, target.getPixel(width / 4, height * 3 / 4)); in testPorterDuffColorFilter() 73 assertEquals(Color.BLUE, target.getPixel(width * 3 / 4, height * 3 / 4)); in testPorterDuffColorFilter()
|
D | CanvasTest.java | 42 mCanvas.drawColor(Color.convert(Color.BLUE, ColorSpace.get(ColorSpace.Named.CIE_XYZ))); in testDrawColorXYZ() 47 mCanvas.drawColor(Color.convert(Color.BLUE, ColorSpace.get(ColorSpace.Named.CIE_LAB))); in testDrawColorLAB()
|
D | LinearGradientTest.java | 49 int[] color = { Color.BLUE, Color.GREEN, Color.RED }; in testLinearGradient() 68 lg = new LinearGradient(0, 0, 0, 40, Color.RED, Color.BLUE, TileMode.CLAMP); in testLinearGradient() 150 Color.RED, Color.BLUE, TileMode.CLAMP); 195 colors[0] = Color.pack(Color.BLUE); 202 long color0 = Color.pack(Color.BLUE);
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | BitmapTests.java | 63 setColor(Color.BLUE); in BitmapView() 134 child.setColor(Color.BLUE); in testChangeDuringRtAnimation() 168 Arrays.fill(blue, Color.BLUE); in testChangeDuringUiAnimation() 181 root.setBackgroundColor(Color.BLUE); in testChangeDuringUiAnimation() 190 child.setColor(Color.BLUE); in testChangeDuringUiAnimation() 201 if (child.getColor() == Color.BLUE) { in testChangeDuringUiAnimation() 205 root.setBackgroundColor(Color.BLUE); in testChangeDuringUiAnimation() 206 child.setColor(Color.BLUE); in testChangeDuringUiAnimation() 232 p.setColor(Color.BLUE); in testCreateFromPicture() 243 }, true).runWithVerifier(new RectVerifier(Color.WHITE, Color.BLUE, rect)); in testCreateFromPicture()
|
D | PathClippingTests.java | 56 paint.setColor(Color.BLUE); 71 canvas.drawColor(Color.BLUE); 88 canvas.drawColor(Color.BLUE); 120 Color.BLUE, in testCircleWithPoints() 147 Color.BLUE, in testViewRotate() 148 Color.BLUE, in testViewRotate() 163 canvas.drawColor(Color.BLUE); in testPathScale() 215 paint.setColor(Color.BLUE); in testWebViewClipWithCircle()
|
D | ShaderTests.java | 52 shaderBitmap.eraseColor(Color.BLUE); in testSinglePixelBitmapShader() 59 .runWithVerifier(new ColorVerifier(Color.BLUE)); in testSinglePixelBitmapShader() 73 shaderBitmap.eraseColor(Color.BLUE); in testSinglePixelComposeShader() 81 new int[] { Color.RED, Color.GREEN, Color.BLUE }, null, in testSinglePixelComposeShader() 90 .runWithVerifier(new ColorVerifier(Color.BLUE)); in testSinglePixelComposeShader() 131 new int[] { Color.RED, Color.BLUE, Color.GREEN }, in testComplexShaderUsage()
|
D | BlendModeTest.java | 41 private static final int SRC_COLOR = Color.BLUE; 135 testBlendMode(BlendMode.DST_OVER, Color.RED, Color.RED, Color.BLUE); in testBlendMode_DST_OVER() 140 testBlendMode(BlendMode.SRC_IN, BG_COLOR, Color.BLUE, BG_COLOR); in testBlendMode_SRC_IN() 150 testBlendMode(BlendMode.SRC_OUT, BG_COLOR, BG_COLOR, Color.BLUE); in testBlendMode_SRC_OUT() 160 testBlendMode(BlendMode.SRC_ATOP, DST_COLOR, Color.BLUE, BG_COLOR); in testBlendMode_SRC_ATOP() 165 testBlendMode(BlendMode.DST_ATOP, BG_COLOR, DST_COLOR, Color.BLUE); in testBlendMode_DST_ATOP() 170 testBlendMode(BlendMode.XOR, DST_COLOR, BG_COLOR, Color.BLUE); in testBlendMode_XOR() 175 testBlendMode(BlendMode.PLUS, DST_COLOR, Color.MAGENTA, Color.BLUE); in testBlendMode_PLUS() 180 int alpha = (Color.alpha(DST_COLOR) * Color.alpha(Color.BLUE)) / 255; in testBlendMode_MODULATE() 181 int red = (Color.red(DST_COLOR) * Color.red(Color.BLUE)) / 255; in testBlendMode_MODULATE() [all …]
|
D | ExactCanvasTests.java | 58 p.setColor(Color.BLUE); in testBlueRect() 61 .runWithVerifier(new RectVerifier(Color.WHITE, Color.BLUE, rect)); in testBlueRect() 111 canvas.drawColor(Color.BLUE); in testDrawRedRectOnBlueBack() 198 canvas.drawColor(Color.BLUE, PorterDuff.Mode.MULTIPLY); in testBasicColorXfermode() 207 canvas.drawColor(Color.BLUE, BlendMode.MULTIPLY); in testBasicColorBlendMode() 217 BitmapVerifier verifier = new RectVerifier(Color.WHITE, Color.BLUE, in testBluePaddedSquare() 224 p.setColor(Color.BLUE); in testBluePaddedSquare()
|
D | LayerTests.java | 202 child.setBackgroundColor(Color.BLUE); in testLayerClear() 241 child.setBackgroundColor(Color.BLUE); in testAlphaLayerChild() 292 child.setBackgroundColor(Color.BLUE); in testLayerResizeZero() 383 canvas.drawColor(Color.BLUE); in testSaveLayerRestoreBehavior() 409 .runWithVerifier(new ColorVerifier(Color.BLUE)); in testWebViewWithLayer() 434 .runWithVerifier(new RectVerifier(Color.RED, Color.BLUE, in testWebViewWithOffsetLayer() 461 .runWithVerifier(new RectVerifier(Color.RED, Color.BLUE, in testWebViewWithParentLayer() 489 .runWithVerifier(new RectVerifier(Color.RED, Color.BLUE, in testWebViewScaledWithParentLayer() 571 Color.BLUE, in testWebViewWithUnclippedLayer() 614 Color.BLUE, in testWebViewWithUnclippedLayerAndComplexClip() [all …]
|
D | BlendModeColorFilterTest.java | 68 b2.eraseColor(Color.BLUE); in BlendModeColorFilterClient() 101 new int[]{Color.RED, Color.BLUE, Color.BLUE}); in testBlendModeColorFilter_DST()
|
D | CameraTests.java | 41 paint.setColor(Color.BLUE); in testBasicTranslate() 47 .runWithVerifier(new RectVerifier(Color.WHITE, Color.BLUE, in testBasicTranslate()
|
D | BitmapBlendModeTest.java | 53 Color.BLUE, Color.RED); in testClearBlendMode() 67 Color.BLUE, Color.RED); in testDstOutBlendMode()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | PixelCopyTest.java | 193 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testGlProducerFullsize() 213 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testGlProducerCropCenter() 223 Color.BLUE, Color.BLACK, Color.BLUE, Color.BLACK); in testGlProducerCropBottomHalf() 249 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testGlProducerScaling() 264 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testReuseBitmap() 272 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testReuseBitmap() 301 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testWindowProducer() 328 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testWindowProducerCropCenter() 341 Color.BLUE, Color.BLACK, Color.BLUE, Color.BLACK); in testWindowProducerCropBottomHalf() 360 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testWindowProducerScaling() [all …]
|
D | ASurfaceControlTest.java | 413 DEFAULT_LAYOUT_HEIGHT, PixelColor.BLUE); in testSurfaceTransaction_setBuffer_parentAndChild() 699 PixelColor.BLUE); in testSurfaceTransaction_setDestinationRect_twoLayers() 712 new PixelChecker(PixelColor.BLUE) { //600 in testSurfaceTransaction_setDestinationRect_twoLayers() 728 DEFAULT_LAYOUT_HEIGHT, PixelColor.RED, PixelColor.BLUE, in testSurfaceTransaction_setSourceRect() 741 new PixelChecker(PixelColor.BLUE) { //2500 in testSurfaceTransaction_setSourceRect() 771 DEFAULT_LAYOUT_HEIGHT, PixelColor.RED, PixelColor.BLUE, in testSurfaceTransaction_setSourceRect_smallCentered() 784 new PixelChecker(PixelColor.BLUE) { //2500 in testSurfaceTransaction_setSourceRect_smallCentered() 815 DEFAULT_LAYOUT_HEIGHT, PixelColor.RED, PixelColor.BLUE, in testSurfaceTransaction_setSourceRect_small() 836 DEFAULT_LAYOUT_HEIGHT, PixelColor.RED, PixelColor.BLUE, in testSurfaceTransaction_setSourceRect_extraLarge() 849 new PixelChecker(PixelColor.BLUE) { //2500 in testSurfaceTransaction_setSourceRect_extraLarge() [all …]
|
D | ViewOverlayTest.java | 146 final Drawable blueDrawable = new ColorDrawable(Color.BLUE); in testOverlayWithNonOverlappingDrawables() 156 colorRectangles.add(new Pair<>(new Rect(40, 60, 80, 90), Color.BLUE)); in testOverlayWithNonOverlappingDrawables() 164 colorRectangles.add(new Pair<>(new Rect(40, 60, 80, 90), Color.BLUE)); in testOverlayWithNonOverlappingDrawables() 261 redDrawable.setColor(Color.BLUE); in testOverlayDynamicChangesToOverlappingDrawables() 262 colorRectangles.add(new Pair<>(new Rect(10, 20, 30, 40), Color.BLUE)); in testOverlayDynamicChangesToOverlappingDrawables()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | AdaptiveIconDrawableTest.java | 88 new ColorDrawable(Color.RED), new ColorDrawable(Color.BLUE)); in testDrawNull() 96 new ColorDrawable(Color.RED), new ColorDrawable(Color.BLUE)); in testInvalidateDrawable() 104 new ColorDrawable(Color.RED), new ColorDrawable(Color.BLUE)); in testScheduleDrawable() 117 new ColorDrawable(Color.RED), new ColorDrawable(Color.BLUE)); in testUnscheduleDrawable() 129 new ColorDrawable(Color.RED), new ColorDrawable(Color.BLUE)); in testGetChangingConfigurations() 151 Drawable backgroundDrawable = new ColorDrawable(Color.BLUE); in testDrawWithoutSetBounds() 222 new ColorDrawable(Color.RED), new ColorDrawable(Color.BLUE)); in testSetVisible() 231 new ColorDrawable(Color.RED), new ColorDrawable(Color.BLUE)); in testSetAlpha() 254 new ColorDrawable(Color.RED), new ColorDrawable(Color.BLUE)); in testSetColorFilter() 266 new ColorDrawable(Color.RED), new ColorDrawable(Color.BLUE)); in testGetOpacity() [all …]
|
D | ColorStateListDrawableTest.java | 56 final int[] colors = new int[]{Color.RED, Color.BLUE}; in setup() 84 assertEquals(Color.BLUE, bitmap.getPixel(0, 0)); in testDraw() 113 int transBlue = (Color.BLUE & 0xFFFFFF) | 127 << 24; in testAlpha() 162 assertEquals(colorDrawable.getColor(), Color.BLUE); in testSetState()
|
/cts/tests/tests/openglperf/src/android/openglperf/cts/ |
D | TextureTestRenderer.java | 72 Color.RED, Color.RED, Color.BLUE, Color.BLUE, in TextureTestRenderer() 73 Color.RED, Color.RED, Color.BLUE, Color.BLUE, in TextureTestRenderer()
|
/cts/tests/tests/text/src/android/text/style/cts/ |
D | ClickableSpanTest.java | 50 tp.linkColor = Color.BLUE; in testUpdateDrawState() 52 assertEquals(Color.BLUE, tp.getColor()); in testUpdateDrawState()
|
/cts/tests/tests/uirendering27/src/android/uirendering/cts/testclasses/ |
D | BitmapBlendModeTest.java | 54 Color.BLUE, Color.RED); in testClearBlendMode() 68 Color.BLUE, Color.RED); in testDstOutBlendMode()
|
/cts/tests/tests/assist/src/android/assist/cts/ |
D | ScreenshotTest.java | 87 bundle.putInt(Utils.SCREENSHOT_COLOR_KEY, Color.BLUE); in testBlueScreenshot() 91 delayAndStartSession(Color.BLUE); in testBlueScreenshot()
|