Home
last modified time | relevance | path

Searched refs:getPaint (Results 1 – 13 of 13) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DBitmapDrawableTest.java63 assertNotNull(bitmapDrawable.getPaint()); in testConstructor()
65 bitmapDrawable.getPaint().getFlags()); in testConstructor()
70 assertNotNull(bitmapDrawable.getPaint()); in testConstructor()
72 bitmapDrawable.getPaint().getFlags()); in testConstructor()
115 assertFalse(bitmapDrawable.getPaint().isAntiAlias()); in testSetAntiAlias()
118 assertTrue(bitmapDrawable.getPaint().isAntiAlias()); in testSetAntiAlias()
121 assertFalse(bitmapDrawable.getPaint().isAntiAlias()); in testSetAntiAlias()
128 assertTrue(bitmapDrawable.getPaint().isFilterBitmap()); in testSetFilterBitmap()
131 assertFalse(bitmapDrawable.getPaint().isFilterBitmap()); in testSetFilterBitmap()
134 assertTrue(bitmapDrawable.getPaint().isFilterBitmap()); in testSetFilterBitmap()
[all …]
DRotateDrawableTest.java72 assertEquals(100, ((BitmapDrawable) mRotateDrawable.getDrawable()).getPaint().getAlpha()); in testSetAlpha()
75 assertEquals(255, ((BitmapDrawable) mRotateDrawable.getDrawable()).getPaint().getAlpha()); in testSetAlpha()
82 ((BitmapDrawable) mRotateDrawable.getDrawable()).getPaint().getColorFilter()); in testSetColorFilter()
85 assertNull(((BitmapDrawable) mRotateDrawable.getDrawable()).getPaint().getColorFilter()); in testSetColorFilter()
218 assertEquals(100, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate()
219 assertEquals(100, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate()
220 assertEquals(100, ((BitmapDrawable) d3.getDrawable()).getPaint().getAlpha()); in testMutate()
224 assertEquals(200, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate()
225 assertEquals(100, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate()
226 assertEquals(100, ((BitmapDrawable) d3.getDrawable()).getPaint().getAlpha()); in testMutate()
[all …]
DNinePatchDrawableTest.java159 assertEquals(0xff, mNinePatchDrawable.getPaint().getAlpha()); in testSetAlpha()
162 assertEquals(0, mNinePatchDrawable.getPaint().getAlpha()); in testSetAlpha()
165 assertEquals(0xff, mNinePatchDrawable.getPaint().getAlpha()); in testSetAlpha()
168 assertEquals(0xfe, mNinePatchDrawable.getPaint().getAlpha()); in testSetAlpha()
172 assertNull(mNinePatchDrawable.getPaint().getColorFilter()); in testSetColorFilter()
176 assertSame(cf, mNinePatchDrawable.getPaint().getColorFilter()); in testSetColorFilter()
179 assertNull(mNinePatchDrawable.getPaint().getColorFilter()); in testSetColorFilter()
194 assertFalse(mNinePatchDrawable.getPaint().isDither()); in testSetDither()
197 assertTrue(mNinePatchDrawable.getPaint().isDither()); in testSetDither()
202 assertFalse(mNinePatchDrawable.getPaint().isFilterBitmap()); in testSetFilterBitmap()
[all …]
DShapeDrawableTest.java124 assertEquals(255, shapeDrawable.getPaint().getAlpha()); in testGetOpacity()
127 shapeDrawable.getPaint().setAlpha(0); in testGetOpacity()
130 shapeDrawable.getPaint().setAlpha(128); in testGetOpacity()
180 assertNotNull(shapeDrawable.getPaint()); in testGetPaint()
182 | Paint.EMBEDDED_BITMAP_TEXT_FLAG, shapeDrawable.getPaint().getFlags()); in testGetPaint()
312 assertSame(cf, shapeDrawable.getPaint().getColorFilter()); in testSetColorFilter()
315 assertNull(shapeDrawable.getPaint().getColorFilter()); in testSetColorFilter()
329 assertTrue(shapeDrawable.getPaint().isDither()); in testSetDither()
332 assertFalse(shapeDrawable.getPaint().isDither()); in testSetDither()
DScaleDrawableTest.java452 assertEquals(100, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate()
453 assertEquals(100, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate()
454 assertEquals(100, ((BitmapDrawable) d3.getDrawable()).getPaint().getAlpha()); in testMutate()
458 assertEquals(200, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate()
459 assertEquals(100, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate()
460 assertEquals(100, ((BitmapDrawable) d3.getDrawable()).getPaint().getAlpha()); in testMutate()
463 assertEquals(200, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate()
464 assertEquals(50, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate()
465 assertEquals(50, ((BitmapDrawable) d3.getDrawable()).getPaint().getAlpha()); in testMutate()
DLayerDrawableTest.java1562 assertEquals(100, ((BitmapDrawable) d1.getDrawable(0)).getPaint().getAlpha()); in testMutate()
1563 assertEquals(100, ((BitmapDrawable) d1.getDrawable(0)).getPaint().getAlpha()); in testMutate()
1564 assertEquals(100, ((BitmapDrawable) d2.getDrawable(0)).getPaint().getAlpha()); in testMutate()
1565 assertEquals(100, ((BitmapDrawable) d2.getDrawable(0)).getPaint().getAlpha()); in testMutate()
1566 assertEquals(100, ((BitmapDrawable) d3.getDrawable(0)).getPaint().getAlpha()); in testMutate()
1567 assertEquals(100, ((BitmapDrawable) d2.getDrawable(0)).getPaint().getAlpha()); in testMutate()
1571 assertEquals(200, ((BitmapDrawable) d1.getDrawable(0)).getPaint().getAlpha()); in testMutate()
1572 assertEquals(200, ((BitmapDrawable) d1.getDrawable(0)).getPaint().getAlpha()); in testMutate()
1573 assertEquals(100, ((BitmapDrawable) d2.getDrawable(0)).getPaint().getAlpha()); in testMutate()
1574 assertEquals(100, ((BitmapDrawable) d2.getDrawable(0)).getPaint().getAlpha()); in testMutate()
[all …]
DStateListDrawableTest.java236 assertEquals(100, ((BitmapDrawable) d1.getCurrent()).getPaint().getAlpha()); in testMutate()
237 assertEquals(255, ((BitmapDrawable) d2.getCurrent()).getPaint().getAlpha()); in testMutate()
238 assertEquals(255, ((BitmapDrawable) d3.getCurrent()).getPaint().getAlpha()); in testMutate()
/cts/tests/tests/animation/src/android/animation/cts/
DShapeHolder.java40 public Paint getPaint() { in getPaint() method in ShapeHolder
73 mShape.getPaint().setColor(value); in setColor()
DAnimationActivity.java250 Paint paint = drawable.getPaint(); in addBall()
/cts/tests/tests/text/src/android/text/method/cts/
DTouchTest.java65 TextPaint paint = tv.getPaint(); in testScrollTo()
113 TextPaint paint = tv.getPaint(); in testOnTouchEvent()
/cts/tests/tests/text/src/android/text/cts/
DLayoutTest.java79 assertSame(mTextPaint, layout.getPaint()); in testGetPaint()
82 assertNull(layout.getPaint()); in testGetPaint()
DStaticLayoutTest.java125 assertEquals(mDefaultPaint, layout.getPaint()); in testBuilder()
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewTest.java562 TextPaint tp = mTextView.getPaint(); in testGetPaint()
634 assertEquals(Color.GRAY, mTextView.getPaint().linkColor); in testAccessLinkTextColor()
638 assertEquals(Color.YELLOW, mTextView.getPaint().linkColor); in testAccessLinkTextColor()
642 assertEquals(Color.WHITE, mTextView.getPaint().linkColor); in testAccessLinkTextColor()
649 assertEquals(Color.BLACK, mTextView.getPaint().linkColor); in testAccessLinkTextColor()
653 assertEquals(Color.BLACK, mTextView.getPaint().linkColor); in testAccessLinkTextColor()
2637 mTextView.getPaint().getTextWidths(LONG_TEXT, widths);
2660 mTextView.getPaint().getTextWidths(text, widths); in calculateTextWidth()