/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 | 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 | 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 | 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 | 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 | 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()
|
/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 | RenderNodeTests.java | 127 canvas.drawColor(Color.BLUE); in testBasicDraw() 138 .runWithVerifier(new RectVerifier(Color.WHITE, Color.BLUE, rect)); in testBasicDraw() 151 canvas.drawColor(Color.BLUE); in testAlphaOverlappingRendering() 172 canvas.drawColor(Color.BLUE); in testAlphaNonOverlappingRendering() 225 canvas.drawColor(Color.BLUE); in testComputeApproximateMemoryUsage() 390 bitmap.eraseColor(Color.BLUE); in testBitmapRenderEffect() 405 .runWithVerifier(new ColorVerifier(Color.BLUE)); in testBitmapRenderEffect() 419 paint.setColor(Color.BLUE); in testOffsetImplicitInputRenderEffect() 448 new ColorVerifier(Color.BLUE) in testOffsetImplicitInputRenderEffect() 472 paint.setColor(Color.BLUE); in testColorFilterRenderEffectImplicitInput() [all …]
|
D | PathClippingTests.java | 72 paint.setColor(Color.BLUE); 87 canvas.drawColor(Color.BLUE); 104 canvas.drawColor(Color.BLUE); 136 Color.BLUE, in testCircleWithPoints() 163 Color.BLUE, in testViewRotate() 164 Color.BLUE, in testViewRotate() 179 canvas.drawColor(Color.BLUE); in testPathScale() 235 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 | CameraTests.java | 41 paint.setColor(Color.BLUE); in testBasicTranslate() 47 .runWithVerifier(new RectVerifier(Color.WHITE, Color.BLUE, in testBasicTranslate()
|
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 | ViewPropertyAnimatorTests.java | 50 target.setEndColor(Color.BLUE); in testViewCustomAlpha() 60 assertEquals(Color.BLUE, target.getBlendedColor()); in testViewCustomAlpha() 63 }).runWithVerifier(new ColorVerifier(Color.BLUE)); in testViewCustomAlpha() 87 target.setEndColor(Color.BLUE); in testViewCustomAlphaBy() 98 assertEquals(Color.BLUE, target.getBlendedColor()); in testViewCustomAlphaBy() 101 }).runWithVerifier(new ColorVerifier(Color.BLUE)); in testViewCustomAlphaBy() 516 alphaView.setEndColor(Color.BLUE); in createViewPropertyAnimatorTest()
|
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() 199 canvas.drawColor(Color.BLUE, PorterDuff.Mode.MULTIPLY); in testBasicColorXfermode() 208 canvas.drawColor(Color.BLUE, BlendMode.MULTIPLY); in testBasicColorBlendMode() 218 BitmapVerifier verifier = new RectVerifier(Color.WHITE, Color.BLUE, in testBluePaddedSquare() 225 p.setColor(Color.BLUE); in testBluePaddedSquare()
|
D | BitmapBlendModeTest.java | 53 Color.BLUE, Color.RED); in testClearBlendMode() 67 Color.BLUE, Color.RED); in testDstOutBlendMode()
|
D | BlendModeColorFilterTest.java | 68 b2.eraseColor(Color.BLUE); in BlendModeColorFilterClient() 101 new int[]{Color.RED, Color.BLUE, Color.BLUE}); in testBlendModeColorFilter_DST()
|
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() 573 Color.BLUE, in testWebViewWithUnclippedLayer() 618 Color.BLUE, in testWebViewWithUnclippedLayerAndComplexClip() [all …]
|
/cts/tests/tests/view/src/android/view/cts/ |
D | PixelCopyTest.java | 211 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testGlProducerFullsize() 231 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testGlProducerCropCenter() 241 Color.BLUE, Color.BLACK, Color.BLUE, Color.BLACK); in testGlProducerCropBottomHalf() 267 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testGlProducerScaling() 282 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testReuseBitmap() 290 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testReuseBitmap() 319 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testWindowProducer() 346 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testWindowProducerCropCenter() 359 Color.BLUE, Color.BLACK, Color.BLUE, Color.BLACK); in testWindowProducerCropBottomHalf() 378 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testWindowProducerScaling() [all …]
|
D | ASurfaceControlTest.java | 96 private static final PixelColor BLUE = new PixelColor(PixelColor.BLUE); field in ASurfaceControlTest 365 DEFAULT_LAYOUT_HEIGHT, PixelColor.BLUE); in testSurfaceTransaction_setBuffer_parentAndChild() 667 PixelColor.BLUE); in testSurfaceTransaction_setDestinationRect_twoLayers() 679 return BLUE; in testSurfaceTransaction_setDestinationRect_twoLayers() 696 DEFAULT_LAYOUT_HEIGHT, PixelColor.RED, PixelColor.BLUE, in testSurfaceTransaction_setSourceRect() 709 return BLUE; in testSurfaceTransaction_setSourceRect() 728 DEFAULT_LAYOUT_HEIGHT, PixelColor.RED, PixelColor.BLUE, in testSurfaceTransaction_setSourceRect_smallCentered() 742 return BLUE; in testSurfaceTransaction_setSourceRect_smallCentered() 761 DEFAULT_LAYOUT_HEIGHT, PixelColor.RED, PixelColor.BLUE, in testSurfaceTransaction_setSourceRect_small() 771 return BLUE; in testSurfaceTransaction_setSourceRect_small() [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 …]
|
/cts/tests/tests/text/src/android/text/cts/ |
D | TextShaperTest.java | 169 paint.setColor(Color.BLUE); in testDrawConsistencyNoStyle() 177 paint.setColor(Color.BLUE); in testDrawConsistencyNoStyleMultiFont() 185 paint.setColor(Color.BLUE); in testDrawConsistencyMultiStyle() 197 paint.setColor(Color.BLUE); in testDrawConsistencyBidi() 207 paint.setColor(Color.BLUE); in testDrawConsistencyBidi2() 217 paint.setColor(Color.BLUE); in testDrawConsistencyBidiMultiStyle() 231 paint.setColor(Color.BLUE); in testDrawConsistencyBidi2MultiStyle()
|
/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/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()
|