Searched refs:getCreatedFromResId (Results 1 – 12 of 12) sorted by relevance
64 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()
261 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()
28 …assertThat(shadowOf(imageView.getDrawable()).getCreatedFromResId()).isEqualTo(R.drawable.an_image); in getDrawableResourceId_shouldWorkWhenTheDrawableWasCreatedFromAResource()
116 assertThat(shadowOf(drawable).getCreatedFromResId()).isEqualTo(-1); in testGetLoadedFromResourceId_shouldDefaultToNegativeOne()123 assertThat(shadowDrawable.getCreatedFromResId()).isEqualTo(34758); in testCreateFromResourceId_shouldSetTheId()
353 …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()
87 assertThat(Shadows.shadowOf(drawable).getCreatedFromResId()).isEqualTo(R.drawable.an_image); in shouldStillHaveShadow()
40 assertEquals(R.drawable.an_image, shadowBitmap.getCreatedFromResId()); in decodeResource_shouldSetDescriptionAndCreatedFrom()
261 assertThat(shadowOf((BitmapDrawable) view.getBackground()).getCreatedFromResId()) in shouldSetBackgroundResource()
64 public int getCreatedFromResId() { in getCreatedFromResId() method in ShadowBitmapDrawable66 return shadowBitmap.getCreatedFromResId(); in getCreatedFromResId()
164 public int getCreatedFromResId() { in getCreatedFromResId() method in ShadowDrawable
88 public int getCreatedFromResId() { in getCreatedFromResId() method in ShadowBitmap
137 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()