Home
last modified time | relevance | path

Searched refs:getPaint (Results 1 – 18 of 18) 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/graphics/src/android/graphics/cts/
DPaint_TextBoundsTest.java62 private static Paint getPaint() { in getPaint() method in Paint_TextBoundsTest
73 Paint p = getPaint(); in testSingleChar_1em()
84 Paint p = getPaint(); in testSingleChar_2em()
95 Paint p = getPaint(); in testSingleChar_2em_with_lsb()
106 Paint p = getPaint(); in testSingleChar_1em_with_y1em_origin()
117 Paint p = getPaint(); in testMultiChar_1em_1em()
128 Paint p = getPaint(); in testMultiChar_1em_2em()
139 Paint p = getPaint(); in testMultiChar_3em_2em_with_lsb()
150 Paint p = getPaint(); in testMultiChar_1em_with_y1em()
161 Paint p = getPaint(); in testMultiChar_1em_5times()
DNinePatchTest.java95 assertNull(mNinePatch.getPaint()); in testPaintAccessors()
98 assertEquals(p, mNinePatch.getPaint()); in testPaintAccessors()
101 assertNull(mNinePatch.getPaint()); in testPaintAccessors()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DCanvasTests.java56 private Paint getPaint() { in getPaint() method in CanvasTests
313 }, -1, 2, getPaint()); in testDrawPointsInvalidOffset()
321 }, 0, 31, getPaint()); in testDrawPointsInvalidCount()
343 new Canvas(getMutableBitmap()).drawOval(null, getPaint()); in testDrawOvalNull()
350 true, getPaint()); in testDrawArcNullOval()
356 new Canvas(getMutableBitmap()).drawRoundRect(null, 10.0f, 29.0f, getPaint()); in testDrawRoundRectNull()
365 new Canvas(getMutableBitmap()).drawBitmap(b, 10.0f, 29.0f, getPaint()); in testDrawBitmapAtPointRecycled()
374 new Canvas(getMutableBitmap()).drawBitmap(b, null, new RectF(), getPaint()); in testDrawBitmapSrcDstFloatRecycled()
383 new Canvas(getMutableBitmap()).drawBitmap(b, null, new Rect(), getPaint()); in testDrawBitmapSrcDstIntRecycled()
529 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/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.java338 Typeface forceBoldedPaintTf = mTextView.getPaint().getTypeface(); in testFontWeightAdjustment_forceBoldTextEnabled_textIsBolded()
355 Typeface forceUnboldedPaintTf = mTextView.getPaint().getTypeface(); in testFontWeightAdjustment_forceBoldTextDisabled_textIsUnbolded()
374 Typeface forceBoldedPaintTf = mTextView.getPaint().getTypeface(); in testFontWeightAdjustment_forceBoldTextEnabled_originalTypefaceKeptWhenEnabled()
394 assertEquals(Typeface.MONOSPACE, mTextView.getPaint().getTypeface()); in testFontWeightAdjustment_forceBoldTextDisabled_originalTypefaceIsKept()
412 mTextView.getPaint().getTypeface().getWeight()); in testFontWeightAdjustment_forceBoldTextEnabled_boldTypefaceIsBolded()
427 assertEquals(200, mTextView.getPaint().getTypeface().getWeight()); in testFontWeightAdjustment_adjustmentIsNegative_fontWeightIsLower()
444 mTextView.getPaint().getTypeface().getWeight()); in testFontWeightAdjustment_adjustmentIsNegative_fontWeightIsMinimum()
921 TextPaint tp = mTextView.getPaint(); in testGetPaint()
998 assertEquals(Color.GRAY, mTextView.getPaint().linkColor); in testAccessLinkTextColor()
1002 assertEquals(Color.YELLOW, mTextView.getPaint().linkColor); in testAccessLinkTextColor()
[all …]
/cts/tests/tests/text/src/android/text/cts/
DDynamicLayoutTest.java409 assertEquals(mDefaultPaint, layout.getPaint()); in testBuilder_obtain()
DStaticLayoutTest.java165 assertEquals(mDefaultPaint, layout.getPaint()); in testBuilder()