Home
last modified time | relevance | path

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

/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DLayerDrawableTest.java69 assertEquals(shadowOf(drawable4000).getLoadedFromResourceId(), in testSetDrawableByLayerId1()
70 shadowOf(layerDrawable.getDrawable(index)).getLoadedFromResourceId()); in testSetDrawableByLayerId1()
82 assertEquals(shadowOf(drawable4000).getLoadedFromResourceId(), in testSetDrawableByLayerId2()
83 shadowOf(layerDrawable.getDrawable(index)).getLoadedFromResourceId()); in testSetDrawableByLayerId2()
DDrawableTest.java88 assertThat(shadowOf(drawable).getLoadedFromResourceId(), is(-1)); in testGetLoadedFromResourceId_shouldDefaultToNegativeOne()
96 assertThat(shadowDrawable.getLoadedFromResourceId(), is(99)); in testSetLoadedFromResourceId()
103 assertThat(shadowDrawable.getLoadedFromResourceId(), is(34758)); in testCreateFromResourceId_shouldSetTheId()
DAnimationTest.java122 shadow.getLoadedFromResourceId(); in testNotLoadedFromResourceId()
128 assertThat(shadow.getLoadedFromResourceId(), equalTo(R.anim.fade_in)); in testLoadedFromResourceId()
DTextViewTest.java319 … Assert.assertEquals(6, shadowOf(textView.getCompoundDrawables()[0]).getLoadedFromResourceId()); in testSetCompountDrawablesWithIntrinsicBounds_int_shouldCreateDrawablesWithResourceIds()
320 … Assert.assertEquals(7, shadowOf(textView.getCompoundDrawables()[1]).getLoadedFromResourceId()); in testSetCompountDrawablesWithIntrinsicBounds_int_shouldCreateDrawablesWithResourceIds()
321 … Assert.assertEquals(8, shadowOf(textView.getCompoundDrawables()[2]).getLoadedFromResourceId()); in testSetCompountDrawablesWithIntrinsicBounds_int_shouldCreateDrawablesWithResourceIds()
322 … Assert.assertEquals(9, shadowOf(textView.getCompoundDrawables()[3]).getLoadedFromResourceId()); in testSetCompountDrawablesWithIntrinsicBounds_int_shouldCreateDrawablesWithResourceIds()
DAnimationUtilsTest.java28 assertThat(Robolectric.shadowOf(anim).getLoadedFromResourceId(), equalTo(R.anim.fade_in)); in testLoadAnimationResourceId()
DImageViewTest.java99 … assertThat(shadowOf(imageView.getDrawable()).getLoadedFromResourceId(), is(R.drawable.rainbow)); in testSetImageResource_layerDrawable()
DBitmapDrawableTest.java93 …wable.an_image, ((ShadowBitmapDrawable) Robolectric.shadowOf(drawable)).getLoadedFromResourceId()); in shouldStillHaveShadow()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowBitmapDrawable.java68 public int getLoadedFromResourceId() { in getLoadedFromResourceId() method in ShadowBitmapDrawable
69 return shadowOf(bitmap).getLoadedFromResourceId(); in getLoadedFromResourceId()
DShadowTextView.java588 return shadowOf(leftDrawable).getLoadedFromResourceId(); in getLeft()
592 return shadowOf(topDrawable).getLoadedFromResourceId(); in getTop()
596 return shadowOf(rightDrawable).getLoadedFromResourceId(); in getRight()
600 return shadowOf(bottomDrawable).getLoadedFromResourceId(); in getBottom()
DShadowAnimation.java149 public int getLoadedFromResourceId() { in getLoadedFromResourceId() method in ShadowAnimation
DShadowBitmap.java128 public int getLoadedFromResourceId() { in getLoadedFromResourceId() method in ShadowBitmap
DShadowDrawable.java193 public int getLoadedFromResourceId() { in getLoadedFromResourceId() method in ShadowDrawable