/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | BitmapShaderTest.java | 48 private static final int BORDER_COLOR = Color.BLUE; 120 bitmap.setPixel(1, 0, Color.BLUE); in testClamp() 134 Assert.assertArrayEquals(new int[] { Color.RED, Color.BLUE, Color.BLUE, Color.BLUE }, in testClamp() 143 bitmap.setPixel(1, 0, Color.BLUE); in testRepeat() 157 Assert.assertArrayEquals(new int[] { Color.RED, Color.BLUE, Color.RED, Color.BLUE }, in testRepeat() 166 bitmap.setPixel(1, 0, Color.BLUE); in testMirror() 180 Assert.assertArrayEquals(new int[] { Color.RED, Color.BLUE, Color.BLUE, Color.RED }, in testMirror() 189 bitmap.setPixel(1, 0, Color.BLUE); in testFiltering() 190 bitmap.setPixel(0, 1, Color.BLUE); in testFiltering() 232 bitmap.setPixel(1, 0, Color.BLUE); in testAnisotropicFiltering() [all …]
|
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()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | RenderNodeTests.java | 134 canvas.drawColor(Color.BLUE); in testBasicDraw() 145 .runWithVerifier(new RectVerifier(Color.WHITE, Color.BLUE, rect)); in testBasicDraw() 158 canvas.drawColor(Color.BLUE); in testAlphaOverlappingRendering() 179 canvas.drawColor(Color.BLUE); in testAlphaNonOverlappingRendering() 232 canvas.drawColor(Color.BLUE); in testComputeApproximateMemoryUsage() 397 bitmap.eraseColor(Color.BLUE); in testBitmapRenderEffect() 412 .runWithVerifier(new ColorVerifier(Color.BLUE)); in testBitmapRenderEffect() 426 paint.setColor(Color.BLUE); in testOffsetImplicitInputRenderEffect() 455 new ColorVerifier(Color.BLUE) in testOffsetImplicitInputRenderEffect() 479 paint.setColor(Color.BLUE); in testColorFilterRenderEffectImplicitInput() [all …]
|
D | BitmapTests.java | 65 setColor(Color.BLUE); in BitmapView() 195 Arrays.fill(blue, Color.BLUE); in testChangeDuringUiAnimation() 210 root.setBackgroundColor(Color.BLUE); in testChangeDuringUiAnimation() 223 child.setColor(Color.BLUE); in testChangeDuringUiAnimation() 234 if (child.getColor() == Color.BLUE) { in testChangeDuringUiAnimation() 238 root.setBackgroundColor(Color.BLUE); in testChangeDuringUiAnimation() 239 child.setColor(Color.BLUE); in testChangeDuringUiAnimation() 266 p.setColor(Color.BLUE); in testCreateFromPicture() 277 }, true).runWithVerifier(new RectVerifier(Color.WHITE, Color.BLUE, rect)); in testCreateFromPicture()
|
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 | ExactCanvasTests.java | 70 p.setColor(Color.BLUE); in testBlueRect() 73 .runWithVerifier(new RectVerifier(Color.WHITE, Color.BLUE, rect)); in testBlueRect() 124 canvas.drawColor(Color.BLUE); in testDrawRedRectOnBlueBack() 220 canvas.drawColor(Color.BLUE, PorterDuff.Mode.MULTIPLY); in testBasicColorXfermode() 229 canvas.drawColor(Color.BLUE, BlendMode.MULTIPLY); in testBasicColorBlendMode() 239 BitmapVerifier verifier = new RectVerifier(Color.WHITE, Color.BLUE, in testBluePaddedSquare() 246 p.setColor(Color.BLUE); in testBluePaddedSquare() 375 BitmapVerifier verifier = new ColorVerifier(Color.BLUE); in testDrawVertices_doNotBlendColorsWithoutShader() 385 new int[] {Color.BLUE, Color.BLUE, Color.BLUE, Color.BLUE}; in testDrawVertices_doNotBlendColorsWithoutShader() 533 canvas.drawColor(Color.BLUE); in testDrawRegion() [all …]
|
D | ViewClippingTests.java | 116 return new RectVerifier(Color.WHITE, Color.BLUE, blueBoundsRect, 75); in makeClipVerifier() 121 .addVerifier(CONCAVE_TEST_RECT1, new RectVerifier(Color.BLACK, Color.BLUE, in makeConcaveClipVerifier() 123 .addVerifier(CONCAVE_TEST_RECT2, new RectVerifier(Color.BLACK, Color.BLUE, in makeConcaveClipVerifier() 190 return ANTI_ALIAS_OUTLINE_RECT.contains(x, y) ? Color.BLUE : Color.BLACK; in testAntiAliasedOutlineClip() 213 observedColor, Color.BLACK, Color.BLUE); in testAntiAliasedOutlineClip() 214 boolean isInnerOrOuterColor = observedColor == Color.BLUE in testAntiAliasedOutlineClip() 217 int previousBlueChannel = Color.blue(getPixelColor(x, y, Color.BLUE)); in testAntiAliasedOutlineClip() 228 result = Color.BLUE == observedColor in testAntiAliasedOutlineClip() 231 Color.BLUE); in testAntiAliasedOutlineClip()
|
D | ShaderTests.java | 56 shaderBitmap.eraseColor(Color.BLUE); in testSinglePixelBitmapShader() 63 .runWithVerifier(new ColorVerifier(Color.BLUE)); in testSinglePixelBitmapShader() 77 shaderBitmap.eraseColor(Color.BLUE); in testSinglePixelComposeShader() 85 new int[] { Color.RED, Color.GREEN, Color.BLUE }, null, in testSinglePixelComposeShader() 94 .runWithVerifier(new ColorVerifier(Color.BLUE)); in testSinglePixelComposeShader() 135 new int[] { Color.RED, Color.BLUE, Color.GREEN }, in testComplexShaderUsage() 194 shaderBitmap.eraseColor(Color.BLUE); in testSinglePixelBitmapShaderWith1010102Config() 201 .runWithVerifier(new ColorVerifier(Color.BLUE)); in testSinglePixelBitmapShaderWith1010102Config()
|
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 | HardwareBufferRendererTests.kt | 86 record { canvas -> canvas.drawColor(Color.BLUE) } in <lambda>() 110 assertEquals(Color.BLUE, bitmap.getPixel(TEST_WIDTH / 2, TEST_HEIGHT / 2 + TEST_HEIGHT / 4)) in <lambda>() 159 assertEquals(Color.BLUE, bitmap.getPixel(TEST_WIDTH / 2, TEST_HEIGHT / 2 + TEST_HEIGHT / 4)) in <lambda>() 170 record { canvas -> canvas.drawColor(Color.BLUE) } in <lambda>() 231 paint.color = Color.BLUE in <lambda>() 321 topRight = Color.BLUE, in <lambda>() 336 topRight = Color.BLUE, in <lambda>() 352 bottomRight = Color.BLUE, in <lambda>() 368 bottomRight = Color.BLUE in <lambda>() 382 bottomLeft = Color.BLUE, in <lambda>() [all …]
|
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() 463 .runWithVerifier(new ColorVerifier(Color.BLUE)); in testWebViewNoOverlappingRenderingAndAlpha() 489 .runWithVerifier(new RectVerifier(Color.RED, Color.BLUE, in testWebViewWithParentLayer() 517 .runWithVerifier(new RectVerifier(Color.RED, Color.BLUE, in testWebViewScaledWithParentLayer() 601 Color.BLUE, in testWebViewWithUnclippedLayer() [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 | BlendModeColorFilterTest.java | 68 b2.eraseColor(Color.BLUE); in BlendModeColorFilterClient() 101 new int[]{Color.RED, Color.BLUE, Color.BLUE}); in testBlendModeColorFilter_DST()
|
D | BitmapBlendModeTest.java | 53 Color.BLUE, Color.RED); in testClearBlendMode() 67 Color.BLUE, Color.RED); in testDstOutBlendMode()
|
D | MeshTest.kt | 436 paint.color = Color.BLUE in <lambda>() 491 paint.color = Color.BLUE in <lambda>() 502 Color.BLUE, in <lambda>() 503 Color.BLUE, in <lambda>() 539 paint.color = Color.BLUE in <lambda>() 579 paint.color = Color.BLUE in <lambda>() 619 paint.color = Color.BLUE in <lambda>() 659 paint.color = Color.BLUE in <lambda>() 699 paint.color = Color.BLUE in <lambda>() 739 paint.color = Color.BLUE in <lambda>() [all …]
|
/cts/tests/tests/view/src/android/view/cts/ |
D | PixelCopyTest.java | 247 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testGlProducerFullsize() 260 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testGlProducerAutoSize() 280 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testGlProducerCropCenter() 290 Color.BLUE, Color.BLACK, Color.BLUE, Color.BLACK); in testGlProducerCropBottomHalf() 316 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testGlProducerScaling() 332 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testReuseBitmap() 342 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testReuseBitmap() 374 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testViewProducer() 411 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testViewProducerAutoSizeWithSrc() 438 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testWindowProducerCropCenter() [all …]
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | AdaptiveIconDrawableTest.java | 89 new ColorDrawable(Color.RED), new ColorDrawable(Color.BLUE)); in testDrawNull() 97 new ColorDrawable(Color.RED), new ColorDrawable(Color.BLUE)); in testInvalidateDrawable() 105 new ColorDrawable(Color.RED), new ColorDrawable(Color.BLUE)); in testScheduleDrawable() 118 new ColorDrawable(Color.RED), new ColorDrawable(Color.BLUE)); in testUnscheduleDrawable() 130 new ColorDrawable(Color.RED), new ColorDrawable(Color.BLUE)); in testGetChangingConfigurations() 167 Drawable backgroundDrawable = new ColorDrawable(Color.BLUE); in testDrawWithoutSetBounds() 238 new ColorDrawable(Color.RED), new ColorDrawable(Color.BLUE)); in testSetVisible() 247 new ColorDrawable(Color.RED), new ColorDrawable(Color.BLUE)); in testSetAlpha() 270 new ColorDrawable(Color.RED), new ColorDrawable(Color.BLUE)); in testSetColorFilter() 282 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/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/uirendering27/src/android/uirendering/cts/testclasses/ |
D | BitmapBlendModeTest.java | 54 Color.BLUE, Color.RED); in testClearBlendMode() 68 Color.BLUE, Color.RED); in testDstOutBlendMode()
|