Home
last modified time | relevance | path

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

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DBitmapDrawableTest.java91 assertNotNull(bitmapDrawable.getPaint()); in testConstructor()
93 bitmapDrawable.getPaint().getFlags()); in testConstructor()
98 assertNotNull(bitmapDrawable.getPaint()); in testConstructor()
100 bitmapDrawable.getPaint().getFlags()); in testConstructor()
174 assertFalse(bitmapDrawable.getPaint().isAntiAlias()); in testSetAntiAlias()
177 assertTrue(bitmapDrawable.getPaint().isAntiAlias()); in testSetAntiAlias()
180 assertFalse(bitmapDrawable.getPaint().isAntiAlias()); in testSetAntiAlias()
188 assertTrue(bitmapDrawable.getPaint().isFilterBitmap()); in testSetFilterBitmap()
191 assertFalse(bitmapDrawable.getPaint().isFilterBitmap()); in testSetFilterBitmap()
194 assertTrue(bitmapDrawable.getPaint().isFilterBitmap()); in testSetFilterBitmap()
[all …]
DRotateDrawableTest.java155 assertEquals(100, ((BitmapDrawable) mRotateDrawable.getDrawable()).getPaint().getAlpha()); in testSetAlpha()
158 assertEquals(255, ((BitmapDrawable) mRotateDrawable.getDrawable()).getPaint().getAlpha()); in testSetAlpha()
166 ((BitmapDrawable) mRotateDrawable.getDrawable()).getPaint().getColorFilter()); in testSetColorFilter()
169 assertNull(((BitmapDrawable) mRotateDrawable.getDrawable()).getPaint().getColorFilter()); in testSetColorFilter()
301 assertEquals(100, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate()
302 assertEquals(100, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate()
303 assertEquals(100, ((BitmapDrawable) d3.getDrawable()).getPaint().getAlpha()); in testMutate()
307 assertEquals(200, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate()
308 assertEquals(100, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate()
309 assertEquals(100, ((BitmapDrawable) d3.getDrawable()).getPaint().getAlpha()); in testMutate()
[all …]
DNinePatchDrawableTest.java194 assertEquals(0xff, mNinePatchDrawable.getPaint().getAlpha()); in testSetAlpha()
197 assertEquals(0, mNinePatchDrawable.getPaint().getAlpha()); in testSetAlpha()
200 assertTrue(0 <= mNinePatchDrawable.getPaint().getAlpha() in testSetAlpha()
201 && mNinePatchDrawable.getPaint().getAlpha() <= 255); in testSetAlpha()
204 assertTrue(0 <= mNinePatchDrawable.getPaint().getAlpha() in testSetAlpha()
205 && mNinePatchDrawable.getPaint().getAlpha() <= 255); in testSetAlpha()
210 assertNull(mNinePatchDrawable.getPaint().getColorFilter()); in testSetColorFilter()
214 assertSame(cf, mNinePatchDrawable.getPaint().getColorFilter()); in testSetColorFilter()
217 assertNull(mNinePatchDrawable.getPaint().getColorFilter()); in testSetColorFilter()
242 assertFalse(mNinePatchDrawable.getPaint().isDither()); in testSetDither()
[all …]
DShapeDrawableTest.java148 assertEquals(255, shapeDrawable.getPaint().getAlpha()); in testGetOpacity()
151 shapeDrawable.getPaint().setAlpha(0); in testGetOpacity()
154 shapeDrawable.getPaint().setAlpha(128); in testGetOpacity()
206 assertNotNull(shapeDrawable.getPaint()); in testGetPaint()
208 | Paint.EMBEDDED_BITMAP_TEXT_FLAG, shapeDrawable.getPaint().getFlags()); in testGetPaint()
230 assertSame(xfermode, shapeDrawable.getPaint().getXfermode()); in testSetXfermode()
233 assertNull(shapeDrawable.getPaint().getXfermode()); in testSetXfermode()
346 assertSame(cf, shapeDrawable.getPaint().getColorFilter()); in testSetColorFilter()
349 assertNull(shapeDrawable.getPaint().getColorFilter()); in testSetColorFilter()
365 assertTrue(shapeDrawable.getPaint().isDither()); in testSetDither()
[all …]
DScaleDrawableTest.java487 assertEquals(100, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate()
488 assertEquals(100, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate()
489 assertEquals(100, ((BitmapDrawable) d3.getDrawable()).getPaint().getAlpha()); in testMutate()
493 assertEquals(200, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate()
494 assertEquals(100, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate()
495 assertEquals(100, ((BitmapDrawable) d3.getDrawable()).getPaint().getAlpha()); in testMutate()
498 assertEquals(200, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate()
499 assertEquals(50, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate()
500 assertEquals(50, ((BitmapDrawable) d3.getDrawable()).getPaint().getAlpha()); in testMutate()
DLayerDrawableTest.java1655 assertEquals(100, ((BitmapDrawable) d1.getDrawable(0)).getPaint().getAlpha()); in testMutate()
1656 assertEquals(100, ((BitmapDrawable) d1.getDrawable(0)).getPaint().getAlpha()); in testMutate()
1657 assertEquals(100, ((BitmapDrawable) d2.getDrawable(0)).getPaint().getAlpha()); in testMutate()
1658 assertEquals(100, ((BitmapDrawable) d2.getDrawable(0)).getPaint().getAlpha()); in testMutate()
1659 assertEquals(100, ((BitmapDrawable) d3.getDrawable(0)).getPaint().getAlpha()); in testMutate()
1660 assertEquals(100, ((BitmapDrawable) d2.getDrawable(0)).getPaint().getAlpha()); in testMutate()
1664 assertEquals(200, ((BitmapDrawable) d1.getDrawable(0)).getPaint().getAlpha()); in testMutate()
1665 assertEquals(200, ((BitmapDrawable) d1.getDrawable(0)).getPaint().getAlpha()); in testMutate()
1666 assertEquals(100, ((BitmapDrawable) d2.getDrawable(0)).getPaint().getAlpha()); in testMutate()
1667 assertEquals(100, ((BitmapDrawable) d2.getDrawable(0)).getPaint().getAlpha()); in testMutate()
[all …]
DStateListDrawableTest.java407 assertEquals(100, ((BitmapDrawable) d1.getCurrent()).getPaint().getAlpha()); in testMutate()
408 assertEquals(255, ((BitmapDrawable) d2.getCurrent()).getPaint().getAlpha()); in testMutate()
409 assertEquals(255, ((BitmapDrawable) d3.getCurrent()).getPaint().getAlpha()); in testMutate()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DCanvasTests.java55 private Paint getPaint() { in getPaint() method in CanvasTests
272 }, -1, 2, getPaint()); in testDrawPointsInvalidOffset()
280 }, 0, 31, getPaint()); in testDrawPointsInvalidCount()
302 new Canvas(getMutableBitmap()).drawOval(null, getPaint()); in testDrawOvalNull()
309 true, getPaint()); in testDrawArcNullOval()
315 new Canvas(getMutableBitmap()).drawRoundRect(null, 10.0f, 29.0f, getPaint()); in testDrawRoundRectNull()
324 new Canvas(getMutableBitmap()).drawBitmap(b, 10.0f, 29.0f, getPaint()); in testDrawBitmapAtPointRecycled()
333 new Canvas(getMutableBitmap()).drawBitmap(b, null, new RectF(), getPaint()); in testDrawBitmapSrcDstFloatRecycled()
342 new Canvas(getMutableBitmap()).drawBitmap(b, null, new Rect(), getPaint()); in testDrawBitmapSrcDstIntRecycled()
488 0, 4, getPaint()); in testDrawVerticesTooFewVerts()
[all …]
/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.java249 Paint paint = drawable.getPaint(); in addBall()
/cts/tests/tests/graphics/src/android/graphics/cts/
DNinePatchTest.java95 assertNull(mNinePatch.getPaint()); in testPaintAccessors()
98 assertEquals(p, mNinePatch.getPaint()); in testPaintAccessors()
101 assertNull(mNinePatch.getPaint()); in testPaintAccessors()
/cts/tests/tests/text/src/android/text/method/cts/
DTouchTest.java87 TextPaint paint = mTextView.getPaint(); in testScrollTo()
119 TextPaint paint = mTextView.getPaint(); in testOnTouchEvent()
DBaseMovementMethodTest.java85 setContentView(mTextView, (int) mTextView.getPaint().measureText(testLine) / 3); in testOnGenericMotionEvent_horizontalScroll()
90 final double lineSpacing = Math.ceil(mTextView.getPaint().getFontSpacing()); in testOnGenericMotionEvent_horizontalScroll()
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewPrecomputedTextTest.java165 final TextPaint copied = new TextPaint((new TextView(getContext())).getPaint()); in hasVarFont()
DTextViewTest.java798 TextPaint tp = mTextView.getPaint(); in testGetPaint()
875 assertEquals(Color.GRAY, mTextView.getPaint().linkColor); in testAccessLinkTextColor()
879 assertEquals(Color.YELLOW, mTextView.getPaint().linkColor); in testAccessLinkTextColor()
883 assertEquals(Color.WHITE, mTextView.getPaint().linkColor); in testAccessLinkTextColor()
890 assertEquals(Color.BLACK, mTextView.getPaint().linkColor); in testAccessLinkTextColor()
894 assertEquals(Color.BLACK, mTextView.getPaint().linkColor); in testAccessLinkTextColor()
1179 assertFalse(mTextView.getPaint().isElegantTextHeight()); in testSetElegantLineHeight()
1191 assertTrue(mTextView.getPaint().isElegantTextHeight()); in testSetElegantLineHeight()
1196 assertFalse(mTextView.getPaint().isElegantTextHeight()); in testSetElegantLineHeight()
3697 mTextView.getPaint().measureText("a") * 2f / 3f); in testGetOffsetForPositionSingleLineLtr()
[all …]
/cts/tests/tests/text/src/android/text/cts/
DDynamicLayoutTest.java326 assertEquals(mDefaultPaint, layout.getPaint()); in testBuilder_obtain()
DStaticLayoutTest.java165 assertEquals(mDefaultPaint, layout.getPaint()); in testBuilder()