Home
last modified time | relevance | path

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

12345

/appcompat/appcompat-resources/src/androidTest/java/androidx/appcompat/widget/
DResourceManagerInternalTest.kt40 val drawable = ContextCompat.getDrawable(context, R.drawable.layer_list)!! as LayerDrawable in testLayerDrawableStatePreservedOnTint()
50 assertArrayEquals(state, drawable.getDrawable(0).state) in testLayerDrawableStatePreservedOnTint()
51 assertArrayEquals(state, drawable.getDrawable(1).state) in testLayerDrawableStatePreservedOnTint()
56 assertArrayEquals(state, drawable.getDrawable(0).state) in testLayerDrawableStatePreservedOnTint()
57 assertArrayEquals(state, drawable.getDrawable(1).state) in testLayerDrawableStatePreservedOnTint()
DVectorEnabledTintResourcesTest.java59 tintResources.getDrawable(android.R.drawable.ic_delete); in testVectorEnabledTintResourcesDelegateBackToOriginalResources()
74 Drawable d = tintResources.getDrawable(R.drawable.vector_nested); in testNestedVectorEnabledTintResources()
79 assertTrue(ld.getDrawable(0) instanceof VectorDrawableCompat); in testNestedVectorEnabledTintResources()
DTintResourcesTest.java59 tintResources.getDrawable(android.R.drawable.ic_delete); in testTintResourcesDelegateBackToOriginalResources()
74 Drawable d = tintResources.getDrawable(R.drawable.tint_nested); in testNestedTintResources()
79 assertNotNull(ld.getDrawable(0).getColorFilter()); in testNestedTintResources()
DTestResources.java37 public Drawable getDrawable(int id) throws NotFoundException { in getDrawable() method in TestResources
39 return super.getDrawable(id); in getDrawable()
/appcompat/appcompat-resources/src/androidTest/java/androidx/appcompat/content/res/
DAppCompatResourcesTestCase.java63 assertNotNull(AppCompatResources.getDrawable(mContext, R.drawable.test_vector_off)); in testGetDrawableVectorResource()
68 assertNotNull(AppCompatResources.getDrawable(mContext, R.drawable.asl_heart)); in testGetAnimatedStateListDrawable()
73 Drawable custom = AppCompatResources.getDrawable(mContext, R.drawable.my_drawable); in testGetCustomDrawable()
88 ColorStateListDrawable csld1 = (ColorStateListDrawable) AppCompatResources.getDrawable( in testGetColorStateListDrawable()
97 ColorStateListDrawable csld2 = (ColorStateListDrawable) AppCompatResources.getDrawable( in testGetColorStateListDrawable()
/appcompat/appcompat/src/androidTest/java/androidx/appcompat/widget/
DAppCompatIconsTest.kt76 val drawableCut = AppCompatResources.getDrawable(it, typedValueCut.resourceId) in testActionModeIconsFromAppCompatResources()
86 val drawableCopy = AppCompatResources.getDrawable(it, typedValueCopy.resourceId) in testActionModeIconsFromAppCompatResources()
96 val drawablePaste = AppCompatResources.getDrawable(it, typedValuePaste.resourceId) in testActionModeIconsFromAppCompatResources()
107 AppCompatResources.getDrawable(it, typedValueSelectAll.resourceId) in testActionModeIconsFromAppCompatResources()
117 val drawableShare = AppCompatResources.getDrawable(it, typedValueShare.resourceId) in testActionModeIconsFromAppCompatResources()
DAppCompatToggleButtonTest.java174 textView.setCompoundDrawables(AppCompatResources.getDrawable( in testSetCompoundDrawablesTintList()
201 textView.setCompoundDrawables(AppCompatResources.getDrawable( in testSetCompoundDrawablesTintMode()
237 textView.setCompoundDrawables(AppCompatResources.getDrawable( in testCompoundDrawablesSetAfterTint()
DAppCompatBaseImageViewTest.java59 Drawable imageSource = imageView.getDrawable(); in verifyImageSourceIsColoredAs()
472 final Drawable drawable = res.getDrawable(R.drawable.test_level_drawable); in testLevelOnSetImageDrawable()
475 assertEquals(5, imageView.getDrawable().getLevel()); in testLevelOnSetImageDrawable()
485 final Drawable drawable = res.getDrawable(R.drawable.test_level_drawable); in testSetImageLevel()
488 assertEquals(5, imageView.getDrawable().getLevel()); in testSetImageLevel()
DAppCompatRadioButtonTest.java207 textView.setCompoundDrawables(AppCompatResources.getDrawable( in testSetCompoundDrawablesTintList()
234 textView.setCompoundDrawables(AppCompatResources.getDrawable( in testSetCompoundDrawablesTintMode()
270 textView.setCompoundDrawables(AppCompatResources.getDrawable( in testCompoundDrawablesSetAfterTint()
DAppCompatAutoCompleteTextViewTest.java203 textView.setCompoundDrawables(AppCompatResources.getDrawable( in testSetCompoundDrawablesTintList()
231 textView.setCompoundDrawables(AppCompatResources.getDrawable( in testSetCompoundDrawablesTintMode()
267 textView.setCompoundDrawables(AppCompatResources.getDrawable( in testCompoundDrawablesSetAfterTint()
DAppCompatMultiAutoCompleteTextViewTest.java205 textView.setCompoundDrawables(AppCompatResources.getDrawable( in testSetCompoundDrawablesTintList()
234 textView.setCompoundDrawables(AppCompatResources.getDrawable( in testSetCompoundDrawablesTintMode()
271 textView.setCompoundDrawables(AppCompatResources.getDrawable( in testCompoundDrawablesSetAfterTint()
DAppCompatCheckBoxTest.java206 textView.setCompoundDrawables(AppCompatResources.getDrawable( in testSetCompoundDrawablesTintList()
233 textView.setCompoundDrawables(AppCompatResources.getDrawable( in testSetCompoundDrawablesTintMode()
269 textView.setCompoundDrawables(AppCompatResources.getDrawable( in testCompoundDrawablesSetAfterTint()
/appcompat/appcompat/src/main/java/androidx/appcompat/widget/
DAppCompatImageHelper.java57 Drawable drawable = mView.getDrawable(); in loadFromAttributes()
63 drawable = AppCompatResources.getDrawable(mView.getContext(), id); in loadFromAttributes()
90 final Drawable d = AppCompatResources.getDrawable(mView.getContext(), resId); in setImageResource()
141 final Drawable imageViewDrawable = mView.getDrawable(); in applySupportImageTint()
237 if (mView.getDrawable() != null) { in applyImageLevel()
238 mView.getDrawable().setLevel(mLevel); in applyImageLevel()
DAppCompatDrawableManager.java236 resourceManager.getDrawable(context, in preload()
238 resourceManager.getDrawable(context, in preload()
262 Drawable star = resourceManager.getDrawable(context, in preload()
264 Drawable halfStar = resourceManager.getDrawable(context, in preload()
470 public synchronized Drawable getDrawable(@NonNull Context context, @DrawableRes int resId) { in getDrawable() method in AppCompatDrawableManager
471 return mResourceManager.getDrawable(context, resId); in getDrawable()
474 synchronized Drawable getDrawable(@NonNull Context context, @DrawableRes int resId, in getDrawable() method in AppCompatDrawableManager
476 return mResourceManager.getDrawable(context, resId, failIfNotKnown); in getDrawable()
DTintTypedArray.java79 public Drawable getDrawable(int index) { in getDrawable() method in TintTypedArray
83 return AppCompatResources.getDrawable(mContext, resourceId); in getDrawable()
86 return mWrapped.getDrawable(index); in getDrawable()
93 return AppCompatDrawableManager.get().getDrawable(mContext, resourceId, true); in getDrawableIfKnown()
DAppCompatTextView.java705 left != 0 ? AppCompatResources.getDrawable(context, left) : null, in setCompoundDrawablesWithIntrinsicBounds()
706 top != 0 ? AppCompatResources.getDrawable(context, top) : null, in setCompoundDrawablesWithIntrinsicBounds()
707 right != 0 ? AppCompatResources.getDrawable(context, right) : null, in setCompoundDrawablesWithIntrinsicBounds()
708 bottom != 0 ? AppCompatResources.getDrawable(context, bottom) : null); in setCompoundDrawablesWithIntrinsicBounds()
728 start != 0 ? AppCompatResources.getDrawable(context, start) : null, in setCompoundDrawablesRelativeWithIntrinsicBounds()
729 top != 0 ? AppCompatResources.getDrawable(context, top) : null, in setCompoundDrawablesRelativeWithIntrinsicBounds()
730 end != 0 ? AppCompatResources.getDrawable(context, end) : null, in setCompoundDrawablesRelativeWithIntrinsicBounds()
731 bottom != 0 ? AppCompatResources.getDrawable(context, bottom) : null); in setCompoundDrawablesRelativeWithIntrinsicBounds()
DToolbarWidgetWrapper.java108 mDefaultNavigationIcon = a.getDrawable(R.styleable.ActionBar_homeAsUpIndicator); in ToolbarWidgetWrapper()
120 final Drawable logo = a.getDrawable(R.styleable.ActionBar_logo); in ToolbarWidgetWrapper()
125 final Drawable icon = a.getDrawable(R.styleable.ActionBar_icon); in ToolbarWidgetWrapper()
303 setIcon(resId != 0 ? AppCompatResources.getDrawable(getContext(), resId) : null); in setIcon()
314 setLogo(resId != 0 ? AppCompatResources.getDrawable(getContext(), resId) : null); in setLogo()
601 setNavigationIcon(resId != 0 ? AppCompatResources.getDrawable(getContext(), resId) : null); in setNavigationIcon()
/appcompat/appcompat-resources/src/main/java/androidx/appcompat/widget/
DResourcesWrapper.java131 public Drawable getDrawable(int id) throws NotFoundException { in getDrawable() method in ResourcesWrapper
132 return mResources.getDrawable(id); in getDrawable()
148 return super.getDrawable(id); in getDrawableCanonical()
153 public Drawable getDrawable(int id, Theme theme) throws NotFoundException { in getDrawable() method in ResourcesWrapper
154 return ResourcesCompat.getDrawable(mResources, id, theme); in getDrawable()
/appcompat/appcompat-resources/src/main/java/androidx/appcompat/content/res/
DAppCompatResources.java63 public static @Nullable Drawable getDrawable(@NonNull Context context, @DrawableRes int resId) { in getDrawable() method in AppCompatResources
64 return ResourceManagerInternal.get().getDrawable(context, resId); in getDrawable()
/appcompat/appcompat-resources/src/
Dbaseline-prof.txt4 HSPLandroidx/appcompat/content/res/AppCompatResources;->getDrawable(Landroid/content/Context;I)Land…
16 HSPLandroidx/appcompat/widget/ResourceManagerInternal;->getDrawable(Landroid/content/Context;I)Land…
17 HSPLandroidx/appcompat/widget/ResourceManagerInternal;->getDrawable(Landroid/content/Context;IZ)Lan…
/appcompat/appcompat/src/main/java/androidx/appcompat/view/menu/
DExpandedMenuView.java62 setBackgroundDrawable(a.getDrawable(0)); in ExpandedMenuView()
65 setDivider(a.getDrawable(1)); in ExpandedMenuView()
/appcompat/appcompat-resources/api/
Drestricted_1.6.0-beta02.txt6 …method public static android.graphics.drawable.Drawable? getDrawable(android.content.Context, @Dra…
39 method public android.graphics.drawable.Drawable? getDrawable();
70 …method public android.graphics.drawable.Drawable! getDrawable(android.content.Context, @DrawableRe…
100 …method public android.graphics.drawable.Drawable! getDrawable(int) throws android.content.res.Reso…
Drestricted_current.txt6 …method public static android.graphics.drawable.Drawable? getDrawable(android.content.Context, @Dra…
39 method public android.graphics.drawable.Drawable? getDrawable();
70 …method public android.graphics.drawable.Drawable! getDrawable(android.content.Context, @DrawableRe…
100 …method public android.graphics.drawable.Drawable! getDrawable(int) throws android.content.res.Reso…
Drestricted_1.6.0-beta01.txt6 …method public static android.graphics.drawable.Drawable? getDrawable(android.content.Context, @Dra…
39 method public android.graphics.drawable.Drawable? getDrawable();
70 …method public android.graphics.drawable.Drawable! getDrawable(android.content.Context, @DrawableRe…
100 …method public android.graphics.drawable.Drawable! getDrawable(int) throws android.content.res.Reso…
Drestricted_1.7.0-beta01.txt6 …method public static android.graphics.drawable.Drawable? getDrawable(android.content.Context, @Dra…
39 method public android.graphics.drawable.Drawable? getDrawable();
70 …method public android.graphics.drawable.Drawable! getDrawable(android.content.Context, @DrawableRe…
100 …method public android.graphics.drawable.Drawable! getDrawable(int) throws android.content.res.Reso…

12345