Home
last modified time | relevance | path

Searched refs:getCreatedFromResId (Results 1 – 12 of 12) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowLayerDrawableTest.java64 assertEquals(shadowOf(drawable4000).getCreatedFromResId(), in testSetDrawableByLayerId1()
65 shadowOf(layerDrawable.getDrawable(index)).getCreatedFromResId()); in testSetDrawableByLayerId1()
77 assertEquals(shadowOf(drawable4000).getCreatedFromResId(), in testSetDrawableByLayerId2()
78 shadowOf(layerDrawable.getDrawable(index)).getCreatedFromResId()); in testSetDrawableByLayerId2()
DShadowLayoutInflaterTest.java261 assertThat(shadowOf(drawables[0]).getCreatedFromResId()).isEqualTo(R.drawable.fourth_image); in testTextViewCompoundDrawablesAreSet()
262 assertThat(shadowOf(drawables[1]).getCreatedFromResId()).isEqualTo(R.drawable.an_image); in testTextViewCompoundDrawablesAreSet()
263 assertThat(shadowOf(drawables[2]).getCreatedFromResId()).isEqualTo(R.drawable.an_other_image); in testTextViewCompoundDrawablesAreSet()
264 assertThat(shadowOf(drawables[3]).getCreatedFromResId()).isEqualTo(R.drawable.third_image); in testTextViewCompoundDrawablesAreSet()
280 assertThat(shadowOf(drawable.getBitmap()).getCreatedFromResId()).isEqualTo(R.drawable.an_image); in testImageViewSrcIsSet()
288 assertThat(shadowOf(drawable.getBitmap()).getCreatedFromResId()) in testImageViewSrcIsSetFromMipmap()
380 assertThat(shadowOf(imageView.getBackground()).getCreatedFromResId()) in testViewBackgroundIdIsSet()
DShadowImageViewTest.java28 …assertThat(shadowOf(imageView.getDrawable()).getCreatedFromResId()).isEqualTo(R.drawable.an_image); in getDrawableResourceId_shouldWorkWhenTheDrawableWasCreatedFromAResource()
DShadowDrawableTest.java116 assertThat(shadowOf(drawable).getCreatedFromResId()).isEqualTo(-1); in testGetLoadedFromResourceId_shouldDefaultToNegativeOne()
123 assertThat(shadowDrawable.getCreatedFromResId()).isEqualTo(34758); in testCreateFromResourceId_shouldSetTheId()
DShadowTextViewTest.java353 …ertEquals(R.drawable.an_image, shadowOf(textView.getCompoundDrawables()[0]).getCreatedFromResId()); in testSetCompountDrawablesWithIntrinsicBounds_int_shouldCreateDrawablesWithResourceIds()
354 …als(R.drawable.an_other_image, shadowOf(textView.getCompoundDrawables()[1]).getCreatedFromResId()); in testSetCompountDrawablesWithIntrinsicBounds_int_shouldCreateDrawablesWithResourceIds()
355 …Equals(R.drawable.third_image, shadowOf(textView.getCompoundDrawables()[2]).getCreatedFromResId()); in testSetCompountDrawablesWithIntrinsicBounds_int_shouldCreateDrawablesWithResourceIds()
356 …quals(R.drawable.fourth_image, shadowOf(textView.getCompoundDrawables()[3]).getCreatedFromResId()); in testSetCompountDrawablesWithIntrinsicBounds_int_shouldCreateDrawablesWithResourceIds()
DShadowBitmapDrawableTest.java87 assertThat(Shadows.shadowOf(drawable).getCreatedFromResId()).isEqualTo(R.drawable.an_image); in shouldStillHaveShadow()
DShadowBitmapFactoryTest.java40 assertEquals(R.drawable.an_image, shadowBitmap.getCreatedFromResId()); in decodeResource_shouldSetDescriptionAndCreatedFrom()
DShadowViewTest.java261 assertThat(shadowOf((BitmapDrawable) view.getBackground()).getCreatedFromResId()) in shouldSetBackgroundResource()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowBitmapDrawable.java64 public int getCreatedFromResId() { in getCreatedFromResId() method in ShadowBitmapDrawable
66 return shadowBitmap.getCreatedFromResId(); in getCreatedFromResId()
DShadowDrawable.java164 public int getCreatedFromResId() { in getCreatedFromResId() method in ShadowDrawable
DShadowBitmap.java88 public int getCreatedFromResId() { in getCreatedFromResId() method in ShadowBitmap
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/fakes/
DRoboMenuItemTest.java137 assertThat(shadowOf(item.getIcon()).getCreatedFromResId()).isEqualTo(R.drawable.an_image); in setIcon_shouldNullifyOnZero()
156 assertThat(shadowOf(item.getIcon()).getCreatedFromResId()).isEqualTo(R.drawable.an_other_image); in getIcon_shouldReturnDrawableFromSetIconResourceId()