Home
last modified time | relevance | path

Searched refs:ShadowDrawable (Results 1 – 11 of 11) sorted by relevance

/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DDrawableTest.java28 ShadowDrawable.addCorruptStreamSource(corruptedStreamSource); in createFromStream__shouldReturnNullWhenAskedToCreateADrawableFromACorruptedSourceStream()
29 …assertNull(ShadowDrawable.createFromStream(new ByteArrayInputStream(new byte[0]), corruptedStreamS… in createFromStream__shouldReturnNullWhenAskedToCreateADrawableFromACorruptedSourceStream()
34 …Drawable drawable = ShadowDrawable.createFromStream(new ByteArrayInputStream(new byte[0]), "my_sou… in createFromStream__shouldReturnDrawableWithSpecificSource()
42 ShadowDrawable.addCorruptStreamSource(src); in reset__shouldClearStaticState()
43 assertTrue(ShadowDrawable.corruptStreamSources.contains(src)); in reset__shouldClearStaticState()
44 ShadowDrawable.reset(); in reset__shouldClearStaticState()
45 assertFalse(ShadowDrawable.corruptStreamSources.contains(src)); in reset__shouldClearStaticState()
57 …Drawable drawable = ShadowDrawable.createFromStream(new ByteArrayInputStream(new byte[0]), "my_sou… in copyBoundsWithPassedRect()
69 …Drawable drawable = ShadowDrawable.createFromStream(new ByteArrayInputStream(new byte[0]), "my_sou… in copyBoundsToReturnedRect()
80 Drawable drawable = ShadowDrawable.createFromPath("/foo"); in createFromPath__shouldReturnDrawableWithSpecificPath()
[all …]
DStateListDrawableTest.java21 Drawable drawable = ShadowDrawable.createFromPath("/foo"); in testAddStateWithDrawable()
35 Drawable drawable = ShadowDrawable.createFromPath("/foo"); in testAddDrawableWithWildCardState()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowDrawable.java23 public class ShadowDrawable { class
116 ShadowDrawable.defaultIntrinsicWidth = defaultIntrinsicWidth; in setDefaultIntrinsicWidth()
120 ShadowDrawable.defaultIntrinsicHeight = defaultIntrinsicHeight; in setDefaultIntrinsicHeight()
158 ShadowDrawable that = shadowOf((Drawable) o); in equals()
DShadowShapeDrawable.java9 public class ShadowShapeDrawable extends ShadowDrawable {
DShadowTextView.java547 leftDrawable = left != 0 ? ShadowDrawable.createFromResourceId(left) : null; in CompoundDrawables()
548 topDrawable = top != 0 ? ShadowDrawable.createFromResourceId(top) : null; in CompoundDrawables()
549 rightDrawable = right != 0 ? ShadowDrawable.createFromResourceId(right) : null; in CompoundDrawables()
550 bottomDrawable = bottom != 0 ? ShadowDrawable.createFromResourceId(bottom) : null; in CompoundDrawables()
DShadowAnimationDrawable.java12 public class ShadowAnimationDrawable extends ShadowDrawable {
DShadowColorDrawable.java11 public class ShadowColorDrawable extends ShadowDrawable {
DShadowLayerDrawable.java13 public class ShadowLayerDrawable extends ShadowDrawable {
DShadowStateListDrawable.java15 public class ShadowStateListDrawable extends ShadowDrawable {
DShadowBitmapDrawable.java19 public class ShadowBitmapDrawable extends ShadowDrawable {
/external/robolectric/src/main/java/com/xtremelabs/robolectric/
DRobolectric.java197 ShadowDrawable.class, in getDefaultShadowClasses()
370 ShadowDrawable.reset(); in resetStaticState()
621 public static ShadowDrawable shadowOf(Drawable instance) { in shadowOf()
622 return (ShadowDrawable) shadowOf_(instance); in shadowOf()