/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | ColorTest.java | 126 assertEquals(0xff, Color.alpha(Color.RED)); in testAlpha() 132 assertEquals(Color.RED, Color.argb(0xff, 0xff, 0x00, 0x00)); in testArgb() 134 assertEquals(Color.RED, Color.argb(1.0f, 1.0f, 0.0f, 0.0f)); in testArgb() 140 assertEquals(0x00, Color.blue(Color.RED)); in testBlue() 146 assertEquals(0x00, Color.green(Color.RED)); in testGreen() 160 Color.colorToHSV(Color.RED, hsv); in testHSVToColor() 161 assertEquals(Color.RED, Color.HSVToColor(hsv)); in testHSVToColor() 167 Color.colorToHSV(Color.RED, hsv); in testHSVToColorWithAlpha() 168 assertEquals(Color.RED, Color.HSVToColor(0xff, hsv)); in testHSVToColorWithAlpha() 179 assertEquals(Color.RED, Color.parseColor("#ff0000")); in testParseColor() [all …]
|
D | BitmapShaderTest.java | 41 private static final int CENTER_COLOR = Color.RED; 102 bitmap.setPixel(0, 0, Color.RED); in testClamp() 117 Assert.assertArrayEquals(new int[] { Color.RED, Color.BLUE, Color.BLUE, Color.BLUE }, in testClamp() 124 bitmap.setPixel(0, 0, Color.RED); in testRepeat() 139 Assert.assertArrayEquals(new int[] { Color.RED, Color.BLUE, Color.RED, Color.BLUE }, in testRepeat() 146 bitmap.setPixel(0, 0, Color.RED); in testMirror() 161 Assert.assertArrayEquals(new int[] { Color.RED, Color.BLUE, Color.BLUE, Color.RED }, in testMirror()
|
D | PorterDuffXfermodeTest.java | 44 b1.eraseColor(Color.RED); in testPorterDuffXfermode() 53 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4)); in testPorterDuffXfermode() 62 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4)); in testPorterDuffXfermode() 63 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT * 3 / 4)); in testPorterDuffXfermode() 71 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4)); in testPorterDuffXfermode()
|
D | PorterDuffColorFilterTest.java | 43 b1.eraseColor(Color.RED); in testPorterDuffColorFilter() 57 assertEquals(Color.RED, target.getPixel(width / 4, height / 4)); in testPorterDuffColorFilter() 70 assertEquals(Color.RED, target.getPixel(width / 4, height / 4)); in testPorterDuffColorFilter() 80 assertEquals(Color.RED, target.getPixel(width / 4, height / 4)); in testPorterDuffColorFilter()
|
D | BlurMaskFilterTest.java | 48 paint.setColor(Color.RED); in testBlurMaskFilter() 60 verifyQuadrants(Color.RED, b, x, y, 8); in testBlurMaskFilter() 63 verifyQuadrants(Color.RED, b, x, y, 255); in testBlurMaskFilter()
|
D | ColorMatrixColorFilterTest.java | 63 paint.setColor(Color.RED); in testColorMatrixColorFilter() 65 ColorUtils.verifyColor(Color.RED, bitmap.getPixel(0, 0)); in testColorMatrixColorFilter() 79 paint.setColor(Color.RED); in testColorMatrixColorFilter()
|
D | PaintFlagsDrawFilterTest.java | 61 p.setColor(Color.RED); in drawText() 83 assertEquals(Color.RED, pixelWithoutFilter); in delta() 85 combinedBitmap.setPixel(i, j, Color.RED); in delta() 98 if (pixel == Color.RED) { in verifyUnderline()
|
D | LinearGradientTest.java | 45 int[] color = { Color.BLUE, Color.GREEN, Color.RED }; in testLinearGradient() 64 lg = new LinearGradient(0, 0, 0, 40, Color.RED, Color.BLUE, TileMode.CLAMP); in testLinearGradient() 89 Color.RED, Color.BLUE, TileMode.CLAMP);
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ViewOverlayTest.java | 81 final Drawable redDrawable = new ColorDrawable(Color.RED); in testOverlayWithOneDrawable() 86 colorRectangles.add(new Pair<>(new Rect(20, 30, 40, 50), Color.RED)); in testOverlayWithOneDrawable() 99 final Drawable redDrawable = new ColorDrawable(Color.RED); in testAddTheSameDrawableTwice() 106 colorRectangles.add(new Pair<>(new Rect(20, 30, 40, 50), Color.RED)); in testAddTheSameDrawableTwice() 120 final Drawable redDrawable = new ColorDrawable(Color.RED); in testRemoveTheSameDrawableTwice() 125 colorRectangles.add(new Pair<>(new Rect(20, 30, 40, 50), Color.RED)); in testRemoveTheSameDrawableTwice() 141 final Drawable redDrawable = new ColorDrawable(Color.RED); in testOverlayWithNonOverlappingDrawables() 153 colorRectangles.add(new Pair<>(new Rect(10, 20, 30, 40), Color.RED)); in testOverlayWithNonOverlappingDrawables() 162 colorRectangles.add(new Pair<>(new Rect(10, 20, 30, 40), Color.RED)); in testOverlayWithNonOverlappingDrawables() 177 final Drawable redDrawable = new ColorDrawable(Color.RED); in testOverlayWithOverlappingDrawables() [all …]
|
D | ViewGroupOverlayTest.java | 100 redView.setBackgroundColor(Color.RED); in testOverlayWithOneView() 106 colorRectangles.add(new Pair<>(new Rect(10, 20, 30, 40), Color.RED)); in testOverlayWithOneView() 121 redView.setBackgroundColor(Color.RED); in testOverlayWithNonOverlappingViews() 135 colorRectangles.add(new Pair<>(new Rect(10, 20, 30, 40), Color.RED)); in testOverlayWithNonOverlappingViews() 144 colorRectangles.add(new Pair<>(new Rect(10, 20, 30, 40), Color.RED)); in testOverlayWithNonOverlappingViews() 160 redView.setBackgroundColor(Color.RED); in testOverlayWithNonOverlappingViewAndDrawable() 169 colorRectangles.add(new Pair<>(new Rect(10, 20, 30, 40), Color.RED)); in testOverlayWithNonOverlappingViewAndDrawable() 192 redView.setBackgroundColor(Color.RED); in testOverlayWithOverlappingViews() 204 colorRectangles.add(new Pair<>(new Rect(10, 20, 30, 40), Color.RED)); in testOverlayWithOverlappingViews() 212 colorRectangles.add(new Pair<>(new Rect(10, 20, 60, 40), Color.RED)); in testOverlayWithOverlappingViews() [all …]
|
D | PixelCopyTest.java | 189 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testGlProducerFullsize() 199 Color.RED, Color.RED, Color.RED, Color.RED); in testGlProducerCropTopLeft() 209 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testGlProducerCropCenter() 245 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testGlProducerScaling() 260 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testReuseBitmap() 268 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testReuseBitmap() 297 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testWindowProducer() 311 Color.RED, Color.RED, Color.RED, Color.RED); in testWindowProducerCropTopLeft() 324 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testWindowProducerCropCenter() 356 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testWindowProducerScaling() [all …]
|
/cts/tests/tests/text/src/android/text/style/cts/ |
D | QuoteSpanTest.java | 48 QuoteSpan span = new QuoteSpan(Color.RED); in testConstructorFromColor() 51 assertEquals(Color.RED, span.getColor()); in testConstructorFromColor() 58 QuoteSpan span = new QuoteSpan(Color.RED, 10, 5); in testConstructorFromColorStripeWidthGapWidth() 60 assertEquals(Color.RED, span.getColor()); in testConstructorFromColorStripeWidthGapWidth() 67 QuoteSpan quoteSpan = new QuoteSpan(Color.RED, 10, 5); in testConstructorFromParcel() 75 assertEquals(Color.RED, span.getColor()); in testConstructorFromParcel() 118 QuoteSpan quoteSpan = new QuoteSpan(Color.RED); in testDescribeContents() 124 QuoteSpan quoteSpan = new QuoteSpan(Color.RED); in testGetSpanTypeId() 132 QuoteSpan quoteSpan = new QuoteSpan(Color.RED); in testWriteToParcel() 136 assertEquals(Color.RED, q.getColor()); in testWriteToParcel()
|
D | BulletSpanTest.java | 61 BulletSpan bulletSpan = new BulletSpan(2, Color.RED); in testConstructorFromGapWidthColor() 64 assertEquals(Color.RED, bulletSpan.getColor()); in testConstructorFromGapWidthColor() 71 BulletSpan bulletSpan = new BulletSpan(2, Color.RED, 10); in testConstructorFromGapWidthColorBulletRadius() 73 assertEquals(Color.RED, bulletSpan.getColor()); in testConstructorFromGapWidthColorBulletRadius() 136 BulletSpan bulletSpan = new BulletSpan(2, Color.RED, 5); in testWriteToParcel() 142 assertEquals(Color.RED, b.getColor()); in testWriteToParcel()
|
D | BackgroundColorSpanTest.java | 79 BackgroundColorSpan backgroundColorSpan = new BackgroundColorSpan(Color.RED); in testDescribeContents() 85 BackgroundColorSpan backgroundColorSpan = new BackgroundColorSpan(Color.RED); in testGetSpanTypeId() 93 BackgroundColorSpan backgroundColorSpan = new BackgroundColorSpan(Color.RED); in testWriteToParcel() 97 assertEquals(Color.RED, b.getBackgroundColor()); in testWriteToParcel()
|
D | ForegroundColorSpanTest.java | 81 ForegroundColorSpan foregroundColorSpan = new ForegroundColorSpan(Color.RED); in testDescribeContents() 87 ForegroundColorSpan foregroundColorSpan = new ForegroundColorSpan(Color.RED); in testGetSpanTypeId() 95 ForegroundColorSpan foregroundColorSpan = new ForegroundColorSpan(Color.RED); in testWriteToParcel() 99 assertEquals(Color.RED, f.getForegroundColor()); in testWriteToParcel()
|
D | ClickableSpanTest.java | 41 tp.linkColor = Color.RED; in testUpdateDrawState() 46 assertEquals(Color.RED, tp.getColor()); in testUpdateDrawState()
|
/cts/tests/tests/content/src/android/content/res/cts/ |
D | ColorStateListTest.java | 40 final int[] colors = new int[]{Color.RED, Color.BLUE}; in testConstructor() 43 assertEquals(Color.RED, c.getDefaultColor()); in testConstructor() 89 final int[] colors = new int[]{Color.RED, Color.BLUE}; in testWithAlpha() 93 assertNotSame(Color.RED, c1.getDefaultColor()); in testWithAlpha() 95 assertEquals(Color.RED & 0x00FF0000, c1.getDefaultColor() & 0x00FF0000); in testWithAlpha()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | AdaptiveIconDrawableTest.java | 85 new ColorDrawable(Color.RED), new ColorDrawable(Color.BLUE)); in testDrawNull() 93 new ColorDrawable(Color.RED), new ColorDrawable(Color.BLUE)); in testInvalidateDrawable() 101 new ColorDrawable(Color.RED), new ColorDrawable(Color.BLUE)); in testScheduleDrawable() 114 new ColorDrawable(Color.RED), new ColorDrawable(Color.BLUE)); in testUnscheduleDrawable() 126 new ColorDrawable(Color.RED), new ColorDrawable(Color.BLUE)); in testGetChangingConfigurations() 141 Drawable foregroundDrawable = new ColorDrawable(Color.RED); in testDrawWithoutSetBounds() 210 new ColorDrawable(Color.RED), new ColorDrawable(Color.BLUE)); in testSetVisible() 219 new ColorDrawable(Color.RED), new ColorDrawable(Color.BLUE)); in testSetAlpha() 242 new ColorDrawable(Color.RED), new ColorDrawable(Color.BLUE)); in testSetColorFilter() 254 new ColorDrawable(Color.RED), new ColorDrawable(Color.BLUE)); in testGetOpacity() [all …]
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | CanvasStateTests.java | 135 bitmap.eraseColor(Color.RED); in testDrawScreenWideBitmap() 138 .runWithVerifier(new ColorVerifier(Color.RED, 0)); in testDrawScreenWideBitmap() 154 bitmap.eraseColor(Color.RED); in testDrawLargeBitmap() 157 .runWithVerifier(new ColorVerifier(Color.RED, 0)); in testDrawLargeBitmap()
|
D | TextureViewTests.java | 58 sRedTexture = createSurfaceTexture(true, Color.RED); in setupClass() 83 final SurfaceTexture texture = createSurfaceTexture(singleBuffered, Color.RED); in testConstructDetached() 89 .runWithVerifier(new ColorVerifier(Color.RED)); in testConstructDetached() 125 .runWithVerifier(new ColorVerifier(Color.RED)); in testReuseSurfaceTexture()
|
D | BitmapTests.java | 127 child.setColor(Color.RED); in testChangeDuringRtAnimation() 148 .runWithAnimationVerifier(new ColorCountVerifier(Color.RED, 0)); in testChangeDuringRtAnimation() 165 Arrays.fill(red, Color.RED); in testChangeDuringUiAnimation() 201 root.setBackgroundColor(Color.RED); in testChangeDuringUiAnimation() 202 child.setColor(Color.RED); in testChangeDuringUiAnimation()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Renderer/RenderUtils/ |
D | Colour.java | 26 public static final float[] RED = new float[]{ field in Colour
|
/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/widget/src/android/widget/cts/ |
D | LinearLayoutTest.java | 659 child2.setBackgroundColor(Color.RED); in testVisibilityAffectsLayout() 842 false, Color.RED, 1, true); in testDividersInVerticalLayout() 846 dividerSize, Color.RED, dividerPadding); in testDividersInVerticalLayout() 866 dividerSize, Color.RED, dividerPadding); in testDividersInVerticalLayout() 874 dividerSize, Color.RED, halfPadding); in testDividersInVerticalLayout() 882 dividerSize, Color.RED, doublePadding); in testDividersInVerticalLayout() 889 dividerSize, Color.RED, dividerPadding); in testDividersInVerticalLayout() 903 dividerSize, Color.RED, dividerPadding); in testDividersInVerticalLayout() 910 dividerSize, Color.RED, dividerPadding); in testDividersInVerticalLayout() 920 dividerSize, Color.RED, dividerPadding); in testDividersInVerticalLayout() [all …]
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/differencevisualizers/ |
D | PassFailVisualizer.java | 36 output[y] = Color.RED; in getDifferences()
|