Home
last modified time | relevance | path

Searched refs:getDrawable (Results 1 – 25 of 35) sorted by relevance

12

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/
DDrawableResourceLoaderTest.java41 ApplicationProvider.getApplicationContext().getResources().getDrawable(R.drawable.rainbow)); in testGetDrawable_rainbow()
46 assertNotNull(resources.getDrawable(android.R.drawable.ic_popup_sync)); in testGetDrawableBundle_shouldWorkWithSystem()
51 assertNotNull(Resources.getSystem().getDrawable(android.R.drawable.ic_menu_help)); in testGetDrawable_red()
56 assertThat(resources.getDrawable(R.drawable.l7_white)).isInstanceOf(BitmapDrawable.class); in testDrawableTypes()
57 assertThat(resources.getDrawable(R.drawable.l0_red)).isInstanceOf(BitmapDrawable.class); in testDrawableTypes()
58 …assertThat(resources.getDrawable(R.drawable.nine_patch_drawable)).isInstanceOf(NinePatchDrawable.c… in testDrawableTypes()
59 assertThat(resources.getDrawable(R.drawable.rainbow)).isInstanceOf(LayerDrawable.class); in testDrawableTypes()
64 …assertThat(resources.getDrawable(R.drawable.an_image_or_vector)).isInstanceOf(BitmapDrawable.class… in testVectorDrawableType_preVectors()
69 …assertThat(resources.getDrawable(R.drawable.an_image_or_vector)).isInstanceOf(VectorDrawable.class… in testVectorDrawableType()
80 .getDrawable(R.drawable.rainbow)) in testLayerDrawable_xlarge()
[all …]
/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()
92 BitmapDrawable drawable = (BitmapDrawable) resources.getDrawable(R.drawable.an_image); in shouldSetTileModeXY()
DShadowDrawableTest.java136 assertThat(context.getResources().getDrawable(R.drawable.drawable_with_nine_patch)).isNotNull(); in shouldLoadNinePatchFromDrawableXml()
148 final Drawable anImage = context.getResources().getDrawable(R.drawable.an_image); in drawableIntrinsicWidthAndHeightShouldBeCorrect()
157 final Drawable anImage = context.getResources().getDrawable(R.drawable.robolectric); in drawableShouldLoadImageOfCorrectSizeWithMdpiQualifier()
166 final Drawable anImage = context.getResources().getDrawable(R.drawable.robolectric); in drawableShouldLoadImageOfCorrectSizeWithHdpiQualifier()
177 final Drawable aDrawable = context.getResources().getDrawable(R.drawable.an_image_or_vector); in testGetBitmapOrVectorDrawableAt19()
184 final Drawable aDrawable = context.getResources().getDrawable(R.drawable.an_image_or_vector); in testGetBitmapOrVectorDrawableAt21()
DShadowLayerDrawableTest.java65 shadowOf(layerDrawable.getDrawable(index)).getCreatedFromResId()); in testSetDrawableByLayerId1()
78 shadowOf(layerDrawable.getDrawable(index)).getCreatedFromResId()); in testSetDrawableByLayerId2()
DShadowPhoneWindowTest.java35 Drawable drawable = activity.getResources().getDrawable(android.R.drawable.bottom_bar); in getBackgroundDrawable()
DShadowImageViewTest.java28 …assertThat(shadowOf(imageView.getDrawable()).getCreatedFromResId()).isEqualTo(R.drawable.an_image); in getDrawableResourceId_shouldWorkWhenTheDrawableWasCreatedFromAResource()
/external/setupdesign/main/src/com/google/android/setupdesign/
DSetupWizardLayout.java103 final Drawable background = a.getDrawable(R.styleable.SudSetupWizardLayout_sudBackground); in init()
108 a.getDrawable(R.styleable.SudSetupWizardLayout_sudBackgroundTile); in init()
115 final Drawable illustration = a.getDrawable(R.styleable.SudSetupWizardLayout_sudIllustration); in init()
120 a.getDrawable(R.styleable.SudSetupWizardLayout_sudIllustrationImage); in init()
122 a.getDrawable(R.styleable.SudSetupWizardLayout_sudIllustrationHorizontalTile); in init()
316 final Drawable backgroundTileDrawable = getContext().getResources().getDrawable(backgroundTile); in setBackgroundTile()
329 final Drawable assetDrawable = context.getResources().getDrawable(asset); in getIllustration()
330 final Drawable tile = context.getResources().getDrawable(horizontalTile); in getIllustration()
DDividerItemDecoration.java88 a.getDrawable(R.styleable.SudDividerItemDecoration_android_listDivider); in DividerItemDecoration()
/external/setupdesign/main/src/com/google/android/setupdesign/items/
DRecyclerItemAdapter.java113 typedArray.getDrawable( in onCreateViewHolder()
117 typedArray.getDrawable(R.styleable.SudRecyclerItemAdapter_selectableItemBackground); in onCreateViewHolder()
128 typedArray.getDrawable(R.styleable.SudRecyclerItemAdapter_android_colorBackground); in onCreateViewHolder()
/external/setupcompat/main/java/com/google/android/setupcompat/template/
DStatusBarMixin.java92 setStatusBarBackground(a.getDrawable(R.styleable.SucStatusBarMixin_sucStatusBarBackground)); in StatusBarMixin()
118 .getDrawable(context, PartnerConfig.CONFIG_STATUS_BAR_BACKGROUND); in setStatusBarBackground()
DFooterBarMixin.java673 icon = PartnerConfigHelper.get(context).getDrawable(context, buttonIconConfig);
746 LayerDrawable layerDrawable = (LayerDrawable) ((InsetDrawable) drawable).getDrawable();
747 return (GradientDrawable) layerDrawable.getDrawable(0);
749 InsetDrawable insetDrawable = (InsetDrawable) ((RippleDrawable) drawable).getDrawable(0);
750 return (GradientDrawable) insetDrawable.getDrawable();
763 return (RippleDrawable) ((InsetDrawable) drawable).getDrawable();
/external/setupcompat/partnerconfig/java/com/google/android/setupcompat/partnerconfig/
DPartnerConfigHelper.java119 public Drawable getDrawable(@NonNull Context context, PartnerConfig resourceConfig) { in getDrawable() method in PartnerConfigHelper
141 result = resource.getDrawable(resourceEntry.getResourceId(), null); in getDrawable()
143 result = resource.getDrawable(resourceEntry.getResourceId()); in getDrawable()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowNotification.java84 return imageView != null && imageView.getDrawable() != null in getBigPicture()
85 ? ((BitmapDrawable) imageView.getDrawable()).getBitmap() : null; in getBigPicture()
/external/setupdesign/main/src/com/google/android/setupdesign/util/
DPartner.java63 public static Drawable getDrawable(Context context, @DrawableRes int id) { in getDrawable() method in Partner
65 return entry.resources.getDrawable(entry.id); in getDrawable()
/external/replicaisland/src/com/replica/replicaisland/
DKeyboardConfigDialogPreference.java123 mUnselectedBorder = mContext.getResources().getDrawable(R.drawable.key_config_border); in onBindDialogView()
124 mSelectedBorder = mContext.getResources().getDrawable(R.drawable.key_config_border_active); in onBindDialogView()
DRenderComponent.java83 public DrawableObject getDrawable() { in getDrawable() method in RenderComponent
DMotionBlurComponent.java68 DrawableBitmap drawable = (DrawableBitmap)mBlurTarget.getDrawable(); in update()
DFadeDrawableComponent.java124 DrawableObject drawable = mRenderComponent.getDrawable(); in update()
DMainMenuActivity.java194 …((ImageView)mStartButton).setImageDrawable(getResources().getDrawable(R.drawable.ui_button_continu… in onResume()
197 …((ImageView)mStartButton).setImageDrawable(getResources().getDrawable(R.drawable.ui_button_start)); in onResume()
DAnimationPlayerActivity.java83 mAnimation = (AnimationDrawable) canvasImage.getDrawable(); in onCreate()
/external/glide/library/src/main/java/com/bumptech/glide/request/target/
DImageViewTarget.java26 return view.getDrawable(); in getCurrentDrawable()
/external/glide/library/src/main/java/com/bumptech/glide/request/
DGenericRequest.java381 errorDrawable = context.getResources().getDrawable(errorResourceId); in getErrorDrawable()
388 placeholderDrawable = context.getResources().getDrawable(placeholderResourceId); in getPlaceholderDrawable()
/external/skia/src/core/
DSkPictureData.h116 SkDrawable* getDrawable(SkReadBuffer* reader) const { in getDrawable() function
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/fakes/
DRoboMenuItem.java107 this.icon = iconRes == 0 ? null : context.getResources().getDrawable(iconRes); in setIcon()
/external/skqp/src/core/
DSkPictureData.h116 SkDrawable* getDrawable(SkReadBuffer* reader) const { in getDrawable() function

12