Home
last modified time | relevance | path

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

12

/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DBaseIconFactory.java6 import static android.graphics.drawable.AdaptiveIconDrawable.getExtraInsetFraction;
26 import android.graphics.drawable.AdaptiveIconDrawable;
170 AdaptiveIconDrawable drawable = new AdaptiveIconDrawable( in createIconBitmap()
193 d = new AdaptiveIconDrawable(new ColorDrawable(Color.BLACK), in createShapedIconBitmap()
215 AdaptiveIconDrawable adaptiveIcon = normalizeAndWrapToAdaptiveIcon(icon, null, scale); in createBadgedIconBitmap()
241 protected Drawable getMonochromeDrawable(AdaptiveIconDrawable base) { in getMonochromeDrawable()
290 new AdaptiveIconDrawable(new ColorDrawable(Color.WHITE), null), in getWhiteShadowLayer()
313 protected AdaptiveIconDrawable normalizeAndWrapToAdaptiveIcon(@Nullable Drawable icon, in normalizeAndWrapToAdaptiveIcon()
319 AdaptiveIconDrawable adaptiveIcon; in normalizeAndWrapToAdaptiveIcon()
348 public AdaptiveIconDrawable wrapToAdaptiveIcon(@NonNull Drawable icon, in wrapToAdaptiveIcon()
[all …]
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()
DClockDrawableWrapper.java34 import android.graphics.drawable.AdaptiveIconDrawable;
57 public class ClockDrawableWrapper extends AdaptiveIconDrawable implements BitmapInfo.Extender {
93 private ClockDrawableWrapper(AdaptiveIconDrawable base) { in ClockDrawableWrapper()
115 return new AdaptiveIconDrawable(bg, fg); in applyThemeData()
131 if (d instanceof AdaptiveIconDrawable) { in getMonochrome()
132 Drawable mono = ((AdaptiveIconDrawable) d).getForeground(); in getMonochrome()
174 if (!(drawable instanceof AdaptiveIconDrawable)) { in forExtras()
177 AdaptiveIconDrawable aid = (AdaptiveIconDrawable) drawable; in forExtras()
207 wrapper.mThemeInfo = info.copyForIcon(new AdaptiveIconDrawable( in forExtras()
217 AdaptiveIconDrawable background = new AdaptiveIconDrawable( in getExtendedInfo()
[all …]
DBubbleIconFactory.java11 import android.graphics.drawable.AdaptiveIconDrawable;
91 if (userBadgedAppIcon instanceof AdaptiveIconDrawable) { in getBadgeBitmap()
92 AdaptiveIconDrawable ad = (AdaptiveIconDrawable) userBadgedAppIcon; in getBadgeBitmap()
128 private static class CircularAdaptiveIcon extends AdaptiveIconDrawable {
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/layoutlib/bridge/src/android/graphics/drawable/
DAdaptiveIconDrawable_Delegate.java44 public static void draw(AdaptiveIconDrawable thisDrawable, Canvas canvas) { in draw()
48 AdaptiveIconDrawable themedIcon = in draw()
61 private static AdaptiveIconDrawable createThemedVersionFromMonochrome(Drawable mono, in createThemedVersionFromMonochrome()
66 return new AdaptiveIconDrawable(new ColorDrawable(colors[0]), mono); in createThemedVersionFromMonochrome()
/frameworks/base/packages/SystemUI/accessibility/accessibilitymenu/src/com/android/systemui/accessibility/accessibilitymenu/utils/
DShortcutDrawableUtils.java26 import android.graphics.drawable.AdaptiveIconDrawable;
91 AdaptiveIconDrawable adaptiveIconDrawable = in createAdaptiveIconDrawable()
92 new AdaptiveIconDrawable(circleLayer, mTransparentDrawable); in createAdaptiveIconDrawable()
/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.java167 final AdaptiveIconDrawable draw1 = (AdaptiveIconDrawable) im1.loadDrawable(mContext); in testWithAdaptiveBitmap()
170 … (int)(draw1.getIntrinsicWidth() * (1 + 2 * AdaptiveIconDrawable.getExtraInsetFraction())), in testWithAdaptiveBitmap()
171 … (int)(draw1.getIntrinsicHeight() * (1 + 2 * AdaptiveIconDrawable.getExtraInsetFraction())), in testWithAdaptiveBitmap()
175 … (int) (draw1.getIntrinsicWidth() * (1 + 2 * AdaptiveIconDrawable.getExtraInsetFraction())), in testWithAdaptiveBitmap()
176 … (int) (draw1.getIntrinsicHeight() * (1 + 2 * AdaptiveIconDrawable.getExtraInsetFraction()))); in testWithAdaptiveBitmap()
318 assertThat(draw1 instanceof AdaptiveIconDrawable).isTrue(); in testWithAdaptiveIconResource_dontUseMonochrome()
319 ColorDrawable colorDrawableMono = (ColorDrawable) ((AdaptiveIconDrawable) draw1) in testWithAdaptiveIconResource_dontUseMonochrome()
322 ColorDrawable colorDrawableFg = (ColorDrawable) ((AdaptiveIconDrawable) draw1) in testWithAdaptiveIconResource_dontUseMonochrome()
325 ColorDrawable colorDrawableBg = (ColorDrawable) ((AdaptiveIconDrawable) draw1) in testWithAdaptiveIconResource_dontUseMonochrome()
493 final AdaptiveIconDrawable adaptiveDrawable = (AdaptiveIconDrawable) ic.loadDrawable( in testScaleDownMaxSizeWithAdaptiveBitmap()
/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;
128 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/services/core/java/com/android/server/notification/
DGroupHelper.java33 import android.graphics.drawable.AdaptiveIconDrawable;
374 if (appIcon instanceof AdaptiveIconDrawable) { in getMonochromeAppIcon()
375 if (((AdaptiveIconDrawable) appIcon).getMonochrome() != null) { in getMonochromeAppIcon()
377 ((AdaptiveIconDrawable) appIcon).getSourceDrawableResId(), true, in getMonochromeAppIcon()
378 -2.0f * AdaptiveIconDrawable.getExtraInsetFraction()); in getMonochromeAppIcon()
/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()
DIcon.java396 if (drawable instanceof AdaptiveIconDrawable) { in crateMonochromeDrawable()
397 Drawable monochromeDrawable = ((AdaptiveIconDrawable) drawable).getMonochrome(); in crateMonochromeDrawable()
451 return new AdaptiveIconDrawable(null, in loadDrawableInner()
519 return new AdaptiveIconDrawable(null, new BitmapDrawable(context.getResources(), in loadDrawableInner()
DDrawableInflater.java161 return new AdaptiveIconDrawable(); in inflateFromTag()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/
DSplashscreenIconDrawableFactory.java35 import android.graphics.drawable.AdaptiveIconDrawable;
74 } else if (foregroundDrawable instanceof AdaptiveIconDrawable) { in makeIconDrawable()
174 private static final float MASK_SIZE = AdaptiveIconDrawable.MASK_SIZE;
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DBubbleOverflow.kt25 import android.graphics.drawable.AdaptiveIconDrawable
147 .createBadgedIconBitmap(AdaptiveIconDrawable(ColorDrawable(colorAccent), fg)) in updateBtnTheme()
/frameworks/base/packages/SystemUI/src/com/android/systemui/graphics/
DImageLoader.kt31 import android.graphics.drawable.AdaptiveIconDrawable in <lambda>()
348 AdaptiveIconDrawable(null, BitmapDrawable(context.resources, icon.bitmap)) in <lambda>()
/frameworks/base/core/java/android/view/textclassifier/
DTextClassification.java31 import android.graphics.drawable.AdaptiveIconDrawable;
802 return new AdaptiveIconDrawable(null,
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSmartReplyStateInflater.kt28 import android.graphics.drawable.AdaptiveIconDrawable in <lambda>()
334 AdaptiveIconDrawable(null, bitmapDrawable) else bitmapDrawable in inflateActionButton()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DStatusBarIconView.java39 import android.graphics.drawable.AdaptiveIconDrawable;
546 if (appIcon instanceof AdaptiveIconDrawable) { in maybeGetMonochromeAppIcon()
547 Drawable monochrome = ((AdaptiveIconDrawable) appIcon).getMonochrome(); in maybeGetMonochromeAppIcon()

12