Home
last modified time | relevance | path

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

12

/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DThemedIconDrawable.java33 import android.graphics.drawable.AdaptiveIconDrawable;
65 private final AdaptiveIconDrawable mBgWrapper;
75 mBgWrapper = new AdaptiveIconDrawable(new ColorDrawable(colorBg), null); in ThemedIconDrawable()
227 if (!(original instanceof AdaptiveIconDrawable)) { in wrapDrawable()
230 AdaptiveIconDrawable aid = (AdaptiveIconDrawable) original; in wrapDrawable()
249 static class ThemedAdaptiveIcon extends AdaptiveIconDrawable implements Extender {
253 public ThemedAdaptiveIcon(AdaptiveIconDrawable parent, ThemeData themeData) { in ThemedAdaptiveIcon()
277 return new AdaptiveIconDrawable(bg, fg); in getThemedDrawable()
DClockDrawableWrapper.java35 import android.graphics.drawable.AdaptiveIconDrawable;
60 public class ClockDrawableWrapper extends AdaptiveIconDrawable implements BitmapInfo.Extender {
94 public ClockDrawableWrapper(AdaptiveIconDrawable base) { in ClockDrawableWrapper()
134 return new AdaptiveIconDrawable(bg, fg); in fromThemeData()
156 if (!(drawable instanceof AdaptiveIconDrawable)) { in forExtras()
161 new ClockDrawableWrapper((AdaptiveIconDrawable) drawable); in forExtras()
197 AdaptiveIconDrawable background = new AdaptiveIconDrawable( in getExtendedInfo()
347 private final AdaptiveIconDrawable mFullDrawable;
354 mFullDrawable = (AdaptiveIconDrawable) mInfo.animInfo.baseDrawableState in ClockIconDrawable()
DBaseIconFactory.java19 import android.graphics.drawable.AdaptiveIconDrawable;
144 AdaptiveIconDrawable drawable = new AdaptiveIconDrawable( in createIconBitmap()
165 float inset = AdaptiveIconDrawable.getExtraInsetFraction(); in createShapedIconBitmap()
167 d = new AdaptiveIconDrawable(new ColorDrawable(Color.BLACK), in createShapedIconBitmap()
219 if (ATLEAST_OREO && icon instanceof AdaptiveIconDrawable) { in createBadgedIconBitmap()
301 AdaptiveIconDrawable dr = (AdaptiveIconDrawable) mWrapperIcon; in normalizeAndWrapToAdaptiveIcon()
305 if (!(icon instanceof AdaptiveIconDrawable) && !outShape[0]) { in normalizeAndWrapToAdaptiveIcon()
361 if (ATLEAST_OREO && icon instanceof AdaptiveIconDrawable) { in createIconBitmap()
DGraphicsUtils.java26 import android.graphics.drawable.AdaptiveIconDrawable;
102 AdaptiveIconDrawable drawable = new AdaptiveIconDrawable( in getShapePath()
DIconNormalizer.java33 import android.graphics.drawable.AdaptiveIconDrawable;
140 Path path = ((AdaptiveIconDrawable) d).getIconMask(); in normalizeAdaptiveIcon()
241 if (BaseIconFactory.ATLEAST_OREO && d instanceof AdaptiveIconDrawable) { in getScale()
/frameworks/layoutlib/bridge/src/android/graphics/drawable/
DAdaptiveIconDrawable_Delegate.java30 /*package*/ static void constructor_after(AdaptiveIconDrawable icon) { in constructor_after()
34 AdaptiveIconDrawable.sMask = PathParser.createPathFromPathData(pathString); in constructor_after()
/frameworks/base/core/tests/coretests/src/android/graphics/drawable/
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()
DIconTest.java135 final AdaptiveIconDrawable draw1 = (AdaptiveIconDrawable) im1.loadDrawable(mContext); in testWithAdaptiveBitmap()
138 … (int)(draw1.getIntrinsicWidth() * (1 + 2 * AdaptiveIconDrawable.getExtraInsetFraction())), in testWithAdaptiveBitmap()
139 … (int)(draw1.getIntrinsicHeight() * (1 + 2 * AdaptiveIconDrawable.getExtraInsetFraction())), in testWithAdaptiveBitmap()
143 … (int) (draw1.getIntrinsicWidth() * (1 + 2 * AdaptiveIconDrawable.getExtraInsetFraction())), in testWithAdaptiveBitmap()
144 … (int) (draw1.getIntrinsicHeight() * (1 + 2 * AdaptiveIconDrawable.getExtraInsetFraction()))); in testWithAdaptiveBitmap()
/frameworks/base/core/java/android/util/
DLauncherIcons.java26 import android.graphics.drawable.AdaptiveIconDrawable;
55 if (!(drawable instanceof AdaptiveIconDrawable)) { in wrapIconDrawableWithShadow()
58 Bitmap shadow = getShadowBitmap((AdaptiveIconDrawable) drawable); in wrapIconDrawableWithShadow()
62 private Bitmap getShadowBitmap(AdaptiveIconDrawable d) { in getShadowBitmap()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DBubbleIconFactory.java28 import android.graphics.drawable.AdaptiveIconDrawable;
87 if (userBadgedAppIcon instanceof AdaptiveIconDrawable) { in getBadgeBitmap()
89 getCircleBitmap((AdaptiveIconDrawable) userBadgedAppIcon, /* size */ in getBadgeBitmap()
128 public Bitmap getCircleBitmap(AdaptiveIconDrawable icon, int size) { in getCircleBitmap()
DBubbleOverflow.kt24 import android.graphics.drawable.AdaptiveIconDrawable
98 bitmap = iconFactory.createBadgedIconBitmap(AdaptiveIconDrawable( in updateBtnTheme()
/frameworks/base/core/java/com/android/internal/app/
DSimpleIconFactory.java22 import static android.graphics.drawable.AdaptiveIconDrawable.getExtraInsetFraction;
43 import android.graphics.drawable.AdaptiveIconDrawable;
206 if (icon instanceof AdaptiveIconDrawable) { in createUserBadgedIconBitmap()
336 if (icon instanceof AdaptiveIconDrawable) { in createIconBitmap()
337 final AdaptiveIconDrawable adi = (AdaptiveIconDrawable) icon; in createIconBitmap()
417 AdaptiveIconDrawable dr = (AdaptiveIconDrawable) mWrapperIcon; in normalizeAndWrapToAdaptiveIcon()
420 if (!(icon instanceof AdaptiveIconDrawable)) { in normalizeAndWrapToAdaptiveIcon()
476 if (d instanceof AdaptiveIconDrawable) { in getScale()
589 if (d instanceof AdaptiveIconDrawable && mAdaptiveIconScale == SCALE_NOT_INITIALIZED) { in getScale()
/frameworks/base/packages/SettingsLib/AdaptiveIcon/src/com/android/settingslib/widget/
DAdaptiveIconShapeDrawable.java22 import android.graphics.drawable.AdaptiveIconDrawable;
54 final float pathSize = AdaptiveIconDrawable.MASK_SIZE; in init()
DAdaptiveOutlineDrawable.java27 import android.graphics.drawable.AdaptiveIconDrawable;
126 final float pathSize = AdaptiveIconDrawable.MASK_SIZE; in draw()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/
DSplashscreenIconDrawableFactory.java36 import android.graphics.drawable.AdaptiveIconDrawable;
67 } else if (foregroundDrawable instanceof AdaptiveIconDrawable) { in makeIconDrawable()
152 private static final float MASK_SIZE = AdaptiveIconDrawable.MASK_SIZE;
DSplashscreenContentDrawer.java41 import android.graphics.drawable.AdaptiveIconDrawable;
409 if (!(iconDrawable instanceof AdaptiveIconDrawable)) { in processAdaptiveIcon()
414 final AdaptiveIconDrawable adaptiveIconDrawable = (AdaptiveIconDrawable) iconDrawable; in processAdaptiveIcon()
/frameworks/base/graphics/java/android/graphics/drawable/
DAdaptiveIconDrawable.java78 public class AdaptiveIconDrawable extends Drawable implements Drawable.Callback { class
145 AdaptiveIconDrawable() { in AdaptiveIconDrawable() method in AdaptiveIconDrawable
153 AdaptiveIconDrawable(@Nullable LayerState state, @Nullable Resources res) { in AdaptiveIconDrawable() method in AdaptiveIconDrawable
189 public AdaptiveIconDrawable(Drawable backgroundDrawable, in AdaptiveIconDrawable() method in AdaptiveIconDrawable
902 ChildDrawable(@NonNull ChildDrawable orig, @NonNull AdaptiveIconDrawable owner, in ChildDrawable()
968 LayerState(@Nullable LayerState orig, @NonNull AdaptiveIconDrawable owner, in LayerState()
1023 return new AdaptiveIconDrawable(this, null); in newDrawable()
1028 return new AdaptiveIconDrawable(this, res); in newDrawable()
DDrawableInflater.java166 return new AdaptiveIconDrawable(); in inflateFromTag()
DIcon.java356 return new AdaptiveIconDrawable(null, in loadDrawableInner()
410 return new AdaptiveIconDrawable(null, new BitmapDrawable(context.getResources(), in loadDrawableInner()
/frameworks/base/core/java/android/view/textclassifier/
DTextClassification.java30 import android.graphics.drawable.AdaptiveIconDrawable;
800 return new AdaptiveIconDrawable(null,
/frameworks/base/core/java/android/content/pm/
DShortcutManager.java36 import android.graphics.drawable.AdaptiveIconDrawable;
DLauncherApps.java50 import android.graphics.drawable.AdaptiveIconDrawable;
1404 return new AdaptiveIconDrawable(null, dr); in loadDrawableFromFileDescriptor()
DPackageManager.java57 import android.graphics.drawable.AdaptiveIconDrawable;
8923 int resId = drawable instanceof AdaptiveIconDrawable in isDefaultApplicationIcon()
8924 ? ((AdaptiveIconDrawable) drawable).getSourceDrawableResId() : Resources.ID_NULL; in isDefaultApplicationIcon()
/frameworks/base/config/
Ddirty-image-objects86 Landroid/graphics/drawable/AdaptiveIconDrawable;
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutService.java67 import android.graphics.drawable.AdaptiveIconDrawable;
1534 maxIconDimension *= (1 + 2 * AdaptiveIconDrawable.getExtraInsetFraction()); in saveIconAndFixUpShortcutLocked()

12