Home
last modified time | relevance | path

Searched refs:getPaint (Results 1 – 22 of 22) 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/text/src/android/text/cts/
DTextRunAdvancesTest.java37 private static Paint getPaint() { in getPaint() method in TextRunAdvancesTest
49 final Paint paint = getPaint(); in testGetRunCharacterAdvance()
63 final Paint paint = getPaint(); in testGetRunCharacterAdvance_charSequence()
75 final Paint paint = getPaint(); in testGetRunCharacterAdvance_LTR()
87 final Paint paint = getPaint(); in testGetRunCharacterAdvance_RTL()
99 final Paint paint = getPaint(); in testGetRunCharacterAdvance_surrogate()
112 final Paint paint = getPaint(); in testGetRunCharacterAdvance_advanceIndex()
123 final Paint paint = getPaint(); in testGetRunCharacterAdvance_contextStartOutOfBounds()
132 final Paint paint = getPaint(); in testGetRunCharacterAdvance_contextEndOutOfBounds()
141 final Paint paint = getPaint(); in testGetRunCharacterAdvance_contextStartLargerThanContextEnd()
[all …]
DHighlightsTest.java48 assertThat(highlights.getPaint(0)).isSameInstanceAs(paint); in build()
61 assertThat(highlights.getPaint(0)).isSameInstanceAs(paint); in build2()
63 assertThat(highlights.getPaint(1)).isSameInstanceAs(paint2); in build2()
69 new Highlights.Builder().addRanges(new Paint(), 1, 2).build().getPaint(1); in access_OOB_Paint()
DDynamicLayoutTest.java410 assertEquals(mDefaultPaint, layout.getPaint()); in testBuilder_obtain()
DStaticLayoutTest.java166 assertEquals(mDefaultPaint, layout.getPaint()); in testBuilder()
/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.java105 assertNull(mNinePatch.getPaint()); in testPaintAccessors()
108 assertEquals(p, mNinePatch.getPaint()); in testPaintAccessors()
111 assertNull(mNinePatch.getPaint()); in testPaintAccessors()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DCanvasTests.java70 private Paint getPaint() { in getPaint() method in CanvasTests
382 }, -1, 2, getPaint()); in testDrawPointsInvalidOffset()
390 }, 0, 31, getPaint()); in testDrawPointsInvalidCount()
412 new Canvas(getMutableBitmap()).drawOval(null, getPaint()); in testDrawOvalNull()
419 true, getPaint()); in testDrawArcNullOval()
425 new Canvas(getMutableBitmap()).drawRoundRect(null, 10.0f, 29.0f, getPaint()); in testDrawRoundRectNull()
434 new Canvas(getMutableBitmap()).drawBitmap(b, 10.0f, 29.0f, getPaint()); in testDrawBitmapAtPointRecycled()
443 new Canvas(getMutableBitmap()).drawBitmap(b, null, new RectF(), getPaint()); in testDrawBitmapSrcDstFloatRecycled()
452 new Canvas(getMutableBitmap()).drawBitmap(b, null, new Rect(), getPaint()); in testDrawBitmapSrcDstIntRecycled()
598 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.java98 TextPaint paint = mTextView.getPaint(); in testScrollTo()
130 TextPaint paint = mTextView.getPaint(); in testOnTouchEvent()
DBaseMovementMethodTest.java95 setContentView(mTextView, (int) mTextView.getPaint().measureText(testLine) / 3); in testOnGenericMotionEvent_horizontalScroll()
100 final double lineSpacing = Math.ceil(mTextView.getPaint().getFontSpacing()); in testOnGenericMotionEvent_horizontalScroll()
DBaseKeyListenerTest.java631 return StaticLayout.Builder.obtain(content, 0, content.length(), tv.getPaint(), in getLineCount()
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewPrecomputedTextTest.java165 final TextPaint copied = new TextPaint((new TextView(getContext())).getPaint()); in hasVarFont()
DTextViewTest.java377 Typeface forceBoldedPaintTf = mTextView.getPaint().getTypeface(); in testFontWeightAdjustment_forceBoldTextEnabled_typefaceNull_textIsBolded()
394 Typeface forceBoldedPaintTf = mTextView.getPaint().getTypeface(); in testFontWeightAdjustment_forceBoldTextEnabled_textIsBolded()
416 Typeface forceUnboldedPaintTf = mTextView.getPaint().getTypeface(); in testFontWeightAdjustment_forceBoldTextDisabled_textIsUnbolded()
435 Typeface forceBoldedPaintTf = mTextView.getPaint().getTypeface(); in testFontWeightAdjustment_forceBoldTextEnabled_originalTypefaceKeptWhenEnabled()
454 assertEquals(Typeface.MONOSPACE, mTextView.getPaint().getTypeface()); in testFontWeightAdjustment_forceBoldTextDisabled_originalTypefaceIsKept()
472 mTextView.getPaint().getTypeface().getWeight()); in testFontWeightAdjustment_forceBoldTextEnabled_boldTypefaceIsBolded()
487 assertEquals(200, mTextView.getPaint().getTypeface().getWeight()); in testFontWeightAdjustment_adjustmentIsNegative_fontWeightIsLower()
504 mTextView.getPaint().getTypeface().getWeight()); in testFontWeightAdjustment_adjustmentIsNegative_fontWeightIsMinimum()
978 TextPaint tp = mTextView.getPaint(); in testGetPaint()
1055 assertEquals(Color.GRAY, mTextView.getPaint().linkColor); in testAccessLinkTextColor()
[all …]
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dcurrent.txt16446 method public android.graphics.Paint getPaint();
17413 method public final android.graphics.Paint getPaint();
17789 method @NonNull public android.graphics.Paint getPaint();
17850 method public android.graphics.Paint getPaint();
47613 method @NonNull public android.graphics.Paint getPaint(int);
47763 method @NonNull public final android.text.TextPaint getPaint();
60918 method public android.text.TextPaint getPaint();