/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | ColorStateListDrawableTest.java | 49 private ColorStateListDrawable mDrawable; field in ColorStateListDrawableTest 58 mDrawable = new ColorStateListDrawable(mColorStateList); in setup() 76 mDrawable.setBounds(0, 0, 1, 1); in testDraw() 78 mDrawable.setState(STATE_RED); in testDraw() 79 mDrawable.draw(canvas); in testDraw() 82 mDrawable.setState(STATE_BLUE); in testDraw() 83 mDrawable.draw(canvas); in testDraw() 92 assertTrue(mDrawable.getCurrent() instanceof ColorDrawable); in testGetCurrent() 97 assertTrue(mDrawable.isStateful()); in testIsStateful() 98 mDrawable.setColorStateList(ColorStateList.valueOf(Color.GREEN)); in testIsStateful() [all …]
|
D | AdaptiveIconMaskTest.java | 57 private AdaptiveIconDrawable mDrawable; field in AdaptiveIconMaskTest 65 mDrawable = new AdaptiveIconDrawable( mBlueDrawable, mRedDrawable); in setup() 67 mMask = mDrawable.getIconMask(); in setup() 127 mBlueDrawable, mDrawable.getBackground()); in testGetLayers() 129 mRedDrawable, mDrawable.getForeground()); in testGetLayers()
|
D | StateListDrawableTest.java | 57 private StateListDrawable mDrawable; field in StateListDrawableTest 68 mDrawable = mMockDrawable = new MockStateListDrawable(); in setup() 87 mDrawable.addState(StateSet.WILD_CARD, null); in testAddState() 93 mDrawable.addState(StateSet.WILD_CARD, new ColorDrawable(Color.YELLOW)); in testAddState() 98 mDrawable.addState( in testAddState() 107 mDrawable.addState(null, new ColorDrawable(Color.YELLOW)); in testAddState()
|
D | AnimatedImageDrawableTest.java | 141 private final Drawable mDrawable; field in AnimatedImageDrawableTest.Callback 144 mDrawable = d; in Callback() 150 assertEquals(mDrawable, drawable); in onAnimationStart() 157 assertEquals(mDrawable, drawable); in onAnimationEnd()
|
/cts/tests/tests/text/src/android/text/style/cts/ |
D | DrawableMarginSpanTest.java | 46 private Drawable mDrawable; field in DrawableMarginSpanTest 51 mDrawable = mContext.getDrawable(R.drawable.scenery); in setup() 65 DrawableMarginSpan drawableMarginSpan = new DrawableMarginSpan(mDrawable, 1); in testGetLeadingMargin() 68 drawableMarginSpan = new DrawableMarginSpan(mDrawable, 10); in testGetLeadingMargin() 76 DrawableMarginSpan drawableMarginSpan = new DrawableMarginSpan(mDrawable, 0); in testDrawLeadingMargin() 78 assertEquals(0, mDrawable.getBounds().top); in testDrawLeadingMargin() 79 assertEquals(0, mDrawable.getBounds().bottom); in testDrawLeadingMargin() 80 assertEquals(0, mDrawable.getBounds().left); in testDrawLeadingMargin() 81 assertEquals(0, mDrawable.getBounds().right); in testDrawLeadingMargin() 94 assertEquals(0, mDrawable.getBounds().top); in testDrawLeadingMargin() [all …]
|
D | DynamicDrawableSpanTest.java | 128 private final Drawable mDrawable; field in DynamicDrawableSpanTest.MyDynamicDrawableSpan 136 mDrawable = InstrumentationRegistry.getTargetContext().getDrawable(R.drawable.scenery); in MyDynamicDrawableSpan() 137 mDrawable.setBounds(0, 0, DRAWABLE_SIZE, DRAWABLE_SIZE); in MyDynamicDrawableSpan() 142 return mDrawable; in getDrawable()
|
/cts/tests/app/src/android/app/cts/ |
D | ProgressDialogTest.java | 42 private Drawable mDrawable; field in ProgressDialogTest 65 mDrawable = getActivity().getResources().getDrawable( in setUp() 284 dialog.setProgressDrawable(mDrawable); in testSetProgressDrawable() 289 assertEquals(mDrawable, mActualDrawable); in testSetProgressDrawable() 299 dialog.setIndeterminateDrawable(mDrawable); in testSetIndeterminateDrawable() 301 assertEquals(mDrawable, mActualDrawable); in testSetIndeterminateDrawable()
|
D | AlertDialog_BuilderTest.java | 73 private Drawable mDrawable; field in AlertDialog_BuilderTest 131 mDrawable = mContext.getResources().getDrawable(android.R.drawable.btn_default); in testSetIconWithParamInt() 145 mDrawable = mContext.getResources().getDrawable(android.R.drawable.btn_default); in testSetIconWithParamDrawable() 147 mBuilder.setIcon(mDrawable); in testSetIconWithParamDrawable() 159 mDrawable = mContext.getResources().getDrawable(android.R.drawable.btn_default); in testSetIconAttribute()
|