| /appcompat/appcompat-resources/src/androidTest/java/androidx/appcompat/widget/ |
| D | ResourceManagerInternalTest.kt | 40 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()
|
| D | VectorEnabledTintResourcesTest.java | 59 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()
|
| D | TintResourcesTest.java | 59 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()
|
| D | TestResources.java | 37 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/ |
| D | AppCompatResourcesTestCase.java | 63 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/ |
| D | AppCompatIconsTest.kt | 76 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()
|
| D | AppCompatToggleButtonTest.java | 174 textView.setCompoundDrawables(AppCompatResources.getDrawable( in testSetCompoundDrawablesTintList() 201 textView.setCompoundDrawables(AppCompatResources.getDrawable( in testSetCompoundDrawablesTintMode() 237 textView.setCompoundDrawables(AppCompatResources.getDrawable( in testCompoundDrawablesSetAfterTint()
|
| D | AppCompatBaseImageViewTest.java | 59 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()
|
| D | AppCompatRadioButtonTest.java | 207 textView.setCompoundDrawables(AppCompatResources.getDrawable( in testSetCompoundDrawablesTintList() 234 textView.setCompoundDrawables(AppCompatResources.getDrawable( in testSetCompoundDrawablesTintMode() 270 textView.setCompoundDrawables(AppCompatResources.getDrawable( in testCompoundDrawablesSetAfterTint()
|
| D | AppCompatAutoCompleteTextViewTest.java | 203 textView.setCompoundDrawables(AppCompatResources.getDrawable( in testSetCompoundDrawablesTintList() 231 textView.setCompoundDrawables(AppCompatResources.getDrawable( in testSetCompoundDrawablesTintMode() 267 textView.setCompoundDrawables(AppCompatResources.getDrawable( in testCompoundDrawablesSetAfterTint()
|
| D | AppCompatMultiAutoCompleteTextViewTest.java | 205 textView.setCompoundDrawables(AppCompatResources.getDrawable( in testSetCompoundDrawablesTintList() 234 textView.setCompoundDrawables(AppCompatResources.getDrawable( in testSetCompoundDrawablesTintMode() 271 textView.setCompoundDrawables(AppCompatResources.getDrawable( in testCompoundDrawablesSetAfterTint()
|
| D | AppCompatCheckBoxTest.java | 206 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/ |
| D | AppCompatImageHelper.java | 57 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()
|
| D | AppCompatDrawableManager.java | 236 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()
|
| D | TintTypedArray.java | 79 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()
|
| D | AppCompatTextView.java | 705 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()
|
| D | ToolbarWidgetWrapper.java | 108 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/ |
| D | ResourcesWrapper.java | 131 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/ |
| D | AppCompatResources.java | 63 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/ |
| D | baseline-prof.txt | 4 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/ |
| D | ExpandedMenuView.java | 62 setBackgroundDrawable(a.getDrawable(0)); in ExpandedMenuView() 65 setDivider(a.getDrawable(1)); in ExpandedMenuView()
|
| /appcompat/appcompat-resources/api/ |
| D | restricted_1.6.0-beta02.txt | 6 …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…
|
| D | restricted_current.txt | 6 …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…
|
| D | restricted_1.6.0-beta01.txt | 6 …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…
|
| D | restricted_1.7.0-beta01.txt | 6 …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…
|