Home
last modified time | relevance | path

Searched refs:AdaptiveIconDrawable (Results 1 – 25 of 32) sorted by relevance

12

/aosp14/frameworks/base/packages/SystemUI/accessibility/accessibilitymenu/src/com/android/systemui/accessibility/accessibilitymenu/utils/
H A DShortcutDrawableUtils.java26 import android.graphics.drawable.AdaptiveIconDrawable;
91 AdaptiveIconDrawable adaptiveIconDrawable = in createAdaptiveIconDrawable()
92 new AdaptiveIconDrawable(circleLayer, mTransparentDrawable); in createAdaptiveIconDrawable()
/aosp14/frameworks/base/core/tests/coretests/src/android/graphics/drawable/
H A DAdaptiveIconDrawableTest.java51 private AdaptiveIconDrawable mIconDrawable;
62 mIconDrawable = new AdaptiveIconDrawable(mBackgroundDrawable, mForegroundDrawable); in testDraw_withoutBounds()
92 …mIconDrawable = (AdaptiveIconDrawable) getContext().getResources().getDrawable(android.R.drawable.… in testDraw_withBounds()
132 mIconDrawable = new AdaptiveIconDrawable(mBackgroundDrawable, mForegroundDrawable); in testGetIconMask_withoutBounds()
158 mIconDrawable = new AdaptiveIconDrawable(mBackgroundDrawable, mForegroundDrawable); in testGetIconMaskAfterSetBounds()
179 mIconDrawable = new AdaptiveIconDrawable(mBackgroundDrawable, mForegroundDrawable); in testGetOutline_withBounds()
187 mIconDrawable = new AdaptiveIconDrawable(mBackgroundDrawable, mForegroundDrawable); in testSetAlpha()
H A DIconTest.java136 final AdaptiveIconDrawable draw1 = (AdaptiveIconDrawable) im1.loadDrawable(mContext); in testWithAdaptiveBitmap()
139 … (int)(draw1.getIntrinsicWidth() * (1 + 2 * AdaptiveIconDrawable.getExtraInsetFraction())), in testWithAdaptiveBitmap()
140 … (int)(draw1.getIntrinsicHeight() * (1 + 2 * AdaptiveIconDrawable.getExtraInsetFraction())), in testWithAdaptiveBitmap()
144 … (int) (draw1.getIntrinsicWidth() * (1 + 2 * AdaptiveIconDrawable.getExtraInsetFraction())), in testWithAdaptiveBitmap()
145 … (int) (draw1.getIntrinsicHeight() * (1 + 2 * AdaptiveIconDrawable.getExtraInsetFraction()))); in testWithAdaptiveBitmap()
414 final AdaptiveIconDrawable adaptiveDrawable = (AdaptiveIconDrawable) ic.loadDrawable( in testScaleDownMaxSizeWithAdaptiveBitmap()
/aosp14/frameworks/base/core/java/android/util/
H A DLauncherIcons.java26 import android.graphics.drawable.AdaptiveIconDrawable;
57 if (!(drawable instanceof AdaptiveIconDrawable)) { in wrapIconDrawableWithShadow()
60 Bitmap shadow = getShadowBitmap((AdaptiveIconDrawable) drawable); in wrapIconDrawableWithShadow()
64 private Bitmap getShadowBitmap(AdaptiveIconDrawable d) { in getShadowBitmap()
/aosp14/frameworks/base/core/java/com/android/internal/app/
H A DSimpleIconFactory.java22 import static android.graphics.drawable.AdaptiveIconDrawable.getExtraInsetFraction;
43 import android.graphics.drawable.AdaptiveIconDrawable;
219 if (icon instanceof AdaptiveIconDrawable) { in createUserBadgedIconBitmap()
349 if (icon instanceof AdaptiveIconDrawable) { in createIconBitmap()
350 final AdaptiveIconDrawable adi = (AdaptiveIconDrawable) icon; in createIconBitmap()
430 AdaptiveIconDrawable dr = (AdaptiveIconDrawable) mWrapperIcon; in normalizeAndWrapToAdaptiveIcon()
433 if (!(icon instanceof AdaptiveIconDrawable)) { in normalizeAndWrapToAdaptiveIcon()
489 if (d instanceof AdaptiveIconDrawable) { in getScale()
602 if (d instanceof AdaptiveIconDrawable && mAdaptiveIconScale == SCALE_NOT_INITIALIZED) { in getScale()
/aosp14/frameworks/base/packages/SettingsLib/AdaptiveIcon/src/com/android/settingslib/widget/
H A DAdaptiveIconShapeDrawable.java22 import android.graphics.drawable.AdaptiveIconDrawable;
54 final float pathSize = AdaptiveIconDrawable.MASK_SIZE; in init()
H A DAdaptiveOutlineDrawable.java27 import android.graphics.drawable.AdaptiveIconDrawable;
126 final float pathSize = AdaptiveIconDrawable.MASK_SIZE; in draw()
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
H A DLocalImageResolverTest.java23 import android.graphics.drawable.AdaptiveIconDrawable;
114 assertThat(d).isInstanceOf(AdaptiveIconDrawable.class); in resolveImage_largeAdaptiveBitmapIcon_defaultSize_resizeToDefaultSize()
115 BitmapDrawable bd = (BitmapDrawable) ((AdaptiveIconDrawable) d).getForeground(); in resolveImage_largeAdaptiveBitmapIcon_defaultSize_resizeToDefaultSize()
228 assertThat(d).isInstanceOf(AdaptiveIconDrawable.class); in resolveImage_largeAdaptiveBitmapIcon_passedSize_resizeToDefinedSize()
229 BitmapDrawable bd = (BitmapDrawable) ((AdaptiveIconDrawable) d).getForeground(); in resolveImage_largeAdaptiveBitmapIcon_passedSize_resizeToDefinedSize()
269 assertThat(d).isInstanceOf(AdaptiveIconDrawable.class); in resolveImage_smallAdaptiveBitmapIcon_defaultSize_untouched()
270 BitmapDrawable bd = (BitmapDrawable) ((AdaptiveIconDrawable) d).getForeground(); in resolveImage_smallAdaptiveBitmapIcon_defaultSize_untouched()
/aosp14/frameworks/base/graphics/java/android/graphics/drawable/
H A DAdaptiveIconDrawable.java82 public class AdaptiveIconDrawable extends Drawable implements Drawable.Callback { class
150 AdaptiveIconDrawable() { in AdaptiveIconDrawable() method in AdaptiveIconDrawable
158 AdaptiveIconDrawable(@Nullable LayerState state, @Nullable Resources res) { in AdaptiveIconDrawable() method in AdaptiveIconDrawable
194 public AdaptiveIconDrawable(Drawable backgroundDrawable, in AdaptiveIconDrawable() method in AdaptiveIconDrawable
206 public AdaptiveIconDrawable(@Nullable Drawable backgroundDrawable, in AdaptiveIconDrawable() method in AdaptiveIconDrawable
933 ChildDrawable(@NonNull ChildDrawable orig, @NonNull AdaptiveIconDrawable owner, in ChildDrawable()
999 LayerState(@Nullable LayerState orig, @NonNull AdaptiveIconDrawable owner, in LayerState()
1054 return new AdaptiveIconDrawable(this, null); in newDrawable()
1059 return new AdaptiveIconDrawable(this, res); in newDrawable()
H A DDrawableInflater.java161 return new AdaptiveIconDrawable(); in inflateFromTag()
H A DIcon.java410 return new AdaptiveIconDrawable(null, in loadDrawableInner()
465 return new AdaptiveIconDrawable(null, new BitmapDrawable(context.getResources(), in loadDrawableInner()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/
H A DSplashscreenIconDrawableFactory.java35 import android.graphics.drawable.AdaptiveIconDrawable;
73 } else if (foregroundDrawable instanceof AdaptiveIconDrawable) { in makeIconDrawable()
163 private static final float MASK_SIZE = AdaptiveIconDrawable.MASK_SIZE;
H A DSplashscreenContentDrawer.java46 import android.graphics.drawable.AdaptiveIconDrawable;
657 if (!(iconDrawable instanceof AdaptiveIconDrawable)) { in processAdaptiveIcon()
662 final AdaptiveIconDrawable adaptiveIconDrawable = (AdaptiveIconDrawable) iconDrawable; in processAdaptiveIcon()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
H A DBubbleOverflow.kt25 import android.graphics.drawable.AdaptiveIconDrawable
123 .createBadgedIconBitmap(AdaptiveIconDrawable(ColorDrawable(colorAccent), fg))
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/graphics/
H A DImageLoader.kt31 import android.graphics.drawable.AdaptiveIconDrawable
348 AdaptiveIconDrawable(null, BitmapDrawable(context.resources, icon.bitmap))
/aosp14/frameworks/base/core/java/android/view/textclassifier/
H A DTextClassification.java31 import android.graphics.drawable.AdaptiveIconDrawable;
802 return new AdaptiveIconDrawable(null,
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DSmartReplyStateInflater.kt28 import android.graphics.drawable.AdaptiveIconDrawable
334 AdaptiveIconDrawable(null, bitmapDrawable) else bitmapDrawable
/aosp14/frameworks/base/core/java/android/content/pm/
H A DShortcutManager.java38 import android.graphics.drawable.AdaptiveIconDrawable;
H A DLauncherApps.java51 import android.graphics.drawable.AdaptiveIconDrawable;
1501 return new AdaptiveIconDrawable(null, dr); in loadDrawableFromFileDescriptor()
H A DPackageManager.java60 import android.graphics.drawable.AdaptiveIconDrawable;
10600 int resId = drawable instanceof AdaptiveIconDrawable in isDefaultApplicationIcon()
10601 ? ((AdaptiveIconDrawable) drawable).getSourceDrawableResId() : Resources.ID_NULL; in isDefaultApplicationIcon()
/aosp14/frameworks/base/config/
H A Ddirty-image-objects66 Landroid/graphics/drawable/AdaptiveIconDrawable;
H A Dboot-image-profile.txt6908AdaptiveIconDrawable$ChildDrawable;-><init>(Landroid/graphics/drawable/AdaptiveIconDrawable$ChildD…
6910 …le/AdaptiveIconDrawable$LayerState;-><init>(Landroid/graphics/drawable/AdaptiveIconDrawable$LayerS…
6917 HSPLandroid/graphics/drawable/AdaptiveIconDrawable;-><init>(Landroid/graphics/drawable/AdaptiveIcon…
6918 HSPLandroid/graphics/drawable/AdaptiveIconDrawable;->addLayer(ILandroid/graphics/drawable/AdaptiveI…
6920AdaptiveIconDrawable;->createConstantState(Landroid/graphics/drawable/AdaptiveIconDrawable$LayerSt…
6927 HSPLandroid/graphics/drawable/AdaptiveIconDrawable;->getOpacity()I
6932 HSPLandroid/graphics/drawable/AdaptiveIconDrawable;->isStateful()Z
35079 Landroid/graphics/drawable/AdaptiveIconDrawable$ChildDrawable;
35080 Landroid/graphics/drawable/AdaptiveIconDrawable$LayerState;
35081 Landroid/graphics/drawable/AdaptiveIconDrawable;
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/pm/
H A DShortcutService.java71 import android.graphics.drawable.AdaptiveIconDrawable;
1552 maxIconDimension *= (1 + 2 * AdaptiveIconDrawable.getExtraInsetFraction()); in saveIconAndFixUpShortcutLocked()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DShortcutManagerTest1.java90 import android.graphics.drawable.AdaptiveIconDrawable;
969 assertTrue(dr_bmp instanceof AdaptiveIconDrawable); in testIcons()
970 float viewportPercentage = 1 / (1 + 2 * AdaptiveIconDrawable.getExtraInsetFraction()); in testIcons()
/aosp14/frameworks/base/boot/
H A Dboot-image-profile.txt6905AdaptiveIconDrawable$ChildDrawable;-><init>(Landroid/graphics/drawable/AdaptiveIconDrawable$ChildD…
6907 …le/AdaptiveIconDrawable$LayerState;-><init>(Landroid/graphics/drawable/AdaptiveIconDrawable$LayerS…
6914 HSPLandroid/graphics/drawable/AdaptiveIconDrawable;-><init>(Landroid/graphics/drawable/AdaptiveIcon…
6915 HSPLandroid/graphics/drawable/AdaptiveIconDrawable;->addLayer(ILandroid/graphics/drawable/AdaptiveI…
6917AdaptiveIconDrawable;->createConstantState(Landroid/graphics/drawable/AdaptiveIconDrawable$LayerSt…
6924 HSPLandroid/graphics/drawable/AdaptiveIconDrawable;->getOpacity()I
6929 HSPLandroid/graphics/drawable/AdaptiveIconDrawable;->isStateful()Z
24972 Landroid/graphics/drawable/AdaptiveIconDrawable$ChildDrawable;
24973 Landroid/graphics/drawable/AdaptiveIconDrawable$LayerState;
24974 Landroid/graphics/drawable/AdaptiveIconDrawable;
[all …]

12