Home
last modified time | relevance | path

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

123

/cts/tests/tests/graphics/src/android/graphics/cts/
DColorTest.java24 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 …]
DPorterDuffXfermodeTest.java38 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()
DPorterDuffColorFilterTest.java35 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()
DColorMatrixColorFilterTest.java54 paint.setColor(Color.RED); in testColorMatrixColorFilter()
56 assertColor(Color.RED, bitmap.getPixel(0, 0)); in testColorMatrixColorFilter()
70 paint.setColor(Color.RED); in testColorMatrixColorFilter()
DBlurMaskFilterTest.java41 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()
DPaintFlagsDrawFilterTest.java58 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()
DAvoidXfermodeTest.java45 redAvoidingGreenPaint.setColor(Color.RED); in testAvoidXfermode()
64 assertEquals(Color.RED, b.getPixel(BASE_SIZE + BASE_SIZE / 2, BASE_SIZE / 2)); in testAvoidXfermode()
DPathDashPathEffectTest.java47 p.setColor(Color.RED); in testPathDashPathEffect()
54 p.setColor(Color.RED); in testPathDashPathEffect()
DSweepGradientTest.java53 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()
DLinearGradientTest.java34 int[] color = { Color.BLUE, Color.GREEN, Color.RED }; in testLinearGradient()
53 lg = new LinearGradient(0, 0, 0, 40, Color.RED, Color.BLUE, TileMode.CLAMP); in testLinearGradient()
/cts/tests/tests/animation/src/android/animation/cts/
DArgbEvaluatorTest.java25 final int RED = 0xffFF8080; in testEvaluate() local
27 int aRED = Color.alpha(RED); in testEvaluate()
28 int rRED = Color.red(RED); in testEvaluate()
29 int gRED = Color.green(RED); in testEvaluate()
30 int bRED = Color.blue(RED); in testEvaluate()
40 result = (Integer) evaluator.evaluate(0.5f, RED, BLUE); in testEvaluate()
DObjectAnimatorTest.java88 int startColor = mActivity.view.RED; in testOfInt()
114 int startColor = mActivity.view.RED; in testOfObject()
140 int startColor = mActivity.view.RED; in testOfPropertyValuesHolder()
167 int startColor = mActivity.view.RED; in testGetPropertyName()
201 int startColor = mActivity.view.RED; in testGetTarget()
/cts/tests/tests/text/src/android/text/style/cts/
DQuoteSpanTest.java31 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()
DForegroundColorSpanTest.java71 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()
DBackgroundColorSpanTest.java69 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()
DClickableSpanTest.java32 tp.linkColor = Color.RED; in testUpdateDrawState()
37 assertEquals(Color.RED, tp.getColor()); in testUpdateDrawState()
DBulletSpanTest.java34 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/content/src/android/content/res/cts/
DColorStateListTest.java36 final int[] colors = new int[] { Color.RED, Color.BLUE }; in testColorStateList()
39 assertEquals(Color.RED, c.getDefaultColor()); in testColorStateList()
43 assertNotSame(Color.RED, c1.getDefaultColor()); in testColorStateList()
46 assertEquals(Color.RED & 0x00FF0000, c1.getDefaultColor() & 0x00FF0000); in testColorStateList()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DRippleDrawableTest.java28 new RippleDrawable(ColorStateList.valueOf(Color.RED), null, null); in testConstructor()
33 new RippleDrawable(ColorStateList.valueOf(Color.RED), null, null); in testAccessRadius()
/cts/tests/tests/telecom/src/android/telecom/cts/
DPhoneAccountOperationsTest.java47 .setHighlightColor(Color.RED)
58 .setHighlightColor(Color.RED)
70 .setHighlightColor(Color.RED)
137 .setHighlightColor(Color.RED) in testRegisterPhoneAccount_DisallowEnable()
/cts/tests/tests/openglperf/src/android/openglperf/cts/
DTextureTestRenderer.java72 Color.RED, Color.RED, Color.BLUE, Color.BLUE, in TextureTestRenderer()
73 Color.RED, Color.RED, Color.BLUE, Color.BLUE, in TextureTestRenderer()
/cts/tests/tests/uirendering/src/android/uirendering/cts/differencevisualizers/
DPassFailVisualizer.java36 output[y] = Color.RED; in getDifferences()
/cts/tests/tests/widget/src/android/widget/cts/
DSwitchTest.java58 ColorStateList colors = ColorStateList.valueOf(Color.RED); in testAccessThumbTint()
73 ColorStateList colors = ColorStateList.valueOf(Color.RED); in testAccessTrackTint()
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/
DBitmapVerifier.java26 protected static final int FAIL_COLOR = Color.RED;
/cts/tests/tests/media/src/android/media/cts/
DFaceView.java50 mPInnerBullsEye.setColor(Color.RED); in FaceView()
53 mPOuterBullsEye.setColor(Color.RED); in FaceView()

123