Home
last modified time | relevance | path

Searched refs:ShadowBitmapDrawable (Results 1 – 5 of 5) sorted by relevance

/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowBitmapDrawable.java19 public class ShadowBitmapDrawable extends ShadowDrawable { class
120 if (o == null || getClass() != ShadowBitmapDrawable.class) return false; in equals()
122 ShadowBitmapDrawable that = shadowOf((BitmapDrawable) o); in equals()
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DDrawableTest.java36 assertEquals("my_source", ((ShadowBitmapDrawable) shadowOf(drawable)).getSource()); in createFromStream__shouldReturnDrawableWithSpecificSource()
82 assertEquals("/foo", ((ShadowBitmapDrawable) shadowOf(drawable)).getPath()); in createFromPath__shouldReturnDrawableWithSpecificPath()
126 assertEquals("my_source", ((ShadowBitmapDrawable) shadowOf(drawable)).getSource()); in createFromResourceStream__shouldReturnDrawableWithSpecificSource()
147 assertEquals("my_source", ((ShadowBitmapDrawable) shadowOf(drawable)).getSource()); in createFromResourceStreamWithOptions__shouldReturnDrawableWithSpecificSource()
DStateListDrawableTest.java30 assertThat(((ShadowBitmapDrawable) shadowOf(drawableForState)).getPath(), is("/foo")); in testAddStateWithDrawable()
43 assertThat(((ShadowBitmapDrawable) shadowOf(drawableForState)).getPath(), is("/foo")); in testAddDrawableWithWildCardState()
DBitmapDrawableTest.java93 …assertEquals(R.drawable.an_image, ((ShadowBitmapDrawable) Robolectric.shadowOf(drawable)).getLoade… in shouldStillHaveShadow()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/
DRobolectric.java155 ShadowBitmapDrawable.class, in getDefaultShadowClasses()
489 public static ShadowBitmapDrawable shadowOf(BitmapDrawable instance) { in shadowOf()
490 return (ShadowBitmapDrawable) shadowOf_(instance); in shadowOf()