Home
last modified time | relevance | path

Searched refs:RED (Results 1 – 25 of 199) sorted by relevance

12345678

/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DBitmapBlendModeTest.java50 int[] colors = {Color.RED, Color.RED, Color.RED, Color.RED, Color.RED}; in testClearBlendMode()
53 Color.BLUE, Color.RED); in testClearBlendMode()
64 int[] colors = {Color.WHITE, Color.WHITE, Color.WHITE, Color.WHITE, Color.RED}; in testDstOutBlendMode()
67 Color.BLUE, Color.RED); in testDstOutBlendMode()
DGradientTests.java52 paint.setColor(Color.RED); in testAlphaPreMultiplication()
89 new long[] { Color.pack(Color.RED), Color.pack(Color.CYAN) }, in testRadialGradientWithFocalPoint()
107 Color.CYAN, Color.CYAN, Color.CYAN, Color.CYAN, Color.RED in testRadialGradientWithFocalPoint()
129 new long[] { Color.pack(Color.RED), Color.pack(Color.CYAN) }, in testRadialGradientSameStartEndCircles()
155 Color.RED, in testRadialGradientSameStartEndCircles()
156 Color.RED, in testRadialGradientSameStartEndCircles()
157 Color.RED, in testRadialGradientSameStartEndCircles()
158 Color.RED, in testRadialGradientSameStartEndCircles()
159 Color.RED in testRadialGradientSameStartEndCircles()
175 new long[] { Color.pack(Color.RED), Color.pack(Color.CYAN) }, in testNegativeFocalRadiusThrows()
[all …]
DViewFadingEdgeTests.java51 canvas.drawColor(Color.RED); in onDraw()
104 Color.RED, in testCreateLeftFade()
105 Color.RED, in testCreateLeftFade()
126 Color.RED, in testCreateRightFade()
127 Color.RED, in testCreateRightFade()
151 Color.RED, in testCreateTopFade()
152 Color.RED, in testCreateTopFade()
172 Color.RED, in testCreateBottomFade()
173 Color.RED, in testCreateBottomFade()
199 Color.RED, in testCreateLeftAndRightFade()
DShaderClippingTests.java63 bitmapPaint.setColor(Color.RED); in testBitmapShader()
88 Color.TRANSPARENT, Color.RED, Shader.TileMode.DECAL); in testLinearGradient()
103 Color.TRANSPARENT, Color.RED, Shader.TileMode.DECAL); in testCompose()
105 Color.TRANSPARENT, Color.RED, Shader.TileMode.DECAL); in testCompose()
120 Color.RED, Color.TRANSPARENT, Shader.TileMode.CLAMP); in testRadialGradient()
152 Color.RED, Color.TRANSPARENT); in testSweepGradient()
167 Color.TRANSPARENT, Color.RED, Shader.TileMode.DECAL); in testClipOutShader()
DRenderNodeTests.java157 canvas.drawColor(Color.RED); in testAlphaOverlappingRendering()
178 canvas.drawColor(Color.RED); in testAlphaNonOverlappingRendering()
434 canvasClientPaint.setColor(Color.RED); in testOffsetImplicitInputRenderEffect()
447 new ColorVerifier(Color.RED) in testOffsetImplicitInputRenderEffect()
464 new ColorVerifier(Color.RED) in testOffsetImplicitInputRenderEffect()
472 new BlendModeColorFilter(Color.RED, BlendMode.SRC_OVER)); in testColorFilterRenderEffectImplicitInput()
488 .runWithVerifier(new ColorVerifier(Color.RED)); in testColorFilterRenderEffectImplicitInput()
497 dstBitmap.eraseColor(Color.RED); in testBlendModeRenderEffectImplicitInput()
533 new BlendModeColorFilter(Color.RED, BlendMode.SRC_OVER), bitmapEffect); in testColorFilterRenderEffect()
548 .runWithVerifier(new ColorVerifier(Color.RED)); in testColorFilterRenderEffect()
[all …]
DCanvasTests.java110 Color.RED, in testDrawDoubleRoundRect()
111 Color.RED, in testDrawDoubleRoundRect()
112 Color.RED, in testDrawDoubleRoundRect()
113 Color.RED in testDrawDoubleRoundRect()
121 paint.setColor(Color.RED); in testDrawDoubleRoundRect()
147 Color.RED, in testDrawDoubleRoundRectWithRadii()
151 Color.RED, in testDrawDoubleRoundRectWithRadii()
152 Color.RED, in testDrawDoubleRoundRectWithRadii()
153 Color.RED, in testDrawDoubleRoundRectWithRadii()
154 Color.RED in testDrawDoubleRoundRectWithRadii()
[all …]
DBlendModeColorFilterTest.java65 b1.eraseColor(Color.RED); in BlendModeColorFilterClient()
95 new int[]{Color.RED, 0xFF7F8000, 0xFF7FFF7f}); in testBlendModeColorFilter_SRC()
101 new int[]{Color.RED, Color.BLUE, Color.BLUE}); in testBlendModeColorFilter_DST()
107 new int[]{Color.RED, Color.CYAN, Color.CYAN}); in testBlendModeColorFilter_SCREEN()
/cts/tests/tests/view/src/android/view/cts/
DViewOverlayTest.java93 final Drawable redDrawable = new ColorDrawable(Color.RED); in testOverlayWithOneDrawable()
98 colorRectangles.add(new Pair<>(new Rect(20, 30, 40, 50), Color.RED)); in testOverlayWithOneDrawable()
111 final Drawable redDrawable = new ColorDrawable(Color.RED); in testAddTheSameDrawableTwice()
118 colorRectangles.add(new Pair<>(new Rect(20, 30, 40, 50), Color.RED)); in testAddTheSameDrawableTwice()
132 final Drawable redDrawable = new ColorDrawable(Color.RED); in testRemoveTheSameDrawableTwice()
137 colorRectangles.add(new Pair<>(new Rect(20, 30, 40, 50), Color.RED)); in testRemoveTheSameDrawableTwice()
153 final Drawable redDrawable = new ColorDrawable(Color.RED); in testOverlayWithNonOverlappingDrawables()
165 colorRectangles.add(new Pair<>(new Rect(10, 20, 30, 40), Color.RED)); in testOverlayWithNonOverlappingDrawables()
174 colorRectangles.add(new Pair<>(new Rect(10, 20, 30, 40), Color.RED)); in testOverlayWithNonOverlappingDrawables()
189 final Drawable redDrawable = new ColorDrawable(Color.RED); in testOverlayWithOverlappingDrawables()
[all …]
DViewGroupOverlayTest.java114 redView.setBackgroundColor(Color.RED); in testOverlayWithOneView()
120 colorRectangles.add(new Pair<>(new Rect(10, 20, 30, 40), Color.RED)); in testOverlayWithOneView()
135 redView.setBackgroundColor(Color.RED); in testOverlayWithNonOverlappingViews()
149 colorRectangles.add(new Pair<>(new Rect(10, 20, 30, 40), Color.RED)); in testOverlayWithNonOverlappingViews()
158 colorRectangles.add(new Pair<>(new Rect(10, 20, 30, 40), Color.RED)); in testOverlayWithNonOverlappingViews()
174 redView.setBackgroundColor(Color.RED); in testOverlayWithNonOverlappingViewAndDrawable()
183 colorRectangles.add(new Pair<>(new Rect(10, 20, 30, 40), Color.RED)); in testOverlayWithNonOverlappingViewAndDrawable()
206 redView.setBackgroundColor(Color.RED); in testOverlayWithOverlappingViews()
218 colorRectangles.add(new Pair<>(new Rect(10, 20, 30, 40), Color.RED)); in testOverlayWithOverlappingViews()
226 colorRectangles.add(new Pair<>(new Rect(10, 20, 60, 40), Color.RED)); in testOverlayWithOverlappingViews()
[all …]
DPixelCopyTest.java247 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testGlProducerFullsize()
260 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testGlProducerAutoSize()
270 Color.RED, Color.RED, Color.RED, Color.RED); in testGlProducerCropTopLeft()
280 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testGlProducerCropCenter()
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()
425 Color.RED, Color.RED, Color.RED, Color.RED); in testWindowProducerCropTopLeft()
[all …]
/cts/tests/tests/text/src/android/text/style/cts/
DQuoteSpanTest.java49 QuoteSpan span = new QuoteSpan(Color.RED); in testConstructorFromColor()
52 assertEquals(Color.RED, span.getColor()); in testConstructorFromColor()
59 QuoteSpan span = new QuoteSpan(Color.RED, 10, 5); in testConstructorFromColorStripeWidthGapWidth()
61 assertEquals(Color.RED, span.getColor()); in testConstructorFromColorStripeWidthGapWidth()
68 QuoteSpan quoteSpan = new QuoteSpan(Color.RED, 10, 5); in testConstructorFromParcel()
76 assertEquals(Color.RED, span.getColor()); in testConstructorFromParcel()
119 QuoteSpan quoteSpan = new QuoteSpan(Color.RED); in testDescribeContents()
125 QuoteSpan quoteSpan = new QuoteSpan(Color.RED); in testGetSpanTypeId()
133 QuoteSpan quoteSpan = new QuoteSpan(Color.RED); in testWriteToParcel()
137 assertEquals(Color.RED, q.getColor()); in testWriteToParcel()
DBulletSpanTest.java62 BulletSpan bulletSpan = new BulletSpan(2, Color.RED); in testConstructorFromGapWidthColor()
65 assertEquals(Color.RED, bulletSpan.getColor()); in testConstructorFromGapWidthColor()
72 BulletSpan bulletSpan = new BulletSpan(2, Color.RED, 10); in testConstructorFromGapWidthColorBulletRadius()
74 assertEquals(Color.RED, bulletSpan.getColor()); in testConstructorFromGapWidthColorBulletRadius()
137 BulletSpan bulletSpan = new BulletSpan(2, Color.RED, 5); in testWriteToParcel()
143 assertEquals(Color.RED, b.getColor()); in testWriteToParcel()
DBackgroundColorSpanTest.java80 BackgroundColorSpan backgroundColorSpan = new BackgroundColorSpan(Color.RED); in testDescribeContents()
86 BackgroundColorSpan backgroundColorSpan = new BackgroundColorSpan(Color.RED); in testGetSpanTypeId()
94 BackgroundColorSpan backgroundColorSpan = new BackgroundColorSpan(Color.RED); in testWriteToParcel()
98 assertEquals(Color.RED, b.getBackgroundColor()); in testWriteToParcel()
DForegroundColorSpanTest.java82 ForegroundColorSpan foregroundColorSpan = new ForegroundColorSpan(Color.RED); in testDescribeContents()
88 ForegroundColorSpan foregroundColorSpan = new ForegroundColorSpan(Color.RED); in testGetSpanTypeId()
96 ForegroundColorSpan foregroundColorSpan = new ForegroundColorSpan(Color.RED); in testWriteToParcel()
100 assertEquals(Color.RED, f.getForegroundColor()); in testWriteToParcel()
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/
DASurfaceControlTest.java120 private static final PixelColor RED = new PixelColor(Color.RED); field in ASurfaceControlTest
370 DEFAULT_LAYOUT_HEIGHT, Color.RED); in testSurfaceControl_fromJava()
374 new PixelChecker(Color.RED) { //10000 in testSurfaceControl_fromJava()
393 DEFAULT_LAYOUT_HEIGHT, Color.RED); in testSurfaceTransaction_fromJava()
397 new PixelChecker(Color.RED) { //10000 in testSurfaceTransaction_fromJava()
418 Color.RED); in testSurfaceControl_acquire()
421 new PixelChecker(Color.RED) { //10000 in testSurfaceControl_acquire()
437 Color.RED); in testSurfaceTransaction_setBuffer()
440 new PixelChecker(Color.RED) { //10000 in testSurfaceTransaction_setBuffer()
456 Color.RED); in testSurfaceTransaction_setNullBuffer()
[all …]
DSurfaceControlTest.java112 private static final PixelColor RED = new PixelColor(Color.RED); field in SurfaceControlTest
342 Color.RED); in testSurfaceControl_acquire()
345 new PixelChecker(Color.RED) { //10000 in testSurfaceControl_acquire()
361 Color.RED); in testSurfaceTransaction_setBuffer()
364 new PixelChecker(Color.RED) { //10000 in testSurfaceTransaction_setBuffer()
384 DEFAULT_LAYOUT_HEIGHT, Color.RED); in testSurfaceTransaction_setBuffer_parentAndChild()
387 new PixelChecker(Color.RED) { //10000 in testSurfaceTransaction_setBuffer_parentAndChild()
405 DEFAULT_LAYOUT_HEIGHT, Color.RED); in testSurfaceTransaction_setBuffer_childOnly()
408 new PixelChecker(Color.RED) { //10000 in testSurfaceTransaction_setBuffer_childOnly()
425 Color.RED); in testSurfaceTransaction_setVisibility_show()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmapShaderTest.java49 private static final int CENTER_COLOR = Color.RED;
119 bitmap.setPixel(0, 0, Color.RED); in testClamp()
134 Assert.assertArrayEquals(new int[] { Color.RED, Color.BLUE, Color.BLUE, Color.BLUE }, in testClamp()
142 bitmap.setPixel(0, 0, Color.RED); in testRepeat()
157 Assert.assertArrayEquals(new int[] { Color.RED, Color.BLUE, Color.RED, Color.BLUE }, in testRepeat()
165 bitmap.setPixel(0, 0, Color.RED); in testMirror()
180 Assert.assertArrayEquals(new int[] { Color.RED, Color.BLUE, Color.BLUE, Color.RED }, in testMirror()
188 bitmap.setPixel(0, 0, Color.RED); in testFiltering()
191 bitmap.setPixel(1, 1, Color.RED); in testFiltering()
210 ColorUtils.verifyColor("expected solid red color", Color.RED, dstBitmap.getPixel(0, 0), 0); in testFiltering()
[all …]
DPorterDuffXfermodeTest.java45 b1.eraseColor(Color.RED); in testPorterDuffXfermode()
54 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4)); in testPorterDuffXfermode()
63 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4)); in testPorterDuffXfermode()
64 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT * 3 / 4)); in testPorterDuffXfermode()
72 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4)); in testPorterDuffXfermode()
DColorTest.java361 assertEquals(0xff, Color.alpha(Color.RED)); in testAlpha()
367 assertEquals(Color.RED, Color.argb(0xff, 0xff, 0x00, 0x00)); in testArgb()
369 assertEquals(Color.RED, Color.argb(1.0f, 1.0f, 0.0f, 0.0f)); in testArgb()
375 assertEquals(0x00, Color.blue(Color.RED)); in testBlue()
381 assertEquals(0x00, Color.green(Color.RED)); in testGreen()
395 Color.colorToHSV(Color.RED, hsv); in testHSVToColor()
396 assertEquals(Color.RED, Color.HSVToColor(hsv)); in testHSVToColor()
402 Color.colorToHSV(Color.RED, hsv); in testHSVToColorWithAlpha()
403 assertEquals(Color.RED, Color.HSVToColor(0xff, hsv)); in testHSVToColorWithAlpha()
414 assertEquals(Color.RED, Color.parseColor("#ff0000")); in testParseColor()
[all …]
DPorterDuffColorFilterTest.java44 b1.eraseColor(Color.RED); in testPorterDuffColorFilter()
58 assertEquals(Color.RED, target.getPixel(width / 4, height / 4)); in testPorterDuffColorFilter()
71 assertEquals(Color.RED, target.getPixel(width / 4, height / 4)); in testPorterDuffColorFilter()
81 assertEquals(Color.RED, target.getPixel(width / 4, height / 4)); in testPorterDuffColorFilter()
DRadialGradientTest.java49 Color.RED, Color.BLUE, TileMode.CLAMP); in testZeroScaleMatrix()
205 new RadialGradient(0.5f, 0.5f, 1, -1L, Color.pack(Color.RED), TileMode.CLAMP); in testInvalidColorLong()
210 new RadialGradient(0.5f, 0.5f, 1, Color.pack(Color.RED), -1L, TileMode.CLAMP); in testInvalidColorLong2()
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()
/cts/tests/tests/uirendering27/src/android/uirendering/cts/testclasses/
DBitmapBlendModeTest.java51 int[] colors = {Color.WHITE, Color.WHITE, Color.WHITE, Color.WHITE, Color.RED}; in testClearBlendMode()
54 Color.BLUE, Color.RED); in testClearBlendMode()
65 int[] colors = {Color.WHITE, Color.WHITE, Color.WHITE, Color.WHITE, Color.RED}; in testDstOutBlendMode()
68 Color.BLUE, Color.RED); in testDstOutBlendMode()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAdaptiveIconDrawableTest.java89 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()
140 ColorDrawable drawable = new ColorDrawable(Color.RED); in testGetAlpha()
148 ColorDrawable drawable = new ColorDrawable(Color.RED); in testGetMonochrome()
168 Drawable foregroundDrawable = new ColorDrawable(Color.RED); in testDrawWithoutSetBounds()
238 new ColorDrawable(Color.RED), new ColorDrawable(Color.BLUE)); in testSetVisible()
247 new ColorDrawable(Color.RED), new ColorDrawable(Color.BLUE)); in testSetAlpha()
[all …]
DRippleDrawableTest.java61 new RippleDrawable(ColorStateList.valueOf(Color.RED), null, null); in testConstructor()
67 new RippleDrawable(ColorStateList.valueOf(Color.RED), null, null); in testAccessRadius()
94 new RippleDrawable(ColorStateList.valueOf(Color.RED), null, null); in testEffectColor()
148 RippleDrawable dr = new RippleDrawable(ColorStateList.valueOf(Color.RED), null, null); in testSetColor()
157 RippleDrawable dr = new RippleDrawable(ColorStateList.valueOf(Color.RED), null, null); in testWindowFocusChanged()
/cts/tests/tests/content/src/android/content/res/cts/
DColorStateListTest.java53 final int[] colors = new int[]{Color.RED, Color.BLUE}; in testConstructor()
56 assertEquals(Color.RED, c.getDefaultColor()); in testConstructor()
106 final int[] colors = new int[]{Color.RED, Color.BLUE}; in testWithAlpha()
110 assertNotSame(Color.RED, c1.getDefaultColor()); in testWithAlpha()
112 assertEquals(Color.RED & 0x00FF0000, c1.getDefaultColor() & 0x00FF0000); in testWithAlpha()
119 final int[] colors = new int[]{Color.RED, Color.BLUE}; in testWithLStar()
123 assertNotSame(Color.RED, c1.getDefaultColor()); in testWithLStar()

12345678