/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | ColorTest.java | 24 assertEquals(0xff, Color.alpha(Color.RED)); in testAlpha() 30 assertEquals(Color.RED, Color.argb(0xff, 0xff, 0x00, 0x00)); in testArgb() 35 assertEquals(0x00, Color.blue(Color.RED)); in testBlue() 40 assertEquals(0x00, Color.green(Color.RED)); in testGreen() 55 Color.colorToHSV(Color.RED, hsv); in testHSVToColor1() 56 assertEquals(Color.RED, Color.HSVToColor(hsv)); in testHSVToColor1() 70 Color.colorToHSV(Color.RED, hsv); in testHSVToColor2() 71 assertEquals(Color.RED, Color.HSVToColor(0xff, hsv)); in testHSVToColor2() 83 assertEquals(Color.RED, Color.parseColor("#ff0000")); in testParseColor() 84 assertEquals(Color.RED, Color.parseColor("#ffff0000")); in testParseColor() [all …]
|
D | PorterDuffXfermodeTest.java | 38 b1.eraseColor(Color.RED); in testPorterDuffXfermode() 47 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4)); in testPorterDuffXfermode() 56 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4)); in testPorterDuffXfermode() 57 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT * 3 / 4)); in testPorterDuffXfermode() 65 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4)); in testPorterDuffXfermode()
|
D | PorterDuffColorFilterTest.java | 35 b1.eraseColor(Color.RED); in testPorterDuffColorFilter() 49 assertEquals(Color.RED, target.getPixel(width / 4, height / 4)); in testPorterDuffColorFilter() 62 assertEquals(Color.RED, target.getPixel(width / 4, height / 4)); in testPorterDuffColorFilter() 72 assertEquals(Color.RED, target.getPixel(width / 4, height / 4)); in testPorterDuffColorFilter()
|
D | BlurMaskFilterTest.java | 41 paint.setColor(Color.RED); in testBlurMaskFilter() 53 checkQuadrants(Color.RED, b, x, y, 5); in testBlurMaskFilter() 56 checkQuadrants(Color.RED, b, x, y, 255); in testBlurMaskFilter()
|
D | ColorMatrixColorFilterTest.java | 54 paint.setColor(Color.RED); in testColorMatrixColorFilter() 56 assertColor(Color.RED, bitmap.getPixel(0, 0)); in testColorMatrixColorFilter() 70 paint.setColor(Color.RED); in testColorMatrixColorFilter()
|
D | PaintFlagsDrawFilterTest.java | 58 p.setColor(Color.RED); in drawText() 80 assertEquals(Color.RED, pixelWithoutFilter); in delta() 82 combinedBitmap.setPixel(i, j, Color.RED); in delta() 95 if (pixel == Color.RED) { in assertUnderline()
|
D | SweepGradientTest.java | 53 final int[] colors = new int[] { Color.GREEN, Color.RED }; in test2Colors() 62 final int[] colors = new int[] { Color.GREEN, Color.RED, Color.BLUE }; in testColorArray() 72 final int[] colors = new int[] { Color.GREEN, Color.RED, Color.BLUE, Color.GREEN }; in testMultiColor()
|
D | PathDashPathEffectTest.java | 47 p.setColor(Color.RED); in testPathDashPathEffect() 54 p.setColor(Color.RED); in testPathDashPathEffect()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ViewOverlayTest.java | 74 final Drawable redDrawable = new ColorDrawable(Color.RED); in testOverlayWithOneDrawable() 79 colorRectangles.add(new Pair<>(new Rect(20, 30, 40, 50), Color.RED)); in testOverlayWithOneDrawable() 90 final Drawable redDrawable = new ColorDrawable(Color.RED); in testAddTheSameDrawableTwice() 100 colorRectangles.add(new Pair<>(new Rect(20, 30, 40, 50), Color.RED)); in testAddTheSameDrawableTwice() 112 final Drawable redDrawable = new ColorDrawable(Color.RED); in testRemoveTheSameDrawableTwice() 117 colorRectangles.add(new Pair<>(new Rect(20, 30, 40, 50), Color.RED)); in testRemoveTheSameDrawableTwice() 134 final Drawable redDrawable = new ColorDrawable(Color.RED); in testOverlayWithNonOverlappingDrawables() 149 colorRectangles.add(new Pair<>(new Rect(10, 20, 30, 40), Color.RED)); in testOverlayWithNonOverlappingDrawables() 158 colorRectangles.add(new Pair<>(new Rect(10, 20, 30, 40), Color.RED)); in testOverlayWithNonOverlappingDrawables() 171 final Drawable redDrawable = new ColorDrawable(Color.RED); in testOverlayWithOverlappingDrawables() [all …]
|
D | ViewGroupOverlayTest.java | 87 redView.setBackgroundColor(Color.RED); in testOverlayWithOneView() 93 colorRectangles.add(new Pair<>(new Rect(10, 20, 30, 40), Color.RED)); in testOverlayWithOneView() 106 redView.setBackgroundColor(Color.RED); in testOverlayWithNonOverlappingViews() 123 colorRectangles.add(new Pair<>(new Rect(10, 20, 30, 40), Color.RED)); in testOverlayWithNonOverlappingViews() 132 colorRectangles.add(new Pair<>(new Rect(10, 20, 30, 40), Color.RED)); in testOverlayWithNonOverlappingViews() 147 redView.setBackgroundColor(Color.RED); in testOverlayWithNonOverlappingViewAndDrawable() 159 colorRectangles.add(new Pair<>(new Rect(10, 20, 30, 40), Color.RED)); in testOverlayWithNonOverlappingViewAndDrawable() 180 redView.setBackgroundColor(Color.RED); in testOverlayWithOverlappingViews() 195 colorRectangles.add(new Pair<>(new Rect(10, 20, 30, 40), Color.RED)); in testOverlayWithOverlappingViews() 203 colorRectangles.add(new Pair<>(new Rect(10, 20, 60, 40), Color.RED)); in testOverlayWithOverlappingViews() [all …]
|
/cts/tests/tests/text/src/android/text/style/cts/ |
D | QuoteSpanTest.java | 31 QuoteSpan q = new QuoteSpan(Color.RED); in testConstructor() 74 QuoteSpan quoteSpan = new QuoteSpan(Color.RED); in testDescribeContents() 79 QuoteSpan quoteSpan = new QuoteSpan(Color.RED); in testGetSpanTypeId() 86 QuoteSpan quoteSpan = new QuoteSpan(Color.RED); in testWriteToParcel() 90 assertEquals(Color.RED, q.getColor()); in testWriteToParcel()
|
D | BackgroundColorSpanTest.java | 69 BackgroundColorSpan backgroundColorSpan = new BackgroundColorSpan(Color.RED); in testDescribeContents() 74 BackgroundColorSpan backgroundColorSpan = new BackgroundColorSpan(Color.RED); in testGetSpanTypeId() 81 BackgroundColorSpan backgroundColorSpan = new BackgroundColorSpan(Color.RED); in testWriteToParcel() 85 assertEquals(Color.RED, b.getBackgroundColor()); in testWriteToParcel()
|
D | ForegroundColorSpanTest.java | 71 ForegroundColorSpan foregroundColorSpan = new ForegroundColorSpan(Color.RED); in testDescribeContents() 76 ForegroundColorSpan foregroundColorSpan = new ForegroundColorSpan(Color.RED); in testGetSpanTypeId() 83 ForegroundColorSpan foregroundColorSpan = new ForegroundColorSpan(Color.RED); in testWriteToParcel() 87 assertEquals(Color.RED, f.getForegroundColor()); in testWriteToParcel()
|
D | ClickableSpanTest.java | 32 tp.linkColor = Color.RED; in testUpdateDrawState() 37 assertEquals(Color.RED, tp.getColor()); in testUpdateDrawState()
|
D | BulletSpanTest.java | 34 BulletSpan b = new BulletSpan(BulletSpan.STANDARD_GAP_WIDTH, Color.RED); in testConstructor() 102 BulletSpan bulletSpan = new BulletSpan(BulletSpan.STANDARD_GAP_WIDTH, Color.RED); in testWriteToParcel()
|
/cts/tests/tests/animation/src/android/animation/cts/ |
D | EvaluatorTest.java | 72 final int RED = 0xffFF8080; in testArgbEvaluator() local 74 int aRED = Color.alpha(RED); in testArgbEvaluator() 75 int rRED = Color.red(RED); in testArgbEvaluator() 76 int gRED = Color.green(RED); in testArgbEvaluator() 77 int bRED = Color.blue(RED); in testArgbEvaluator() 85 int result = (Integer) evaluator.evaluate(0, RED, BLUE); in testArgbEvaluator() 95 result = (Integer) evaluator.evaluate(.5f, RED, BLUE); in testArgbEvaluator() 105 result = (Integer) evaluator.evaluate(1, RED, BLUE); in testArgbEvaluator()
|
/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 | GradientDrawableTest.java | 70 gradientDrawable.setColors(new int[] { Color.RED, Color.TRANSPARENT }); in testGetOpacity() 74 gradientDrawable.setColors(new int[] { Color.RED, Color.BLUE }); in testGetOpacity() 78 gradientDrawable.setColor(Color.RED); in testGetOpacity() 83 gradientDrawable.setColor(Color.RED); in testGetOpacity() 128 helpTestSetStroke(2, Color.RED); in testSetStroke() 141 helpTestSetStroke_WidthGap(2, Color.RED, 3.4f, 5.5f); in testSetStroke_WidthGap() 155 helpTestSetStrokeList(2, ColorStateList.valueOf(Color.RED)); in testSetStrokeList() 169 helpTestSetStrokeList_WidthGap(2, ColorStateList.valueOf(Color.RED), 3.4f, 5.5f); in testSetStrokeList_WidthGap() 293 color = Color.RED; in testSetColor() 309 colors = new int[] { Color.RED }; in testSetColors() [all …]
|
D | RippleDrawableTest.java | 39 new RippleDrawable(ColorStateList.valueOf(Color.RED), null, null); in testConstructor() 44 new RippleDrawable(ColorStateList.valueOf(Color.RED), null, null); in testAccessRadius() 106 RippleDrawable dr = new RippleDrawable(ColorStateList.valueOf(Color.RED), null, null); in testSetColor()
|
/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/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()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | SwitchTest.java | 66 ColorStateList colors = ColorStateList.valueOf(Color.RED); in testAccessThumbTint() 79 ColorStateList colors = ColorStateList.valueOf(Color.RED); in testAccessTrackTint()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/differencevisualizers/ |
D | PassFailVisualizer.java | 36 output[y] = Color.RED; in getDifferences()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/ |
D | BitmapVerifier.java | 26 protected static final int FAIL_COLOR = Color.RED;
|
/cts/tests/tests/media/src/android/media/cts/ |
D | FaceView.java | 50 mPInnerBullsEye.setColor(Color.RED); in FaceView() 53 mPOuterBullsEye.setColor(Color.RED); in FaceView()
|