/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | ColorTest.java | 32 assertEquals(0xff, Color.alpha(Color.RED)); in testAlpha() 38 assertEquals(Color.RED, Color.argb(0xff, 0xff, 0x00, 0x00)); in testArgb() 40 assertEquals(Color.RED, Color.argb(1.0f, 1.0f, 0.0f, 0.0f)); in testArgb() 46 assertEquals(0x00, Color.blue(Color.RED)); in testBlue() 52 assertEquals(0x00, Color.green(Color.RED)); in testGreen() 66 Color.colorToHSV(Color.RED, hsv); in testHSVToColor() 67 assertEquals(Color.RED, Color.HSVToColor(hsv)); in testHSVToColor() 73 Color.colorToHSV(Color.RED, hsv); in testHSVToColorWithAlpha() 74 assertEquals(Color.RED, Color.HSVToColor(0xff, hsv)); in testHSVToColorWithAlpha() 85 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 | 47 paint.setColor(Color.RED); in testBlurMaskFilter() 59 verifyQuadrants(Color.RED, b, x, y, 5); in testBlurMaskFilter() 62 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 | 175 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testGlProducerFullsize() 185 Color.RED, Color.RED, Color.RED, Color.RED); in testGlProducerCropTopLeft() 195 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testGlProducerCropCenter() 231 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testGlProducerScaling() 259 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testWindowProducer() 273 Color.RED, Color.RED, Color.RED, Color.RED); in testWindowProducerCropTopLeft() 286 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testWindowProducerCropCenter() 318 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testWindowProducerScaling() 398 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testNotLeaking() 436 assertBitmapQuadColor(bitmap, Color.RED, Color.GREEN, Color.BLUE, Color.BLACK, 30); in testVideoProducer() [all …]
|
/cts/tests/tests/text/src/android/text/style/cts/ |
D | QuoteSpanTest.java | 38 QuoteSpan q = new QuoteSpan(Color.RED); in testConstructor() 85 QuoteSpan quoteSpan = new QuoteSpan(Color.RED); in testDescribeContents() 91 QuoteSpan quoteSpan = new QuoteSpan(Color.RED); in testGetSpanTypeId() 99 QuoteSpan quoteSpan = new QuoteSpan(Color.RED); in testWriteToParcel() 103 assertEquals(Color.RED, q.getColor()); 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 | 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 | 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 | 83 new ColorDrawable(Color.RED), new ColorDrawable(Color.BLUE)); in testDrawNull() 91 new ColorDrawable(Color.RED), new ColorDrawable(Color.BLUE)); in testInvalidateDrawable() 99 new ColorDrawable(Color.RED), new ColorDrawable(Color.BLUE)); in testScheduleDrawable() 112 new ColorDrawable(Color.RED), new ColorDrawable(Color.BLUE)); in testUnscheduleDrawable() 124 new ColorDrawable(Color.RED), new ColorDrawable(Color.BLUE)); in testGetChangingConfigurations() 139 Drawable foregroundDrawable = new ColorDrawable(Color.RED); in testDrawWithoutSetBounds() 208 new ColorDrawable(Color.RED), new ColorDrawable(Color.BLUE)); in testSetVisible() 217 new ColorDrawable(Color.RED), new ColorDrawable(Color.BLUE)); in testSetAlpha() 229 new ColorDrawable(Color.RED), new ColorDrawable(Color.BLUE)); in testSetColorFilter() 241 new ColorDrawable(Color.RED), new ColorDrawable(Color.BLUE)); in testGetOpacity() [all …]
|
D | GradientDrawableTest.java | 88 gradientDrawable.setColors(new int[] { Color.RED, Color.TRANSPARENT }); in testGetOpacity() 92 gradientDrawable.setColors(new int[] { Color.RED, Color.BLUE }); in testGetOpacity() 96 gradientDrawable.setColor(Color.RED); in testGetOpacity() 101 gradientDrawable.setColor(Color.RED); in testGetOpacity() 160 helpTestSetStroke(2, Color.RED); in testSetStroke() 173 verifySetStroke_WidthGap(2, Color.RED, 3.4f, 5.5f); in testSetStroke_WidthGap() 187 verifySetStrokeList(2, ColorStateList.valueOf(Color.RED)); in testSetStrokeList() 201 verifySetStrokeList_WidthGap(2, ColorStateList.valueOf(Color.RED), 3.4f, 5.5f); in testSetStrokeList_WidthGap() 325 color = Color.RED; in testSetColor() 341 colors = new int[] { Color.RED }; in testSetColors() [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 | LayerTests.java | 216 child.setBackgroundColor(Color.RED); in testLayerInitialSizeZero() 327 .runWithVerifier(new RectVerifier(Color.WHITE, Color.RED, new Rect(10, 10, 70, 70))); in testSaveLayerUnclippedWithColorFilterHW() 370 Color.RED, Color.RED, in testSaveLayerUnclippedWithColorFilterSW() 421 Color.RED, Color.RED, in testSaveLayerUnclippedWithAlpha() 453 canvas.drawColor(Color.RED); in testSaveLayerUnclipped_restoreBehavior() 455 .runWithVerifier(new ColorVerifier(Color.RED)); in testSaveLayerUnclipped_restoreBehavior() 483 canvas.drawColor(Color.RED); in testSaveLayerClipped_restoreBehavior() 485 .runWithVerifier(new ColorVerifier(Color.RED)); in testSaveLayerClipped_restoreBehavior()
|
D | BitmapTests.java | 122 child.setColor(Color.RED); in testChangeDuringRtAnimation() 143 .runWithAnimationVerifier(new ColorCountVerifier(Color.RED, 0)); in testChangeDuringRtAnimation() 158 Arrays.fill(red, Color.RED); in testChangeDuringUiAnimation() 194 root.setBackgroundColor(Color.RED); in testChangeDuringUiAnimation() 195 child.setColor(Color.RED); in testChangeDuringUiAnimation()
|
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()
|
/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/telecom/src/android/telecom/cts/ |
D | PhoneAccountOperationsTest.java | 58 .setHighlightColor(Color.RED) 69 .setHighlightColor(Color.RED) 82 .setHighlightColor(Color.RED) 149 .setHighlightColor(Color.RED) in testRegisterPhoneAccount_DisallowEnable()
|