/frameworks/opt/setupwizard/library/gingerbread/src/com/android/setupwizardlib/view/ |
D | NavigationBarButton.java | 23 import android.graphics.drawable.Drawable; 51 Drawable[] drawables = getCompoundDrawablesRelative(); in init() 63 public void setCompoundDrawables(Drawable left, Drawable top, Drawable right, Drawable bottom) { in setCompoundDrawables() 82 Drawable start, Drawable top, Drawable end, Drawable bottom) { in setCompoundDrawablesRelative() 108 for (Drawable drawable : getAllCompoundDrawables()) { in tintDrawables() 117 private Drawable[] getAllCompoundDrawables() { in getAllCompoundDrawables() 118 Drawable[] drawables = new Drawable[6]; in getAllCompoundDrawables() 119 Drawable[] compoundDrawables = getCompoundDrawables(); in getAllCompoundDrawables() 125 Drawable[] compoundDrawablesRelative = getCompoundDrawablesRelative(); in getAllCompoundDrawables() 136 public static TintedDrawable wrap(Drawable drawable) { in wrap() [all …]
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | ConversationAvatarData.java | 19 import android.graphics.drawable.Drawable; 26 public final Drawable mDrawable; 28 OneToOneConversationAvatarData(Drawable drawable) { in OneToOneConversationAvatarData() 34 final Drawable mLastIcon; 35 final Drawable mSecondLastIcon; 37 GroupConversationAvatarData(Drawable lastIcon, Drawable secondLastIcon) { in GroupConversationAvatarData()
|
D | LocalImageResolver.java | 27 import android.graphics.drawable.Drawable; 57 public static Drawable resolveImage(Uri uri, Context context) throws IOException { in resolveImage() 81 public static Drawable resolveImage(@Nullable Icon icon, Context context) throws IOException { in resolveImage() 96 public static Drawable resolveImage(@Nullable Icon icon, Context context, int maxWidth, in resolveImage() 107 Drawable result = resolveImage(uri, context, maxWidth, maxHeight); in resolveImage() 120 Drawable result = resolveImage(res, icon.getResId(), maxWidth, maxHeight); in resolveImage() 135 final Drawable iconDrawable = icon.loadDrawable(context); in resolveImage() 149 public static Drawable resolveImage(Uri uri, Context context, int maxWidth, int maxHeight) { in resolveImage() 161 public static Drawable resolveImage(@DrawableRes int resId, Context context, int maxWidth, in resolveImage() 168 private static Drawable resolveImage(Resources res, @DrawableRes int resId, int maxWidth, in resolveImage() [all …]
|
/frameworks/base/core/java/android/util/ |
D | LauncherIcons.java | 27 import android.graphics.drawable.Drawable; 56 public Drawable wrapIconDrawableWithShadow(Drawable drawable) { in wrapIconDrawableWithShadow() 103 public Drawable getBadgeDrawable(Drawable badgeForeground, int backgroundColor) { in getBadgeDrawable() 107 public Drawable getBadgedDrawable( in getBadgedDrawable() 108 Drawable base, Drawable badgeForeground, int backgroundColor) { in getBadgedDrawable() 112 Drawable badgeShadow = overlayableRes.getDrawable( in getBadgedDrawable() 116 Drawable badgeColor = overlayableRes.getDrawable( in getBadgedDrawable() 122 Drawable[] drawables = base == null in getBadgedDrawable() 123 ? new Drawable[] {badgeShadow, badgeColor, badgeForeground } in getBadgedDrawable() 124 : new Drawable[] {base, badgeShadow, badgeColor, badgeForeground }; in getBadgedDrawable() [all …]
|
D | IconDrawableFactory.java | 30 import android.graphics.drawable.Drawable; 63 public Drawable getBadgedIcon(ApplicationInfo appInfo) { in getBadgedIcon() 67 public Drawable getBadgedIcon(ApplicationInfo appInfo, @UserIdInt int userId) { in getBadgedIcon() 72 public Drawable getBadgedIcon(PackageItemInfo itemInfo, ApplicationInfo appInfo, in getBadgedIcon() 74 Drawable icon = mPm.loadUnbadgedItemIcon(itemInfo, appInfo); in getBadgedIcon() 83 Drawable badge = mContext.getDrawable( in getBadgedIcon() 91 Drawable badge = mDpm.getResources().getDrawable( in getBadgedIcon() 105 private Drawable getDefaultUserIconBadge(int userId) { in getDefaultUserIconBadge() 112 public Drawable getShadowedIcon(Drawable icon) { in getShadowedIcon()
|
/frameworks/base/core/java/android/widget/ |
D | ScrollBarDrawable.java | 26 import android.graphics.drawable.Drawable; 39 public class ScrollBarDrawable extends Drawable implements Drawable.Callback { 40 private Drawable mVerticalTrack; 41 private Drawable mHorizontalTrack; 43 private Drawable mVerticalThumb; 44 private Drawable mHorizontalThumb; 196 final Drawable track; in drawTrack() 215 final Drawable thumb = mVerticalThumb; in drawThumb() 225 final Drawable thumb = mHorizontalThumb; in drawThumb() 240 public void setVerticalThumbDrawable(Drawable thumb) { in setVerticalThumbDrawable() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ |
D | KeyguardIndication.java | 22 import android.graphics.drawable.Drawable; 40 private final Drawable mIcon; 44 private final Drawable mBackground; 51 Drawable icon, in KeyguardIndication() 53 Drawable background, in KeyguardIndication() 82 public @Nullable Drawable getIcon() { in getIcon() 96 public @Nullable Drawable getBackground() { in getBackground() 135 private Drawable mIcon; 138 private Drawable mBackground; 165 public Builder setIcon(Drawable icon) { in setIcon() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/domain/model/ |
D | AudioOutputDevice.kt | 19 import android.graphics.drawable.Drawable 26 val icon: Drawable? 31 override val icon: Drawable?, 37 override val icon: Drawable?, 43 override val icon: Drawable?, 52 override val icon: Drawable
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | DrawableContainer.java | 44 public class DrawableContainer extends Drawable implements Drawable.Callback { 62 private Drawable mCurrDrawable; 64 private Drawable mLastDrawable; 391 public void invalidateDrawable(@NonNull Drawable who) { in invalidateDrawable() 405 public void scheduleDrawable(@NonNull Drawable who, @NonNull Runnable what, long when) { in scheduleDrawable() 412 public void unscheduleDrawable(@NonNull Drawable who, @NonNull Runnable what) { in unscheduleDrawable() 484 final Drawable d = mDrawableContainerState.getChild(index); in selectDrawable() 523 private void initializeDrawableForDisplay(Drawable d) { in initializeDrawableForDisplay() 612 public Drawable getCurrent() { in getCurrent() 648 public Drawable mutate() { in mutate() [all …]
|
D | DrawableInflater.java | 50 private static final HashMap<String, Constructor<? extends Drawable>> CONSTRUCTOR_MAP = 64 public static @Nullable Drawable loadDrawable(@NonNull Context context, @DrawableRes int id) { in loadDrawable() 76 public static @Nullable Drawable loadDrawable(@NonNull Resources resources, in loadDrawable() 112 public @NonNull Drawable inflateFromXml(@NonNull String name, @NonNull XmlPullParser parser, in inflateFromXml() 122 @NonNull Drawable inflateFromXmlForDensity(@NonNull String name, @NonNull XmlPullParser parser, in inflateFromXmlForDensity() 136 Drawable drawable = inflateFromTag(name); in inflateFromXmlForDensity() 146 private @Nullable Drawable inflateFromTag(@NonNull String name) { in inflateFromTag() 193 private @NonNull Drawable inflateFromClass(@NonNull String className) { in inflateFromClass() 195 Constructor<? extends Drawable> constructor; in inflateFromClass() 199 final Class<? extends Drawable> clazz = in inflateFromClass() [all …]
|
D | AdaptiveIconDrawable.java | 82 public class AdaptiveIconDrawable extends Drawable implements Drawable.Callback { 175 private ChildDrawable createChildDrawable(Drawable drawable) { in createChildDrawable() 194 public AdaptiveIconDrawable(Drawable backgroundDrawable, in AdaptiveIconDrawable() 195 Drawable foregroundDrawable) { in AdaptiveIconDrawable() 206 public AdaptiveIconDrawable(@Nullable Drawable backgroundDrawable, in AdaptiveIconDrawable() 207 @Nullable Drawable foregroundDrawable, @Nullable Drawable monochromeDrawable) { in AdaptiveIconDrawable() 244 final int deviceDensity = Drawable.resolveDensity(r, 0); in inflate() 293 public Drawable getForeground() { in getForeground() 304 public Drawable getBackground() { in getBackground() 316 public Drawable getMonochrome() { in getMonochrome() [all …]
|
D | LayerDrawable.java | 71 public class LayerDrawable extends Drawable implements Drawable.Callback { 121 public LayerDrawable(@NonNull Drawable[] layers) { in LayerDrawable() 132 LayerDrawable(@NonNull Drawable[] layers, @Nullable LayerState state) { in LayerDrawable() 143 Drawable child = layers[i]; in LayerDrawable() 186 final int density = Drawable.resolveDensity(r, 0); in inflate() 211 final int density = Drawable.resolveDensity(t.getResources(), 0); in applyTheme() 234 final Drawable d = layer.mDrawable; in applyTheme() 285 layer.mDrawable = Drawable.createFromXmlInner(r, parser, attrs, theme); in inflateLayers() 388 final Drawable dr = a.getDrawable(R.styleable.LayerDrawableItem_drawable); in updateLayerFromTypedArray() 423 Drawable childDrawable = layers[i].mDrawable; in isProjected() [all …]
|
/frameworks/base/core/java/android/text/style/ |
D | DynamicDrawableSpan.java | 29 import android.graphics.drawable.Drawable; 105 private WeakReference<Drawable> mDrawableRef; 138 public abstract Drawable getDrawable(); in getDrawable() 144 Drawable d = getCachedDrawable(); in getSize() 162 Drawable b = getCachedDrawable(); in draw() 177 private Drawable getCachedDrawable() { in getCachedDrawable() 178 WeakReference<Drawable> wr = mDrawableRef; in getCachedDrawable() 179 Drawable d = null; in getCachedDrawable() 187 mDrawableRef = new WeakReference<Drawable>(d); in getCachedDrawable()
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/ |
D | SetupWizardLayout.java | 26 import android.graphics.drawable.Drawable; 98 final Drawable background = a.getDrawable(R.styleable.SuwSetupWizardLayout_suwBackground); in init() 102 final Drawable backgroundTile = in init() 110 final Drawable illustration = a.getDrawable(R.styleable.SuwSetupWizardLayout_suwIllustration); in init() 114 final Drawable illustrationImage = in init() 116 final Drawable horizontalTile = in init() 226 public void setIllustration(Drawable drawable) { in setIllustration() 247 final Drawable illustrationDrawable = getIllustration(asset, horizontalTile); in setIllustration() 252 private void setIllustration(Drawable asset, Drawable horizontalTile) { in setIllustration() 256 final Drawable illustrationDrawable = getIllustration(asset, horizontalTile); in setIllustration() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/notification/ |
D | ConversationIconFactory.java | 29 import android.graphics.drawable.Drawable; 89 public Drawable getBaseIconDrawable(ShortcutInfo shortcutInfo) { in getBaseIconDrawable() 97 public Drawable getAppBadge(String packageName, int userId) { in getAppBadge() 98 Drawable badge = null; in getAppBadge() 113 public Drawable getConversationDrawable(ShortcutInfo info, String packageName, int uid, in getConversationDrawable() 122 public Drawable getConversationDrawable(Drawable baseIcon, String packageName, int uid, in getConversationDrawable() 136 public static class ConversationIconDrawable extends Drawable { 137 private Drawable mBaseIcon; 138 private Drawable mBadgeIcon; 144 public ConversationIconDrawable(Drawable baseIcon, in ConversationIconDrawable() [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/ |
D | SplashscreenIconDrawableFactory.java | 39 import android.graphics.drawable.Drawable; 64 static Drawable[] makeIconDrawable(@ColorInt int backgroundColor, @ColorInt int themeColor, in makeIconDrawable() 65 @NonNull Drawable foregroundDrawable, int srcIconSize, int iconSize, in makeIconDrawable() 67 Drawable foreground; in makeIconDrawable() 68 Drawable background = null; in makeIconDrawable() 91 return new Drawable[]{foreground, background}; in makeIconDrawable() 94 static Drawable[] makeLegacyIconDrawable(@NonNull Drawable iconDrawable, int srcIconSize, in makeLegacyIconDrawable() 96 return new Drawable[]{new ImmobileIconDrawable(iconDrawable, srcIconSize, iconSize, in makeLegacyIconDrawable() 104 private static class ImmobileIconDrawable extends Drawable implements Closeable { 110 ImmobileIconDrawable(Drawable drawable, int srcIconSize, int iconSize, boolean loadInDetail, in ImmobileIconDrawable() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/drawable/ |
D | LoopedAnimatable2DrawableWrapper.kt | 21 import android.graphics.drawable.Drawable 29 DrawableWrapperCompat(animatable2 as Drawable), Animatable2 { 87 fun fromDrawable(drawable: Drawable): LoopedAnimatable2DrawableWrapper { in getConstantState() 95 override fun onAnimationEnd(drawable: Drawable?) { in onAnimationEnd() 102 override fun newDrawable(): Drawable = fromDrawable(nestedState.newDrawable()) 104 override fun newDrawable(res: Resources?): Drawable = 107 override fun newDrawable(res: Resources?, theme: Resources.Theme?): Drawable =
|
/frameworks/base/core/java/android/content/res/ |
D | DrawableCache.java | 20 import android.graphics.drawable.Drawable; 26 class DrawableCache extends ThemedResourceCache<Drawable.ConstantState> { 42 public Drawable getInstance(long key, Resources resources, Resources.Theme theme) { in getInstance() 43 final Drawable.ConstantState entry = get(key, theme); in getInstance() 52 public boolean shouldInvalidateEntry(Drawable.ConstantState entry, int configChanges) { in shouldInvalidateEntry()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/ |
D | IconCache.java | 20 import android.graphics.drawable.Drawable; 33 final ArrayMap<Icon, Drawable> mMap = new ArrayMap<>(); 39 public Drawable getIcon(Icon icon) { in getIcon() 43 Drawable drawable = mMap.get(icon); in getIcon() 51 public void updateIcon(Icon icon, Drawable drawable) { in updateIcon()
|
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
D | TileDrawable.java | 25 import android.graphics.drawable.Drawable; 34 public class TileDrawable extends Drawable implements Drawable.Callback { 38 private final Drawable mInner; 44 public TileDrawable(Drawable inner, int innerWidth, int innerHeight, int fadeOutDurationMs, in TileDrawable() 71 public Drawable getInnerDrawable() { in getInnerDrawable() 170 public void invalidateDrawable(Drawable who) { in invalidateDrawable() 175 public void scheduleDrawable(Drawable who, Runnable what, long when) { in scheduleDrawable() 180 public void unscheduleDrawable(Drawable who, Runnable what) { in unscheduleDrawable()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/ |
D | CenteredImageSpan.java | 22 import android.graphics.drawable.Drawable; 28 private Drawable mDrawable; 30 public CenteredImageSpan(Drawable drawable) { in CenteredImageSpan() 37 final Drawable drawable = getCachedDrawable(); in getSize() 62 final Drawable drawable = getCachedDrawable(); in draw() 70 private Drawable getCachedDrawable() { in getCachedDrawable()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
D | AppIconCacheManager.java | 20 import android.graphics.drawable.Drawable; 37 private final LruCache<String, Drawable> mDrawableCache; 40 mDrawableCache = new LruCache<String, Drawable>(MAX_CACHE_SIZE_IN_KB) { in AppIconCacheManager() 42 protected int sizeOf(String key, Drawable drawable) { in AppIconCacheManager() 69 public void put(String packageName, int uid, Drawable drawable) { in put() 86 public Drawable get(String packageName, int uid) { in get() 92 final Drawable cachedDrawable = mDrawableCache.get(key); in get()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/ |
D | LocalImageResolverTest.java | 26 import android.graphics.drawable.Drawable; 52 Drawable d = LocalImageResolver.resolveImage(icon, mContext); in resolveImage_invalidResource_returnsNull() 61 Drawable d = LocalImageResolver.resolveImage(icon, mContext); in resolveImage_invalidIconUri_returnsNull() 67 Drawable d = LocalImageResolver.resolveImage(Uri.parse("bogus://uri"), mContext); in resolveImage_invalidUri_throwsException() 74 Drawable d = LocalImageResolver.resolveImage(icon, mContext); in resolveImage_nonBitmapResourceIcon_fallsBackToNonResizingLoad() 87 Drawable d = LocalImageResolver.resolveImage(R.drawable.blue, mContext, 480, 480); in resolveImageWithResId_nonBitmapResourceIcon_returnsNull() 96 Drawable d = LocalImageResolver.resolveImage(icon, mContext); in resolveImage_largeBitmapIcon_defaultSize_resizeToDefaultSize() 112 Drawable d = LocalImageResolver.resolveImage(icon, mContext); in resolveImage_largeAdaptiveBitmapIcon_defaultSize_resizeToDefaultSize() 127 Drawable d = LocalImageResolver.resolveImage(icon, mContext); in resolveImage_largeResourceIcon_defaultSize_resizeToDefaultSize() 141 Drawable d = LocalImageResolver.resolveImage(icon, mContext, 100, 50); in resolveImage_largeResourceIcon_passedSize_resizeToDefinedSize() [all …]
|
/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/ui/graphics/painter/ |
D | DrawablePainter.kt | 21 import android.graphics.drawable.Drawable in <lambda>() 58 public class DrawablePainter(public val drawable: Drawable) : Painter(), RememberObserver { 62 private val callback: Drawable.Callback by lazy { in <lambda>() 63 object : Drawable.Callback { in <lambda>() 64 override fun invalidateDrawable(d: Drawable) { in <lambda>() 71 override fun scheduleDrawable(d: Drawable, what: Runnable, time: Long) { in <lambda>() 75 override fun unscheduleDrawable(d: Drawable, what: Runnable) { in <lambda>() 152 public fun rememberDrawablePainter(drawable: Drawable?): Painter = in rememberDrawablePainter() 163 private val Drawable.intrinsicSize: Size constant
|
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/ |
D | BubbleIconFactory.java | 12 import android.graphics.drawable.Drawable; 52 public Drawable getBubbleDrawable(@NonNull final Context context, in getBubbleDrawable() 76 public Bitmap getBubbleBitmap(@NonNull Drawable icon, float[] outScale) { in getBubbleBitmap() 90 public BitmapInfo getBadgeBitmap(Drawable userBadgedAppIcon, boolean isImportantConversation) { in getBadgeBitmap() 107 final Drawable mDr; 109 CircularRingDrawable(Drawable dr) { in CircularRingDrawable() 132 CircularAdaptiveIcon(Drawable bg, Drawable fg) { in CircularAdaptiveIcon() 149 Drawable d; in draw()
|