Home
last modified time | relevance | path

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

123456

/cts/tests/tests/view/src/android/view/cts/
DASurfaceControlTest.java392 PixelColor.RED); in testSurfaceTransaction_setBuffer()
395 new PixelChecker(PixelColor.RED) { //10000 in testSurfaceTransaction_setBuffer()
415 DEFAULT_LAYOUT_HEIGHT, PixelColor.RED); in testSurfaceTransaction_setBuffer_parentAndChild()
418 new PixelChecker(PixelColor.RED) { //10000 in testSurfaceTransaction_setBuffer_parentAndChild()
436 DEFAULT_LAYOUT_HEIGHT, PixelColor.RED); in testSurfaceTransaction_setBuffer_childOnly()
439 new PixelChecker(PixelColor.RED) { //10000 in testSurfaceTransaction_setBuffer_childOnly()
456 PixelColor.RED); in testSurfaceTransaction_setVisibility_show()
460 new PixelChecker(PixelColor.RED) { //10000 in testSurfaceTransaction_setVisibility_show()
477 PixelColor.RED); in testSurfaceTransaction_setVisibility_hide()
498 PixelColor.RED); in testSurfaceTransaction_setBufferOpaque_opaque()
[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.java193 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testGlProducerFullsize()
203 Color.RED, Color.RED, Color.RED, Color.RED); in testGlProducerCropTopLeft()
213 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testGlProducerCropCenter()
249 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testGlProducerScaling()
264 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testReuseBitmap()
272 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testReuseBitmap()
301 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testWindowProducer()
315 Color.RED, Color.RED, Color.RED, Color.RED); in testWindowProducerCropTopLeft()
328 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testWindowProducerCropCenter()
360 Color.RED, Color.GREEN, Color.BLUE, Color.BLACK); in testWindowProducerScaling()
[all …]
/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()
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()
DCanvasTests.java91 Color.RED, in testDrawDoubleRoundRect()
92 Color.RED, in testDrawDoubleRoundRect()
93 Color.RED, in testDrawDoubleRoundRect()
94 Color.RED in testDrawDoubleRoundRect()
102 paint.setColor(Color.RED); in testDrawDoubleRoundRect()
128 Color.RED, in testDrawDoubleRoundRectWithRadii()
132 Color.RED, in testDrawDoubleRoundRectWithRadii()
133 Color.RED, in testDrawDoubleRoundRectWithRadii()
134 Color.RED, in testDrawDoubleRoundRectWithRadii()
135 Color.RED in testDrawDoubleRoundRectWithRadii()
[all …]
DCanvasStateTests.java134 bitmap.eraseColor(Color.RED); in testDrawScreenWideBitmap()
137 .runWithVerifier(new ColorVerifier(Color.RED, 0)); in testDrawScreenWideBitmap()
153 bitmap.eraseColor(Color.RED); in testDrawLargeBitmap()
156 .runWithVerifier(new ColorVerifier(Color.RED, 0)); in testDrawLargeBitmap()
/cts/tests/tests/graphics/src/android/graphics/cts/
DColorTest.java145 assertEquals(0xff, Color.alpha(Color.RED)); in testAlpha()
151 assertEquals(Color.RED, Color.argb(0xff, 0xff, 0x00, 0x00)); in testArgb()
153 assertEquals(Color.RED, Color.argb(1.0f, 1.0f, 0.0f, 0.0f)); in testArgb()
159 assertEquals(0x00, Color.blue(Color.RED)); in testBlue()
165 assertEquals(0x00, Color.green(Color.RED)); in testGreen()
179 Color.colorToHSV(Color.RED, hsv); in testHSVToColor()
180 assertEquals(Color.RED, Color.HSVToColor(hsv)); in testHSVToColor()
186 Color.colorToHSV(Color.RED, hsv); in testHSVToColorWithAlpha()
187 assertEquals(Color.RED, Color.HSVToColor(0xff, hsv)); in testHSVToColorWithAlpha()
198 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()
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()
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()
/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/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/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/hardware/src/android/hardware/lights/cts/
DLightsManagerTest.java48 private static final @ColorInt int RED = 0xffff0000; field in LightsManagerTest
93 .setLight(mLights.get(0), new LightState(RED)) in testControlSingleLight()
97 assertThat(mManager.getLightState(mLights.get(0)).getColor()).isEqualTo(RED); in testControlSingleLight()
152 session2.setLights(new Builder().setLight(mLights.get(0), new LightState(RED)).build()); in testControlLights_firstCallerWinsContention()
159 assertThat(mManager.getLightState(mLights.get(0)).getColor()).isEqualTo(RED); in testControlLights_firstCallerWinsContention()
174 session.setLights(new Builder().setLight(mLights.get(0), new LightState(RED)).build()); in testClearLight()
/cts/tests/tests/content/src/android/content/res/cts/
DColorStateListTest.java40 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/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 …]
DLinearLayoutTest.java659 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/framework/base/windowmanager/src/android/server/wm/
DSurfaceControlTest.java124 return buildDefaultSurface(parent, Color.RED); in buildDefaultRedSurface()
143 new RectChecker(new Rect(0, 0, 100, 100), PixelColor.RED)); in testShow()
207 new RectChecker(new Rect(0, 0, 100, 100), PixelColor.RED)); in testReparentOn()
254 new RectChecker.Target(new Rect(0, 0, 50, 50), PixelColor.RED), in testSetGeometry_dstBoundsOffScreen()
278 new RectChecker.Target(new Rect(50, 50, 150, 150), PixelColor.RED))); in testSetGeometry_dstBoundsOnScreen()
302 new RectChecker.Target(new Rect(0, 0, 200, 200), PixelColor.RED))); in testSetGeometry_dstBoundsScaled()

123456