/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 | 165 private final Drawable mDrawable; field in Callback 168 mDrawable = d; in Callback() 174 assertEquals(mDrawable, drawable); in onAnimationStart() 181 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 span = new DrawableMarginSpan(mDrawable, 32); in testConstructAndGet() 66 assertEquals(mDrawable, span.getDrawable()); in testConstructAndGet() 72 DrawableMarginSpan drawableMarginSpan = new DrawableMarginSpan(mDrawable, 1); in testGetLeadingMargin() 75 drawableMarginSpan = new DrawableMarginSpan(mDrawable, 10); in testGetLeadingMargin() 83 DrawableMarginSpan drawableMarginSpan = new DrawableMarginSpan(mDrawable, 0); in testDrawLeadingMargin() 85 assertEquals(0, mDrawable.getBounds().top); in testDrawLeadingMargin() 86 assertEquals(0, mDrawable.getBounds().bottom); in testDrawLeadingMargin() 87 assertEquals(0, mDrawable.getBounds().left); in testDrawLeadingMargin() [all …]
|
D | DynamicDrawableSpanTest.java | 129 private final Drawable mDrawable; field in DynamicDrawableSpanTest.MyDynamicDrawableSpan 137 mDrawable = InstrumentationRegistry.getInstrumentation() in MyDynamicDrawableSpan() 139 mDrawable.setBounds(0, 0, DRAWABLE_SIZE, DRAWABLE_SIZE); in MyDynamicDrawableSpan() 144 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 | 66 private Drawable mDrawable; field in AlertDialog_BuilderTest 108 mDrawable = activity.getResources().getDrawable(android.R.drawable.btn_default); in testSetIconWithParamInt() 119 mDrawable = activity.getResources().getDrawable(android.R.drawable.btn_default); in testSetIconWithParamDrawable() 121 mBuilder.setIcon(mDrawable); in testSetIconWithParamDrawable() 130 mDrawable = activity.getResources().getDrawable(android.R.drawable.btn_default); in testSetIconAttribute()
|