Home
last modified time | relevance | path

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

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DBitmapDrawableTest.java79 assertNotNull(bitmapDrawable.getPaint()); in testConstructor()
81 bitmapDrawable.getPaint().getFlags()); in testConstructor()
86 assertNotNull(bitmapDrawable.getPaint()); in testConstructor()
88 bitmapDrawable.getPaint().getFlags()); in testConstructor()
142 assertFalse(bitmapDrawable.getPaint().isAntiAlias()); in testSetAntiAlias()
145 assertTrue(bitmapDrawable.getPaint().isAntiAlias()); in testSetAntiAlias()
148 assertFalse(bitmapDrawable.getPaint().isAntiAlias()); in testSetAntiAlias()
155 assertTrue(bitmapDrawable.getPaint().isFilterBitmap()); in testSetFilterBitmap()
158 assertFalse(bitmapDrawable.getPaint().isFilterBitmap()); in testSetFilterBitmap()
161 assertTrue(bitmapDrawable.getPaint().isFilterBitmap()); in testSetFilterBitmap()
[all …]
DRotateDrawableTest.java126 assertEquals(100, ((BitmapDrawable) mRotateDrawable.getDrawable()).getPaint().getAlpha()); in testSetAlpha()
129 assertEquals(255, ((BitmapDrawable) mRotateDrawable.getDrawable()).getPaint().getAlpha()); in testSetAlpha()
136 ((BitmapDrawable) mRotateDrawable.getDrawable()).getPaint().getColorFilter()); in testSetColorFilter()
139 assertNull(((BitmapDrawable) mRotateDrawable.getDrawable()).getPaint().getColorFilter()); in testSetColorFilter()
272 assertEquals(100, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate()
273 assertEquals(100, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate()
274 assertEquals(100, ((BitmapDrawable) d3.getDrawable()).getPaint().getAlpha()); in testMutate()
278 assertEquals(200, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate()
279 assertEquals(100, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate()
280 assertEquals(100, ((BitmapDrawable) d3.getDrawable()).getPaint().getAlpha()); in testMutate()
[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()
DNinePatchDrawableTest.java175 assertEquals(0xff, mNinePatchDrawable.getPaint().getAlpha()); in testSetAlpha()
178 assertEquals(0, mNinePatchDrawable.getPaint().getAlpha()); in testSetAlpha()
181 assertEquals(0xff, mNinePatchDrawable.getPaint().getAlpha()); in testSetAlpha()
184 assertEquals(0xfe, mNinePatchDrawable.getPaint().getAlpha()); in testSetAlpha()
188 assertNull(mNinePatchDrawable.getPaint().getColorFilter()); in testSetColorFilter()
192 assertSame(cf, mNinePatchDrawable.getPaint().getColorFilter()); in testSetColorFilter()
195 assertNull(mNinePatchDrawable.getPaint().getColorFilter()); in testSetColorFilter()
210 assertFalse(mNinePatchDrawable.getPaint().isDither()); in testSetDither()
213 assertTrue(mNinePatchDrawable.getPaint().isDither()); in testSetDither()
218 assertFalse(mNinePatchDrawable.getPaint().isFilterBitmap()); in testSetFilterBitmap()
[all …]
DScaleDrawableTest.java475 assertEquals(100, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate()
476 assertEquals(100, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate()
477 assertEquals(100, ((BitmapDrawable) d3.getDrawable()).getPaint().getAlpha()); in testMutate()
481 assertEquals(200, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate()
482 assertEquals(100, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate()
483 assertEquals(100, ((BitmapDrawable) d3.getDrawable()).getPaint().getAlpha()); in testMutate()
486 assertEquals(200, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate()
487 assertEquals(50, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate()
488 assertEquals(50, ((BitmapDrawable) d3.getDrawable()).getPaint().getAlpha()); in testMutate()
DLayerDrawableTest.java1665 assertEquals(100, ((BitmapDrawable) d1.getDrawable(0)).getPaint().getAlpha()); in testMutate()
1666 assertEquals(100, ((BitmapDrawable) d1.getDrawable(0)).getPaint().getAlpha()); in testMutate()
1667 assertEquals(100, ((BitmapDrawable) d2.getDrawable(0)).getPaint().getAlpha()); in testMutate()
1668 assertEquals(100, ((BitmapDrawable) d2.getDrawable(0)).getPaint().getAlpha()); in testMutate()
1669 assertEquals(100, ((BitmapDrawable) d3.getDrawable(0)).getPaint().getAlpha()); in testMutate()
1670 assertEquals(100, ((BitmapDrawable) d2.getDrawable(0)).getPaint().getAlpha()); in testMutate()
1674 assertEquals(200, ((BitmapDrawable) d1.getDrawable(0)).getPaint().getAlpha()); in testMutate()
1675 assertEquals(200, ((BitmapDrawable) d1.getDrawable(0)).getPaint().getAlpha()); in testMutate()
1676 assertEquals(100, ((BitmapDrawable) d2.getDrawable(0)).getPaint().getAlpha()); in testMutate()
1677 assertEquals(100, ((BitmapDrawable) d2.getDrawable(0)).getPaint().getAlpha()); in testMutate()
[all …]
DStateListDrawableTest.java312 assertEquals(100, ((BitmapDrawable) d1.getCurrent()).getPaint().getAlpha()); in testMutate()
313 assertEquals(255, ((BitmapDrawable) d2.getCurrent()).getPaint().getAlpha()); in testMutate()
314 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.java67 TextPaint paint = tv.getPaint(); in testScrollTo()
116 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.java133 assertEquals(mDefaultPaint, layout.getPaint()); in testBuilder()
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewTest.java570 TextPaint tp = mTextView.getPaint(); in testGetPaint()
642 assertEquals(Color.GRAY, mTextView.getPaint().linkColor); in testAccessLinkTextColor()
646 assertEquals(Color.YELLOW, mTextView.getPaint().linkColor); in testAccessLinkTextColor()
650 assertEquals(Color.WHITE, mTextView.getPaint().linkColor); in testAccessLinkTextColor()
657 assertEquals(Color.BLACK, mTextView.getPaint().linkColor); in testAccessLinkTextColor()
661 assertEquals(Color.BLACK, mTextView.getPaint().linkColor); in testAccessLinkTextColor()
832 assertFalse(mTextView.getPaint().isElegantTextHeight()); in testSetElegantLineHeight()
850 assertTrue(mTextView.getPaint().isElegantTextHeight()); in testSetElegantLineHeight()
859 assertFalse(mTextView.getPaint().isElegantTextHeight()); in testSetElegantLineHeight()
3164 mTextView.getPaint().getTextWidths(LONG_TEXT, widths);
[all …]
/cts/tools/dex-tools/dex/
Dclasses.out.dex35286 public final android.graphics.Paint getPaint()
36339 public android.graphics.Paint getPaint()
36396 public android.graphics.Paint getPaint()
75630 public final android.text.TextPaint getPaint()
93492 public android.text.TextPaint getPaint()