Searched refs:an_image (Results 1 – 15 of 15) sorted by relevance
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowBitmapDrawableTest.java | 43 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()
|
D | ShadowImageViewTest.java | 23 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()
|
D | ShadowBitmapFactoryTest.java | 37 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()
|
D | ShadowRadioButtonTest.java | 84 radioButton.setButtonDrawable(R.drawable.an_image); in getButtonDrawableId() 85 assertThat(shadowOf(radioButton).getButtonDrawableId()).isEqualTo(R.drawable.an_image); in getButtonDrawableId()
|
D | ShadowNotificationBuilderTest.java | 86 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()
|
D | ShadowLayerDrawableTest.java | 38 drawable1000 = new BitmapDrawable(BitmapFactory.decodeResource(resources, R.drawable.an_image)); in setUp()
|
D | ShadowAlertDialogTest.java | 319 builder.setIcon(R.drawable.an_image); in alertControllerShouldStoreCorrectIconIdFromBuilder() 322 assertThat(shadowOf(alertDialog).getIconId()).isEqualTo(R.drawable.an_image); in alertControllerShouldStoreCorrectIconIdFromBuilder()
|
D | ShadowDrawableTest.java | 148 final Drawable anImage = context.getResources().getDrawable(R.drawable.an_image); in drawableIntrinsicWidthAndHeightShouldBeCorrect()
|
D | ShadowResourcesTest.java | 64 InputStream resourceStream = resources.openRawResource(R.drawable.an_image); in openRawResource_shouldLoadDrawableWithQualifiers()
|
D | ShadowTextViewTest.java | 351 …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()
|
D | ShadowLayoutInflaterTest.java | 262 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()
|
D | ShadowViewTest.java | 260 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()
|
D | ShadowPackageManagerTest.java | 2799 info.icon = R.drawable.an_image;
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/fakes/ |
D | RoboMenuItemTest.java | 136 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/ |
D | R.java | 352 public static final int an_image=0x7f020000; field in R.drawable
|