Home
last modified time | relevance | path

Searched refs:an_image (Results 1 – 15 of 15) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowBitmapDrawableTest.java43 BitmapDrawable drawable = (BitmapDrawable) resources.getDrawable(R.drawable.an_image); in getBitmap_shouldReturnBitmapUsedToDraw()
49 BitmapDrawable original = (BitmapDrawable) resources.getDrawable(R.drawable.an_image); in mutate_createsDeepCopy()
60 BitmapDrawable drawable = (BitmapDrawable) resources.getDrawable(R.drawable.an_image); in draw_shouldCopyDescriptionToCanvas()
76 BitmapDrawable drawable = (BitmapDrawable) resources.getDrawable(R.drawable.an_image); in withColorFilterSet_draw_shouldCopyDescriptionToCanvas()
86 Drawable drawable = resources.getDrawable(R.drawable.an_image); in shouldStillHaveShadow()
87 assertThat(Shadows.shadowOf(drawable).getCreatedFromResId()).isEqualTo(R.drawable.an_image); in shouldStillHaveShadow()
92 BitmapDrawable drawable = (BitmapDrawable) resources.getDrawable(R.drawable.an_image); in shouldSetTileModeXY()
DShadowImageViewTest.java23 Bitmap bitmap = BitmapFactory.decodeResource(resources, R.drawable.an_image); in getDrawableResourceId_shouldWorkWhenTheDrawableWasCreatedFromAResource()
27 imageView.setImageResource(R.drawable.an_image); in getDrawableResourceId_shouldWorkWhenTheDrawableWasCreatedFromAResource()
28 …assertThat(shadowOf(imageView.getDrawable()).getCreatedFromResId()).isEqualTo(R.drawable.an_image); in getDrawableResourceId_shouldWorkWhenTheDrawableWasCreatedFromAResource()
DShadowBitmapFactoryTest.java37 Bitmap bitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.an_image); in decodeResource_shouldSetDescriptionAndCreatedFrom()
40 assertEquals(R.drawable.an_image, shadowBitmap.getCreatedFromResId()); in decodeResource_shouldSetDescriptionAndCreatedFrom()
47 Bitmap bitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.an_image); in decodeResource_shouldSetDefaultBitmapConfig()
62 BitmapFactory.decodeResource(context.getResources(), R.drawable.an_image, options); in decodeResource_shouldPassABitmapConfig()
112 ShadowBitmapFactory.provideWidthAndHeightHints(R.drawable.an_image, 123, 456); in decodeResource_shouldGetWidthAndHeightFromHints()
114 Bitmap bitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.an_image); in decodeResource_shouldGetWidthAndHeightFromHints()
125 BitmapFactory.decodeResource(context.getResources(), R.drawable.an_image, options); in decodeResource_canTakeOptions()
DShadowRadioButtonTest.java84 radioButton.setButtonDrawable(R.drawable.an_image); in getButtonDrawableId()
85 assertThat(shadowOf(radioButton).getButtonDrawableId()).isEqualTo(R.drawable.an_image); in getButtonDrawableId()
DShadowNotificationBuilderTest.java86 Notification notification = builder.setSmallIcon(R.drawable.an_image).build(); in build_setsIconOnNotification()
88 assertThat(notification.getSmallIcon().getResId()).isEqualTo(R.drawable.an_image); in build_setsIconOnNotification()
240 ApplicationProvider.getApplicationContext().getResources(), R.drawable.an_image); in withBigPictureStyle()
DShadowLayerDrawableTest.java38 drawable1000 = new BitmapDrawable(BitmapFactory.decodeResource(resources, R.drawable.an_image)); in setUp()
DShadowAlertDialogTest.java319 builder.setIcon(R.drawable.an_image); in alertControllerShouldStoreCorrectIconIdFromBuilder()
322 assertThat(shadowOf(alertDialog).getIconId()).isEqualTo(R.drawable.an_image); in alertControllerShouldStoreCorrectIconIdFromBuilder()
DShadowDrawableTest.java148 final Drawable anImage = context.getResources().getDrawable(R.drawable.an_image); in drawableIntrinsicWidthAndHeightShouldBeCorrect()
DShadowResourcesTest.java64 InputStream resourceStream = resources.openRawResource(R.drawable.an_image); in openRawResource_shouldLoadDrawableWithQualifiers()
DShadowTextViewTest.java351 …textView.setCompoundDrawablesWithIntrinsicBounds(R.drawable.an_image, R.drawable.an_other_image, R… in testSetCompountDrawablesWithIntrinsicBounds_int_shouldCreateDrawablesWithResourceIds()
353 …assertEquals(R.drawable.an_image, shadowOf(textView.getCompoundDrawables()[0]).getCreatedFromResId… in testSetCompountDrawablesWithIntrinsicBounds_int_shouldCreateDrawablesWithResourceIds()
DShadowLayoutInflaterTest.java262 assertThat(shadowOf(drawables[1]).getCreatedFromResId()).isEqualTo(R.drawable.an_image); in testTextViewCompoundDrawablesAreSet()
280 assertThat(shadowOf(drawable.getBitmap()).getCreatedFromResId()).isEqualTo(R.drawable.an_image); in testImageViewSrcIsSet()
DShadowViewTest.java260 view.setBackgroundResource(R.drawable.an_image); in shouldSetBackgroundResource()
262 .isEqualTo(R.drawable.an_image); in shouldSetBackgroundResource()
267 view.setBackgroundResource(R.drawable.an_image); in shouldClearBackgroundResource()
DShadowPackageManagerTest.java2799 info.icon = R.drawable.an_image;
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/fakes/
DRoboMenuItemTest.java136 item.setIcon(R.drawable.an_image); in setIcon_shouldNullifyOnZero()
137 assertThat(shadowOf(item.getIcon()).getCreatedFromResId()).isEqualTo(R.drawable.an_image); in setIcon_shouldNullifyOnZero()
145 ApplicationProvider.getApplicationContext().getResources().getDrawable(R.drawable.an_image); in getIcon_shouldReturnDrawableFromSetIconDrawable()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/
DR.java352 public static final int an_image=0x7f020000; field in R.drawable