Searched refs:getLoadedFromResourceId (Results 1 – 12 of 12) sorted by relevance
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | LayerDrawableTest.java | 69 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()
|
D | DrawableTest.java | 88 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()
|
D | AnimationTest.java | 122 shadow.getLoadedFromResourceId(); in testNotLoadedFromResourceId() 128 assertThat(shadow.getLoadedFromResourceId(), equalTo(R.anim.fade_in)); in testLoadedFromResourceId()
|
D | TextViewTest.java | 319 … 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()
|
D | AnimationUtilsTest.java | 28 assertThat(Robolectric.shadowOf(anim).getLoadedFromResourceId(), equalTo(R.anim.fade_in)); in testLoadAnimationResourceId()
|
D | ImageViewTest.java | 99 … assertThat(shadowOf(imageView.getDrawable()).getLoadedFromResourceId(), is(R.drawable.rainbow)); in testSetImageResource_layerDrawable()
|
D | BitmapDrawableTest.java | 93 …wable.an_image, ((ShadowBitmapDrawable) Robolectric.shadowOf(drawable)).getLoadedFromResourceId()); in shouldStillHaveShadow()
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowBitmapDrawable.java | 68 public int getLoadedFromResourceId() { in getLoadedFromResourceId() method in ShadowBitmapDrawable 69 return shadowOf(bitmap).getLoadedFromResourceId(); in getLoadedFromResourceId()
|
D | ShadowTextView.java | 588 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()
|
D | ShadowAnimation.java | 149 public int getLoadedFromResourceId() { in getLoadedFromResourceId() method in ShadowAnimation
|
D | ShadowBitmap.java | 128 public int getLoadedFromResourceId() { in getLoadedFromResourceId() method in ShadowBitmap
|
D | ShadowDrawable.java | 193 public int getLoadedFromResourceId() { in getLoadedFromResourceId() method in ShadowDrawable
|