Home
last modified time | relevance | path

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

12

/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DIconProvider.java23 import static android.graphics.drawable.AdaptiveIconDrawable.getExtraInsetFraction;
37 import android.graphics.drawable.AdaptiveIconDrawable;
133 if (ATLEAST_T && icon instanceof AdaptiveIconDrawable && td != null) { in getIconWithOverrides()
134 AdaptiveIconDrawable aid = (AdaptiveIconDrawable) icon; in getIconWithOverrides()
136 icon = new AdaptiveIconDrawable(aid.getBackground(), in getIconWithOverrides()
179 if (ATLEAST_T && drawable instanceof AdaptiveIconDrawable && td != null) { in loadCalendarDrawable()
180 AdaptiveIconDrawable aid = (AdaptiveIconDrawable) drawable; in loadCalendarDrawable()
189 : new AdaptiveIconDrawable(aid.getBackground(), aid.getForeground(), in loadCalendarDrawable()
DBaseIconFactory.java6 import static android.graphics.drawable.AdaptiveIconDrawable.getExtraInsetFraction;
28 import android.graphics.drawable.AdaptiveIconDrawable;
169 AdaptiveIconDrawable drawable = new AdaptiveIconDrawable( in createIconBitmap()
192 d = new AdaptiveIconDrawable(new ColorDrawable(Color.BLACK), in createShapedIconBitmap()
241 if (base instanceof AdaptiveIconDrawable) { in getMonochromeDrawable()
242 Drawable mono = ((AdaptiveIconDrawable) base).getMonochrome(); in getMonochromeDrawable()
283 new AdaptiveIconDrawable(new ColorDrawable(Color.WHITE), null), in getWhiteShadowLayer()
314 if (shrinkNonAdaptiveIcons && !(icon instanceof AdaptiveIconDrawable)) { in normalizeAndWrapToAdaptiveIcon()
319 AdaptiveIconDrawable dr = (AdaptiveIconDrawable) mWrapperIcon; in normalizeAndWrapToAdaptiveIcon()
378 if (icon instanceof AdaptiveIconDrawable) { in drawIconBitmap()
[all …]
DClockDrawableWrapper.java34 import android.graphics.drawable.AdaptiveIconDrawable;
57 public class ClockDrawableWrapper extends AdaptiveIconDrawable implements BitmapInfo.Extender {
91 private ClockDrawableWrapper(AdaptiveIconDrawable base) { in ClockDrawableWrapper()
113 return new AdaptiveIconDrawable(bg, fg); in applyThemeData()
129 if (d instanceof AdaptiveIconDrawable) { in getMonochrome()
130 Drawable mono = ((AdaptiveIconDrawable) d).getForeground(); in getMonochrome()
172 if (!(drawable instanceof AdaptiveIconDrawable)) { in forExtras()
175 AdaptiveIconDrawable aid = (AdaptiveIconDrawable) drawable; in forExtras()
205 wrapper.mThemeInfo = info.copyForIcon(new AdaptiveIconDrawable( in forExtras()
215 AdaptiveIconDrawable background = new AdaptiveIconDrawable( in getExtendedInfo()
[all …]
DGraphicsUtils.java28 import android.graphics.drawable.AdaptiveIconDrawable;
120 AdaptiveIconDrawable drawable = new AdaptiveIconDrawable( in getShapePath()
DIconNormalizer.java33 import android.graphics.drawable.AdaptiveIconDrawable;
140 Path path = ((AdaptiveIconDrawable) d).getIconMask(); in normalizeAdaptiveIcon()
241 if (d instanceof AdaptiveIconDrawable) { in getScale()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DBubbleBadgeIconFactory.java24 import android.graphics.drawable.AdaptiveIconDrawable;
46 if (userBadgedAppIcon instanceof AdaptiveIconDrawable) { in getBadgeBitmap()
47 AdaptiveIconDrawable ad = (AdaptiveIconDrawable) userBadgedAppIcon; in getBadgeBitmap()
89 private static class CircularAdaptiveIcon extends AdaptiveIconDrawable {
DBubbleOverflow.kt24 import android.graphics.drawable.AdaptiveIconDrawable
100 AdaptiveIconDrawable(ColorDrawable(colorAccent), fg)).icon in updateBtnTheme()
/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;
57 if (!(drawable instanceof AdaptiveIconDrawable)) { in wrapIconDrawableWithShadow()
60 Bitmap shadow = getShadowBitmap((AdaptiveIconDrawable) drawable); in wrapIconDrawableWithShadow()
64 private Bitmap getShadowBitmap(AdaptiveIconDrawable d) { in getShadowBitmap()
/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/core/java/com/android/internal/app/
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()
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
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()
/frameworks/base/graphics/java/android/graphics/drawable/
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()
DDrawableInflater.java161 return new AdaptiveIconDrawable(); in inflateFromTag()
DIcon.java371 return new AdaptiveIconDrawable(null, in loadDrawableInner()
425 return new AdaptiveIconDrawable(null, new BitmapDrawable(context.getResources(), in loadDrawableInner()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/
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;
DSplashscreenContentDrawer.java46 import android.graphics.drawable.AdaptiveIconDrawable;
466 if (!(iconDrawable instanceof AdaptiveIconDrawable)) { in processAdaptiveIcon()
471 final AdaptiveIconDrawable adaptiveIconDrawable = (AdaptiveIconDrawable) iconDrawable; in processAdaptiveIcon()
/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;
1444 return new AdaptiveIconDrawable(null, dr); in loadDrawableFromFileDescriptor()
DPackageManager.java59 import android.graphics.drawable.AdaptiveIconDrawable;
10164 int resId = drawable instanceof AdaptiveIconDrawable in isDefaultApplicationIcon()
10165 ? ((AdaptiveIconDrawable) drawable).getSourceDrawableResId() : Resources.ID_NULL; in isDefaultApplicationIcon()
/frameworks/base/config/
Ddirty-image-objects86 Landroid/graphics/drawable/AdaptiveIconDrawable;

12