Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/util/
DLauncherIcons.java25 import android.graphics.drawable.AdaptiveIconDrawable;
54 if (!(drawable instanceof AdaptiveIconDrawable)) { in wrapIconDrawableWithShadow()
57 Bitmap shadow = getShadowBitmap((AdaptiveIconDrawable) drawable); in wrapIconDrawableWithShadow()
61 private Bitmap getShadowBitmap(AdaptiveIconDrawable d) { in getShadowBitmap()
/frameworks/base/core/tests/coretests/src/android/graphics/drawable/
DAdaptiveIconDrawableTest.java34 private AdaptiveIconDrawable mIconDrawable;
45 mIconDrawable = new AdaptiveIconDrawable(mBackgroundDrawable, mForegroundDrawable); in testDraw_withoutBounds()
75 …mIconDrawable = (AdaptiveIconDrawable) getContext().getResources().getDrawable(android.R.drawable.… in testDraw_withBounds()
115 mIconDrawable = new AdaptiveIconDrawable(mBackgroundDrawable, mForegroundDrawable); in testGetIconMask_withoutBounds()
144 mIconDrawable = new AdaptiveIconDrawable(mBackgroundDrawable, mForegroundDrawable); in testGetIconMaskAfterSetBounds()
167 mIconDrawable = new AdaptiveIconDrawable(mBackgroundDrawable, mForegroundDrawable); in testGetOutline_withBounds()
DIconTest.java119 final AdaptiveIconDrawable draw1 = (AdaptiveIconDrawable) im1.loadDrawable(mContext); in testWithAdaptiveBitmap()
122 … (int)(draw1.getIntrinsicWidth() * (1 + 2 * AdaptiveIconDrawable.getExtraInsetFraction())), in testWithAdaptiveBitmap()
123 … (int)(draw1.getIntrinsicHeight() * (1 + 2 * AdaptiveIconDrawable.getExtraInsetFraction())), in testWithAdaptiveBitmap()
127 … (int) (draw1.getIntrinsicWidth() * (1 + 2 * AdaptiveIconDrawable.getExtraInsetFraction())), in testWithAdaptiveBitmap()
128 … (int) (draw1.getIntrinsicHeight() * (1 + 2 * AdaptiveIconDrawable.getExtraInsetFraction()))); in testWithAdaptiveBitmap()
/frameworks/base/graphics/java/android/graphics/drawable/
DAdaptiveIconDrawable.java75 public class AdaptiveIconDrawable extends Drawable implements Drawable.Callback { class
143 AdaptiveIconDrawable() { in AdaptiveIconDrawable() method in AdaptiveIconDrawable
151 AdaptiveIconDrawable(@Nullable LayerState state, @Nullable Resources res) { in AdaptiveIconDrawable() method in AdaptiveIconDrawable
184 public AdaptiveIconDrawable(Drawable backgroundDrawable, in AdaptiveIconDrawable() method in AdaptiveIconDrawable
895 ChildDrawable(@NonNull ChildDrawable orig, @NonNull AdaptiveIconDrawable owner, in ChildDrawable()
959 LayerState(@Nullable LayerState orig, @NonNull AdaptiveIconDrawable owner, in LayerState()
1013 return new AdaptiveIconDrawable(this, null); in newDrawable()
1018 return new AdaptiveIconDrawable(this, res); in newDrawable()
DDrawableInflater.java163 return new AdaptiveIconDrawable(); in inflateFromTag()
DIcon.java293 return new AdaptiveIconDrawable(null, in loadDrawableInner()
/frameworks/support/compat/tests/java/android/support/v4/graphics/drawable/
DIconCompatTest.java28 import android.graphics.drawable.AdaptiveIconDrawable;
109 assertTrue(d instanceof AdaptiveIconDrawable); in testCreateWithAdaptiveBitmap()
/frameworks/base/core/java/android/content/pm/
DShortcutManager.java28 import android.graphics.drawable.AdaptiveIconDrawable;
DLauncherApps.java43 import android.graphics.drawable.AdaptiveIconDrawable;
829 return new AdaptiveIconDrawable(null, dr); in getShortcutIconDrawable()
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutService.java57 import android.graphics.drawable.AdaptiveIconDrawable;
1376 maxIconDimension *= (1 + 2 * AdaptiveIconDrawable.getExtraInsetFraction()); in saveIconAndFixUpShortcutLocked()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest1.java79 import android.graphics.drawable.AdaptiveIconDrawable;
710 assertTrue(dr instanceof AdaptiveIconDrawable); in testIcons()
711 float viewportPercentage = 1 / (1 + 2 * AdaptiveIconDrawable.getExtraInsetFraction()); in testIcons()
/frameworks/base/
Dcompiled-classes-phone1360 android.graphics.drawable.AdaptiveIconDrawable
1361 android.graphics.drawable.AdaptiveIconDrawable$ChildDrawable
1362 android.graphics.drawable.AdaptiveIconDrawable$LayerState
Dpreloaded-classes1038 android.graphics.drawable.AdaptiveIconDrawable
/frameworks/base/api/
Dcurrent.txt13812 …public class AdaptiveIconDrawable extends android.graphics.drawable.Drawable implements android.gr…
13813 …ctor public AdaptiveIconDrawable(android.graphics.drawable.Drawable, android.graphics.drawable.Dra…
Dsystem-current.txt14592 …public class AdaptiveIconDrawable extends android.graphics.drawable.Drawable implements android.gr…
14593 …ctor public AdaptiveIconDrawable(android.graphics.drawable.Drawable, android.graphics.drawable.Dra…