Home
last modified time | relevance | path

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

1234567

/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()
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()
DRenderNodeTests.java150 canvas.drawColor(Color.RED); in testAlphaOverlappingRendering()
171 canvas.drawColor(Color.RED); in testAlphaNonOverlappingRendering()
427 canvasClientPaint.setColor(Color.RED); in testOffsetImplicitInputRenderEffect()
440 new ColorVerifier(Color.RED) in testOffsetImplicitInputRenderEffect()
457 new ColorVerifier(Color.RED) in testOffsetImplicitInputRenderEffect()
465 new BlendModeColorFilter(Color.RED, BlendMode.SRC_OVER)); in testColorFilterRenderEffectImplicitInput()
481 .runWithVerifier(new ColorVerifier(Color.RED)); in testColorFilterRenderEffectImplicitInput()
490 dstBitmap.eraseColor(Color.RED); in testBlendModeRenderEffectImplicitInput()
526 new BlendModeColorFilter(Color.RED, BlendMode.SRC_OVER), bitmapEffect); in testColorFilterRenderEffect()
541 .runWithVerifier(new ColorVerifier(Color.RED)); in testColorFilterRenderEffect()
[all …]
DLayoutTests.java39 new ColorVerifier(Color.RED)); in testSimpleRedLayout()
59 Color.RED, in testTransformChildViewLayout()
/cts/tests/tests/view/src/android/view/cts/
DASurfaceControlTest.java95 private static final PixelColor RED = new PixelColor(PixelColor.RED); field in ASurfaceControlTest
325 PixelColor.RED); in testSurfaceControl_acquire()
328 new PixelChecker(PixelColor.RED) { //10000 in testSurfaceControl_acquire()
344 PixelColor.RED); in testSurfaceTransaction_setBuffer()
347 new PixelChecker(PixelColor.RED) { //10000 in testSurfaceTransaction_setBuffer()
367 DEFAULT_LAYOUT_HEIGHT, PixelColor.RED); in testSurfaceTransaction_setBuffer_parentAndChild()
370 new PixelChecker(PixelColor.RED) { //10000 in testSurfaceTransaction_setBuffer_parentAndChild()
388 DEFAULT_LAYOUT_HEIGHT, PixelColor.RED); in testSurfaceTransaction_setBuffer_childOnly()
391 new PixelChecker(PixelColor.RED) { //10000 in testSurfaceTransaction_setBuffer_childOnly()
408 PixelColor.RED); in testSurfaceTransaction_setVisibility_show()
[all …]
DViewOverlayTest.java82 final Drawable redDrawable = new ColorDrawable(Color.RED); in testOverlayWithOneDrawable()
87 colorRectangles.add(new Pair<>(new Rect(20, 30, 40, 50), Color.RED)); in testOverlayWithOneDrawable()
100 final Drawable redDrawable = new ColorDrawable(Color.RED); in testAddTheSameDrawableTwice()
107 colorRectangles.add(new Pair<>(new Rect(20, 30, 40, 50), Color.RED)); in testAddTheSameDrawableTwice()
121 final Drawable redDrawable = new ColorDrawable(Color.RED); in testRemoveTheSameDrawableTwice()
126 colorRectangles.add(new Pair<>(new Rect(20, 30, 40, 50), Color.RED)); in testRemoveTheSameDrawableTwice()
142 final Drawable redDrawable = new ColorDrawable(Color.RED); in testOverlayWithNonOverlappingDrawables()
154 colorRectangles.add(new Pair<>(new Rect(10, 20, 30, 40), Color.RED)); in testOverlayWithNonOverlappingDrawables()
163 colorRectangles.add(new Pair<>(new Rect(10, 20, 30, 40), Color.RED)); in testOverlayWithNonOverlappingDrawables()
178 final Drawable redDrawable = new ColorDrawable(Color.RED); in testOverlayWithOverlappingDrawables()
[all …]
DViewGroupOverlayTest.java101 redView.setBackgroundColor(Color.RED); in testOverlayWithOneView()
107 colorRectangles.add(new Pair<>(new Rect(10, 20, 30, 40), Color.RED)); in testOverlayWithOneView()
122 redView.setBackgroundColor(Color.RED); in testOverlayWithNonOverlappingViews()
136 colorRectangles.add(new Pair<>(new Rect(10, 20, 30, 40), Color.RED)); in testOverlayWithNonOverlappingViews()
145 colorRectangles.add(new Pair<>(new Rect(10, 20, 30, 40), Color.RED)); in testOverlayWithNonOverlappingViews()
161 redView.setBackgroundColor(Color.RED); in testOverlayWithNonOverlappingViewAndDrawable()
170 colorRectangles.add(new Pair<>(new Rect(10, 20, 30, 40), Color.RED)); in testOverlayWithNonOverlappingViewAndDrawable()
193 redView.setBackgroundColor(Color.RED); in testOverlayWithOverlappingViews()
205 colorRectangles.add(new Pair<>(new Rect(10, 20, 30, 40), Color.RED)); in testOverlayWithOverlappingViews()
213 colorRectangles.add(new Pair<>(new Rect(10, 20, 60, 40), Color.RED)); in testOverlayWithOverlappingViews()
[all …]
DPixelCopyTest.java211 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testGlProducerFullsize()
221 Color.RED, Color.RED, Color.RED, Color.RED); in testGlProducerCropTopLeft()
231 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testGlProducerCropCenter()
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()
333 Color.RED, Color.RED, Color.RED, Color.RED); in testWindowProducerCropTopLeft()
346 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testWindowProducerCropCenter()
378 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testWindowProducerScaling()
[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()
DDynamicDrawableSpanTest.java108 canvas.drawColor(Color.RED); in testCenterAligned()
114 assertThat(bitmap.getColor(0, i).toArgb()).isEqualTo(Color.RED); in testCenterAligned()
118 assertThat(bitmap.getColor(0, top + i + padding / 2).toArgb()).isNotEqualTo(Color.RED); in testCenterAligned()
123 .isEqualTo(Color.RED); in testCenterAligned()
/cts/tests/tests/graphics/src/android/graphics/cts/
DColorTest.java213 assertEquals(0xff, Color.alpha(Color.RED)); in testAlpha()
219 assertEquals(Color.RED, Color.argb(0xff, 0xff, 0x00, 0x00)); in testArgb()
221 assertEquals(Color.RED, Color.argb(1.0f, 1.0f, 0.0f, 0.0f)); in testArgb()
227 assertEquals(0x00, Color.blue(Color.RED)); in testBlue()
233 assertEquals(0x00, Color.green(Color.RED)); in testGreen()
247 Color.colorToHSV(Color.RED, hsv); in testHSVToColor()
248 assertEquals(Color.RED, Color.HSVToColor(hsv)); in testHSVToColor()
254 Color.colorToHSV(Color.RED, hsv); in testHSVToColorWithAlpha()
255 assertEquals(Color.RED, Color.HSVToColor(0xff, hsv)); in testHSVToColorWithAlpha()
266 assertEquals(Color.RED, Color.parseColor("#ff0000")); in testParseColor()
[all …]
DBitmapShaderTest.java42 private static final int CENTER_COLOR = Color.RED;
103 bitmap.setPixel(0, 0, Color.RED); in testClamp()
118 Assert.assertArrayEquals(new int[] { Color.RED, Color.BLUE, Color.BLUE, Color.BLUE }, in testClamp()
125 bitmap.setPixel(0, 0, Color.RED); in testRepeat()
140 Assert.assertArrayEquals(new int[] { Color.RED, Color.BLUE, Color.RED, Color.BLUE }, in testRepeat()
147 bitmap.setPixel(0, 0, Color.RED); in testMirror()
162 Assert.assertArrayEquals(new int[] { Color.RED, Color.BLUE, Color.BLUE, Color.RED }, in testMirror()
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()
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/content/src/android/content/res/cts/
DColorStateListTest.java35 final int[] colors = new int[]{Color.RED, Color.BLUE}; in testConstructor()
38 assertEquals(Color.RED, c.getDefaultColor()); in testConstructor()
84 final int[] colors = new int[]{Color.RED, Color.BLUE}; in testWithAlpha()
88 assertNotSame(Color.RED, c1.getDefaultColor()); in testWithAlpha()
90 assertEquals(Color.RED & 0x00FF0000, c1.getDefaultColor() & 0x00FF0000); in testWithAlpha()
96 final int[] colors = new int[]{Color.RED, Color.BLUE}; in testWithLStar()
100 assertNotSame(Color.RED, c1.getDefaultColor()); in testWithLStar()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAdaptiveIconDrawableTest.java88 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()
139 ColorDrawable drawable = new ColorDrawable(Color.RED); in testGetAlpha()
152 Drawable foregroundDrawable = new ColorDrawable(Color.RED); 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()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DSurfaceControlTest.java134 return buildDefaultSurface(parent, Color.RED); in buildDefaultRedSurface()
142 fillWithColor(surfaceControl, Color.RED); in buildSmallRedSurface()
162 new RectChecker(DEFAULT_RECT, PixelColor.RED)); in testShow()
226 new RectChecker(DEFAULT_RECT, PixelColor.RED)); in testReparentOn()
272 final PixelColor red = new PixelColor(PixelColor.RED); in testSetGeometry_dstBoundsOffScreen()
305 final PixelColor red = new PixelColor(PixelColor.RED); in testSetGeometry_dstBoundsOnScreen()
337 new RectChecker(DEFAULT_RECT, PixelColor.RED)); in testSetGeometry_dstBoundsScaled()
/cts/tests/tests/widget/src/android/widget/cts/
DAbsSeekBarTest.java322 inflatedView.setThumbTintList(ColorStateList.valueOf(Color.RED)); in testThumbTint()
324 .setTintList(TestUtils.colorStateListOf(Color.RED)); in testThumbTint()
334 .setTintList(TestUtils.colorStateListOf(Color.RED)); in testThumbTint()
354 inflatedView.setThumbTintList(ColorStateList.valueOf(Color.RED)); in testThumbTintBlendMode()
356 .setTintList(TestUtils.colorStateListOf(Color.RED)); in testThumbTintBlendMode()
366 .setTintList(TestUtils.colorStateListOf(Color.RED)); in testThumbTintBlendMode()
386 inflatedView.setTickMarkTintList(ColorStateList.valueOf(Color.RED)); in testTickMarkTint()
388 .setTintList(TestUtils.colorStateListOf(Color.RED)); in testTickMarkTint()
398 .setTintList(TestUtils.colorStateListOf(Color.RED)); in testTickMarkTint()
418 inflatedView.setTickMarkTintList(ColorStateList.valueOf(Color.RED)); in testTickMarkTintBlendMode()
[all …]

1234567