/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | BitmapDrawableTest.java | 91 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 …]
|
D | RotateDrawableTest.java | 155 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 …]
|
D | NinePatchDrawableTest.java | 194 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 …]
|
D | ShapeDrawableTest.java | 148 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 …]
|
D | ScaleDrawableTest.java | 487 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()
|
D | LayerDrawableTest.java | 1655 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 …]
|
D | StateListDrawableTest.java | 407 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/ |
D | Paint_TextBoundsTest.java | 62 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()
|
D | NinePatchTest.java | 95 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/ |
D | CanvasTests.java | 56 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/ |
D | ShapeHolder.java | 40 public Paint getPaint() { in getPaint() method in ShapeHolder 73 mShape.getPaint().setColor(value); in setColor()
|
D | AnimationActivity.java | 249 Paint paint = drawable.getPaint(); in addBall()
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | TouchTest.java | 87 TextPaint paint = mTextView.getPaint(); in testScrollTo() 119 TextPaint paint = mTextView.getPaint(); in testOnTouchEvent()
|
D | BaseMovementMethodTest.java | 85 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/ |
D | TextViewPrecomputedTextTest.java | 165 final TextPaint copied = new TextPaint((new TextView(getContext())).getPaint()); in hasVarFont()
|
D | TextViewTest.java | 338 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/ |
D | DynamicLayoutTest.java | 409 assertEquals(mDefaultPaint, layout.getPaint()); in testBuilder_obtain()
|
D | StaticLayoutTest.java | 165 assertEquals(mDefaultPaint, layout.getPaint()); in testBuilder()
|