Searched refs:ShadowBitmapDrawable (Results 1 – 5 of 5) sorted by relevance
19 public class ShadowBitmapDrawable extends ShadowDrawable { class120 if (o == null || getClass() != ShadowBitmapDrawable.class) return false; in equals()122 ShadowBitmapDrawable that = shadowOf((BitmapDrawable) o); in equals()
36 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()
30 assertThat(((ShadowBitmapDrawable) shadowOf(drawableForState)).getPath(), is("/foo")); in testAddStateWithDrawable()43 assertThat(((ShadowBitmapDrawable) shadowOf(drawableForState)).getPath(), is("/foo")); in testAddDrawableWithWildCardState()
93 …assertEquals(R.drawable.an_image, ((ShadowBitmapDrawable) Robolectric.shadowOf(drawable)).getLoade… in shouldStillHaveShadow()
155 ShadowBitmapDrawable.class, in getDefaultShadowClasses()489 public static ShadowBitmapDrawable shadowOf(BitmapDrawable instance) { in shadowOf()490 return (ShadowBitmapDrawable) shadowOf_(instance); in shadowOf()