Home
last modified time | relevance | path

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

12

/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/mono/
DMonoIconThemeController.kt30 import android.graphics.drawable.AdaptiveIconDrawable in <lambda>()
55 icon: AdaptiveIconDrawable, in <lambda>()
85 base: AdaptiveIconDrawable, in <lambda>()
124 originalIcon: AdaptiveIconDrawable, in <lambda>()
126 ): AdaptiveIconDrawable? { in <lambda>()
143 AdaptiveIconDrawable.getExtraInsetFraction() / 2, in <lambda>()
149 return monoDrawable?.let { AdaptiveIconDrawable(ColorDrawable(colors[0]), it) } in <lambda>()
156 ) : InsetDrawable(base, -AdaptiveIconDrawable.getExtraInsetFraction()) { in <lambda>()
158 private val mCrop = AdaptiveIconDrawable(ColorDrawable(Color.BLACK), null) in <lambda>()
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DThemedBitmap.kt20 import android.graphics.drawable.AdaptiveIconDrawable
38 icon: AdaptiveIconDrawable, in newDrawable()
53 originalIcon: AdaptiveIconDrawable, in newDrawable()
55 ): AdaptiveIconDrawable? in newDrawable()
DBaseIconFactory.java7 import static android.graphics.drawable.AdaptiveIconDrawable.getExtraInsetFraction;
28 import android.graphics.drawable.AdaptiveIconDrawable;
171 AdaptiveIconDrawable drawable = new AdaptiveIconDrawable( in createIconBitmap()
190 public AdaptiveIconDrawable createShapedAdaptiveIcon(Bitmap iconBitmap) { in createShapedAdaptiveIcon()
194 return new AdaptiveIconDrawable(new ColorDrawable(Color.BLACK), in createShapedAdaptiveIcon()
224 AdaptiveIconDrawable adaptiveIcon = normalizeAndWrapToAdaptiveIcon(tempIcon, scale); in createBadgedIconBitmap()
293 public Path getShapePath(AdaptiveIconDrawable drawable, Rect iconBounds) { in getShapePath()
305 new AdaptiveIconDrawable(new ColorDrawable(Color.WHITE), null), in getWhiteShadowLayer()
326 protected AdaptiveIconDrawable normalizeAndWrapToAdaptiveIcon( in normalizeAndWrapToAdaptiveIcon()
357 public AdaptiveIconDrawable wrapToAdaptiveIcon(@NonNull Drawable icon) { in wrapToAdaptiveIcon()
[all …]
DIconProvider.java23 import static android.graphics.drawable.AdaptiveIconDrawable.getExtraInsetFraction;
38 import android.graphics.drawable.AdaptiveIconDrawable;
153 if (ATLEAST_T && icon instanceof AdaptiveIconDrawable && td != null) { in getIcon()
154 AdaptiveIconDrawable aid = (AdaptiveIconDrawable) icon; in getIcon()
156 icon = new AdaptiveIconDrawable(aid.getBackground(), in getIcon()
214 if (ATLEAST_T && drawable instanceof AdaptiveIconDrawable && td != null) { in loadCalendarDrawable()
215 AdaptiveIconDrawable aid = (AdaptiveIconDrawable) drawable; in loadCalendarDrawable()
224 : new AdaptiveIconDrawable(aid.getBackground(), aid.getForeground(), in loadCalendarDrawable()
DClockDrawableWrapper.java34 import android.graphics.drawable.AdaptiveIconDrawable;
53 public class ClockDrawableWrapper extends AdaptiveIconDrawable implements BitmapInfo.Extender {
89 private ClockDrawableWrapper(AdaptiveIconDrawable base) { in ClockDrawableWrapper()
99 if (d instanceof AdaptiveIconDrawable) { in getMonochrome()
100 Drawable mono = ((AdaptiveIconDrawable) d).getForeground(); in getMonochrome()
135 if (!(drawable instanceof AdaptiveIconDrawable)) { in forExtras()
138 AdaptiveIconDrawable aid = (AdaptiveIconDrawable) drawable; in forExtras()
168 wrapper.mThemeInfo = info.copyForIcon(new AdaptiveIconDrawable( in forExtras()
178 AdaptiveIconDrawable background = new AdaptiveIconDrawable( in getExtendedInfo()
340 private final AdaptiveIconDrawable mFullDrawable;
[all …]
DBubbleIconFactory.java11 import android.graphics.drawable.AdaptiveIconDrawable;
89 if (userBadgedAppIcon instanceof AdaptiveIconDrawable) { in getBadgeBitmap()
90 AdaptiveIconDrawable ad = (AdaptiveIconDrawable) userBadgedAppIcon; in getBadgeBitmap()
126 private static class CircularAdaptiveIcon extends AdaptiveIconDrawable {
DPlaceHolderIconDrawable.java28 import android.graphics.drawable.AdaptiveIconDrawable;
54 AdaptiveIconDrawable drawable = new AdaptiveIconDrawable( in getDefaultPath()
DMonochromeIconFactory.java33 import android.graphics.drawable.AdaptiveIconDrawable;
64 float extraFactor = AdaptiveIconDrawable.getExtraInsetFraction(); in MonochromeIconFactory()
103 public Drawable wrap(AdaptiveIconDrawable icon, Path shapePath, Float iconScale) { in wrap()
DIconNormalizer.java23 import android.graphics.drawable.AdaptiveIconDrawable;
97 if (d instanceof AdaptiveIconDrawable) { in getScale()
/frameworks/layoutlib/bridge/src/com/android/launcher3/icons/
DMonochromeIconFactory_Accessor.java21 import android.graphics.drawable.AdaptiveIconDrawable;
25 import static android.graphics.drawable.AdaptiveIconDrawable.getExtraInsetFraction;
29 public static Drawable getMonochromeIcon(AdaptiveIconDrawable adaptiveIcon, in getMonochromeIcon()
/frameworks/base/packages/SystemUI/accessibility/accessibilitymenu/src/com/android/systemui/accessibility/accessibilitymenu/view/
DA11yMenuAdapter.java21 import android.graphics.drawable.AdaptiveIconDrawable;
158 AdaptiveIconDrawable iconDrawable = getAdaptiveIconDrawable(convertView, in configureShortcutView()
174 private static AdaptiveIconDrawable getAdaptiveIconDrawable(@NonNull View convertView, in getAdaptiveIconDrawable()
180 float inset = AdaptiveIconDrawable.getExtraInsetFraction(); in getAdaptiveIconDrawable()
181 AdaptiveIconDrawable iconDrawable = new AdaptiveIconDrawable( in getAdaptiveIconDrawable()
/frameworks/layoutlib/bridge/src/android/graphics/drawable/
DAdaptiveIconDrawable_Delegate.java45 public static void draw(AdaptiveIconDrawable thisDrawable, Canvas canvas) { in draw()
60 AdaptiveIconDrawable themedIcon = in draw()
61 new AdaptiveIconDrawable(new ColorDrawable(colors[0]), mono); in draw()
/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;
55 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/packages/SettingsLib/src/com/android/settingslib/notification/modes/
DZenIconLoader.java24 import android.graphics.drawable.AdaptiveIconDrawable;
144 if (icon instanceof AdaptiveIconDrawable adaptiveIcon) {
148 -2.0f * AdaptiveIconDrawable.getExtraInsetFraction());
/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/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotificationCustomContentMemoryVerifier.kt21 import android.graphics.drawable.AdaptiveIconDrawable
150 is AdaptiveIconDrawable -> in computeDrawableSize()
/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()
522 return new AdaptiveIconDrawable( in loadDrawableInner()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DBubbleOverflow.kt24 import android.graphics.drawable.AdaptiveIconDrawable
137 val drawable = AdaptiveIconDrawable(ColorDrawable(colorAccent), fg) in updateBtnTheme()
/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;

12