/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/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/ |
D | IconLoader.java | 29 import android.graphics.drawable.Drawable; 42 protected final TaskKeyLruCache<Drawable> mIconCache; 45 public IconLoader(Context context, TaskKeyLruCache<Drawable> iconCache, LruCache<ComponentName, in IconLoader() 73 public Drawable getIcon(Task t) { in getIcon() 74 Drawable cachedIcon = mIconCache.get(t.key); in getIcon() 85 public Drawable getAndInvalidateIfModified(Task.TaskKey taskKey, in getAndInvalidateIfModified() 88 Drawable icon = mIconCache.getAndInvalidateIfModified(taskKey); in getAndInvalidateIfModified() 105 private Drawable createNewIconForTask(Task.TaskKey taskKey, in createNewIconForTask() 134 Drawable icon = getBadgedActivityIcon(activityInfo, userId, desc); in createNewIconForTask() 144 public abstract Drawable getDefaultIcon(int userId); in getDefaultIcon() [all …]
|
/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 …]
|
D | SuggestionsAdapter.java | 32 import android.graphics.drawable.Drawable; 71 private final WeakHashMap<String, Drawable.ConstantState> mOutsideDrawablesCache; 100 WeakHashMap<String, Drawable.ConstantState> outsideDrawablesCache) { in SuggestionsAdapter() 402 private Drawable getIcon1(Cursor cursor) { in getIcon1() 407 Drawable drawable = getDrawableFromResourceValue(value); in getIcon1() 414 private Drawable getIcon2(Cursor cursor) { in getIcon2() 426 private void setViewDrawable(ImageView v, Drawable drawable, int nullVisibility) { in setViewDrawable() 548 private Drawable getDrawableFromResourceValue(String drawableId) { in getDrawableFromResourceValue() 559 Drawable drawable = checkIconCache(drawableUri); in getDrawableFromResourceValue() 570 Drawable drawable = checkIconCache(drawableId); in getDrawableFromResourceValue() [all …]
|
/frameworks/base/core/java/android/util/ |
D | LauncherIcons.java | 27 import android.graphics.drawable.Drawable; 54 public Drawable wrapIconDrawableWithShadow(Drawable drawable) { in wrapIconDrawableWithShadow() 101 public Drawable getBadgeDrawable(int foregroundRes, int backgroundColor) { in getBadgeDrawable() 105 public Drawable getBadgedDrawable(Drawable base, int foregroundRes, int backgroundColor) { in getBadgedDrawable() 109 Drawable badgeShadow = overlayableRes.getDrawable( in getBadgedDrawable() 112 Drawable badgeColor = overlayableRes.getDrawable( in getBadgedDrawable() 116 Drawable badgeForeground = overlayableRes.getDrawable(foregroundRes); in getBadgedDrawable() 119 Drawable[] drawables = base == null in getBadgedDrawable() 120 ? new Drawable[] {badgeShadow, badgeColor, badgeForeground } in getBadgedDrawable() 121 : new Drawable[] {base, badgeShadow, badgeColor, badgeForeground }; in getBadgedDrawable() [all …]
|
/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; 392 public void invalidateDrawable(@NonNull Drawable who) { in invalidateDrawable() 406 public void scheduleDrawable(@NonNull Drawable who, @NonNull Runnable what, long when) { in scheduleDrawable() 413 public void unscheduleDrawable(@NonNull Drawable who, @NonNull Runnable what) { in unscheduleDrawable() 485 final Drawable d = mDrawableContainerState.getChild(index); in selectDrawable() 524 private void initializeDrawableForDisplay(Drawable d) { in initializeDrawableForDisplay() 613 public Drawable getCurrent() { in getCurrent() 649 public Drawable mutate() { in mutate() [all …]
|
D | AdaptiveIconDrawable.java | 77 public class AdaptiveIconDrawable extends Drawable implements Drawable.Callback { 169 private ChildDrawable createChildDrawable(Drawable drawable) { in createChildDrawable() 188 public AdaptiveIconDrawable(Drawable backgroundDrawable, in AdaptiveIconDrawable() 189 Drawable foregroundDrawable) { in AdaptiveIconDrawable() 223 final int deviceDensity = Drawable.resolveDensity(r, 0); in inflate() 272 public Drawable getForeground() { in getForeground() 283 public Drawable getBackground() { in getBackground() 320 final Drawable d = r.mDrawable; in updateLayerBoundsInternal() 364 final Drawable dr = mLayerState.mChildren[i].mDrawable; in draw() 423 final int density = Drawable.resolveDensity(t.getResources(), 0); in applyTheme() [all …]
|
D | DrawableInflater.java | 49 private static final HashMap<String, Constructor<? extends Drawable>> CONSTRUCTOR_MAP = 64 public static Drawable loadDrawable(@NonNull Context context, @DrawableRes int id) { in loadDrawable() 77 public static Drawable loadDrawable( in loadDrawable() 114 public Drawable inflateFromXml(@NonNull String name, @NonNull XmlPullParser parser, in inflateFromXml() 125 Drawable inflateFromXmlForDensity(@NonNull String name, @NonNull XmlPullParser parser, in inflateFromXmlForDensity() 139 Drawable drawable = inflateFromTag(name); in inflateFromXmlForDensity() 150 private Drawable inflateFromTag(@NonNull String name) { in inflateFromTag() 198 private Drawable inflateFromClass(@NonNull String className) { in inflateFromClass() 200 Constructor<? extends Drawable> constructor; in inflateFromClass() 204 final Class<? extends Drawable> clazz = in inflateFromClass() [all …]
|
D | LayerDrawable.java | 70 public class LayerDrawable extends Drawable implements Drawable.Callback { 120 public LayerDrawable(@NonNull Drawable[] layers) { in LayerDrawable() 131 LayerDrawable(@NonNull Drawable[] layers, @Nullable LayerState state) { in LayerDrawable() 142 Drawable child = layers[i]; in LayerDrawable() 185 final int density = Drawable.resolveDensity(r, 0); in inflate() 210 final int density = Drawable.resolveDensity(t.getResources(), 0); in applyTheme() 233 final Drawable d = layer.mDrawable; in applyTheme() 284 layer.mDrawable = Drawable.createFromXmlInner(r, parser, attrs, theme); in inflateLayers() 387 final Drawable dr = a.getDrawable(R.styleable.LayerDrawableItem_drawable); in updateLayerFromTypedArray() 422 Drawable childDrawable = layers[i].mDrawable; in isProjected() [all …]
|
D | DrawableWrapper.java | 49 public abstract class DrawableWrapper extends Drawable implements Drawable.Callback { 52 private Drawable mDrawable; 66 public DrawableWrapper(@Nullable Drawable dr) { in DrawableWrapper() 78 final Drawable dr = mState.mDrawableState.newDrawable(res); in updateLocalState() 98 public void setDrawable(@Nullable Drawable dr) { in setDrawable() 127 public Drawable getDrawable() { in getDrawable() 214 public void invalidateDrawable(@NonNull Drawable who) { in invalidateDrawable() 222 public void scheduleDrawable(@NonNull Drawable who, @NonNull Runnable what, long when) { in scheduleDrawable() 230 public void unscheduleDrawable(@NonNull Drawable who, @NonNull Runnable what) { in unscheduleDrawable() 312 final Drawable drawable = getDrawable(); in getColorFilter() [all …]
|
D | Drawable.java | 183 public abstract class Drawable { class 411 void invalidateDrawable(@NonNull Drawable who); in invalidateDrawable() 425 void scheduleDrawable(@NonNull Drawable who, @NonNull Runnable what, long when); in scheduleDrawable() 437 void unscheduleDrawable(@NonNull Drawable who, @NonNull Runnable what); in unscheduleDrawable() 701 setTintBlendMode(mode != null ? mode : Drawable.DEFAULT_BLEND_MODE); in setTintMode() 725 setTintMode(mode != null ? mode : Drawable.DEFAULT_TINT_MODE); in setTintBlendMode() 873 public @NonNull Drawable getCurrent() { in getCurrent() 1194 public @NonNull Drawable mutate() { in mutate() 1215 public static Drawable createFromStream(InputStream is, String srcName) { in createFromStream() 1228 public static Drawable createFromResourceStream(Resources res, TypedValue value, in createFromResourceStream() [all …]
|
/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/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()
|
D | ImageSpan.java | 27 import android.graphics.drawable.Drawable; 62 private Drawable mDrawable; 127 public ImageSpan(@NonNull Drawable drawable) { in ImageSpan() 138 public ImageSpan(@NonNull Drawable drawable, int verticalAlignment) { in ImageSpan() 150 public ImageSpan(@NonNull Drawable drawable, @NonNull String source) { in ImageSpan() 162 public ImageSpan(@NonNull Drawable drawable, @NonNull String source, int verticalAlignment) { in ImageSpan() 227 public Drawable getDrawable() { in getDrawable() 228 Drawable drawable = null; in getDrawable()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/ |
D | SlashImageViewTest.java | 26 import android.graphics.drawable.Drawable; 48 Drawable mockDrawable = mock(Drawable.class); in testSetNonNullSlashStateCreatesSlashDrawable() 60 Drawable mockDrawable = mock(Drawable.class); in testSetNullSlashStateRemovesSlashDrawable() 74 Drawable mockDrawable = mock(Drawable.class); in testSetNullDrawableRemovesSlashDrawable() 87 Drawable mockDrawable = mock(Drawable.class); in testSetImageDrawableUsesDrawableLevel()
|
/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/core/java/android/content/res/ |
D | DrawableCache.java | 20 import android.graphics.drawable.Drawable; 25 class DrawableCache extends ThemedResourceCache<Drawable.ConstantState> { 41 public Drawable getInstance(long key, Resources resources, Resources.Theme theme) { in getInstance() 42 final Drawable.ConstantState entry = get(key, theme); in getInstance() 51 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/base/core/java/com/android/internal/graphics/drawable/ |
D | AnimationScaleListDrawable.java | 26 import android.graphics.drawable.Drawable; 114 Drawable dr = a.getDrawable(R.styleable.AnimationScaleListDrawableItem_drawable); in inflateChildElements() 127 dr = Drawable.createFromXmlInner(r, parser, attrs, theme); in inflateChildElements() 135 public Drawable mutate() { in mutate() 151 Drawable dr = getCurrent(); in start() 159 Drawable dr = getCurrent(); in stop() 168 Drawable dr = getCurrent(); in isRunning() 205 int addDrawable(Drawable drawable) { in addDrawable() 216 public Drawable newDrawable() { in newDrawable() 221 public Drawable newDrawable(Resources res) { in newDrawable()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | BridgePackageManager.java | 52 import android.graphics.drawable.Drawable; 325 public Drawable getInstantAppIcon(String packageName) { in getInstantAppIcon() 494 public Drawable getDrawable(String packageName, int resid, ApplicationInfo appInfo) { in getDrawable() 499 public Drawable getActivityIcon(ComponentName activityName) throws NameNotFoundException { in getActivityIcon() 504 public Drawable getActivityIcon(Intent intent) throws NameNotFoundException { in getActivityIcon() 509 public Drawable getActivityBanner(ComponentName activityName) throws NameNotFoundException { in getActivityBanner() 514 public Drawable getActivityBanner(Intent intent) throws NameNotFoundException { in getActivityBanner() 519 public Drawable getDefaultActivityIcon() { in getDefaultActivityIcon() 524 public Drawable getApplicationIcon(ApplicationInfo info) { in getApplicationIcon() 529 public Drawable getApplicationIcon(String packageName) throws NameNotFoundException { in getApplicationIcon() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/testutils/ |
D | PackageManagerStub.java | 33 import android.graphics.drawable.Drawable; 313 public Drawable getInstantAppIcon(String packageName) { in getInstantAppIcon() 498 public Drawable getDrawable(String packageName, int resid, ApplicationInfo appInfo) { in getDrawable() 503 public Drawable getActivityIcon(ComponentName activityName) in getActivityIcon() 509 public Drawable getActivityIcon(Intent intent) throws NameNotFoundException { in getActivityIcon() 514 public Drawable getActivityBanner(ComponentName activityName) in getActivityBanner() 520 public Drawable getActivityBanner(Intent intent) throws NameNotFoundException { in getActivityBanner() 525 public Drawable getDefaultActivityIcon() { in getDefaultActivityIcon() 530 public Drawable getApplicationIcon(ApplicationInfo info) { in getApplicationIcon() 535 public Drawable getApplicationIcon(String packageName) in getApplicationIcon() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | HardwareBgDrawable.java | 23 import android.graphics.drawable.Drawable; 31 private final Drawable[] mLayers; 40 public HardwareBgDrawable(boolean roundTop, Drawable[] layers) { in HardwareBgDrawable() 49 private static Drawable[] getLayers(Context context, boolean roundTop, boolean roundEnd) { in getLayers() 51 final Drawable[] layers; in getLayers() 53 layers = new Drawable[]{ in getLayers() 58 layers = new Drawable[]{ in getLayers()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationInlineImageCache.java | 19 import android.graphics.drawable.Drawable; 60 public Drawable get(Uri uri) { in get() 61 Drawable result = null; in get() 76 private static class PreloadImageTask extends AsyncTask<Uri, Void, Drawable> { 84 protected Drawable doInBackground(Uri... uris) { in doInBackground() 85 Drawable drawable = null; in doInBackground()
|
/frameworks/base/core/java/com/android/internal/policy/ |
D | BackdropFrameRenderer.java | 23 import android.graphics.drawable.Drawable; 65 private Drawable mCaptionBackgroundDrawable; 66 private Drawable mUserCaptionBackgroundDrawable; 67 private Drawable mResizingBackgroundDrawable; 79 Drawable resizingBackgroundDrawable, Drawable captionBackgroundDrawable, in BackdropFrameRenderer() 80 Drawable userCaptionBackgroundDrawable, int statusBarColor, int navigationBarColor, in BackdropFrameRenderer() 107 void onResourcesLoaded(DecorView decorView, Drawable resizingBackgroundDrawable, in onResourcesLoaded() 108 Drawable captionBackgroundDrawableDrawable, Drawable userCaptionBackgroundDrawable, in onResourcesLoaded() 343 final Drawable drawable = mUserCaptionBackgroundDrawable != null in redrawLocked() 416 void setUserCaptionBackgroundDrawable(Drawable userCaptionBackgroundDrawable) { in setUserCaptionBackgroundDrawable()
|
/frameworks/base/packages/SettingsLib/EntityHeaderWidgets/src/com/android/settingslib/widget/ |
D | AppEntityInfo.java | 19 import android.graphics.drawable.Drawable; 30 private final Drawable mIcon; 40 public Drawable getIcon() { in getIcon() 83 private Drawable mIcon; 100 public Builder setIcon(@NonNull Drawable icon) { in setIcon()
|