/frameworks/base/core/java/android/content/res/ |
H A D | Resources.java | 31 import android.graphics.drawable.Drawable.ConstantState; 94 private static final LongSparseArray<ConstantState>[] sPreloadedDrawables; 95 private static final LongSparseArray<ConstantState> sPreloadedColorDrawables 96 = new LongSparseArray<ConstantState>(); 112 private final ArrayMap<String, LongSparseArray<WeakReference<ConstantState>>> mDrawableCache = 113 new ArrayMap<String, LongSparseArray<WeakReference<ConstantState>>>(); 114 private final ArrayMap<String, LongSparseArray<WeakReference<ConstantState>>> mColorDrawableCache = 115 new ArrayMap<String, LongSparseArray<WeakReference<ConstantState>>>(); 141 sPreloadedDrawables[0] = new LongSparseArray<ConstantState>(); 142 sPreloadedDrawables[1] = new LongSparseArray<ConstantState>(); [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | ClipDrawable.java | 256 public ConstantState getConstantState() { 271 final static class ClipState extends ConstantState {
|
H A D | ColorDrawable.java | 261 public ConstantState getConstantState() { 265 final static class ColorState extends ConstantState {
|
H A D | AnimatedRotateDrawable.java | 248 public ConstantState getConstantState() { 334 final static class AnimatedRotateState extends Drawable.ConstantState {
|
H A D | ScaleDrawable.java | 262 public ConstantState getConstantState() { 279 final static class ScaleState extends ConstantState {
|
H A D | AnimatedVectorDrawable.java | 161 public ConstantState getConstantState() { 326 private static class AnimatedVectorDrawableState extends ConstantState {
|
H A D | InsetDrawable.java | 356 public ConstantState getConstantState() { 380 final static class InsetState extends ConstantState {
|
H A D | RotateDrawable.java | 391 public ConstantState getConstantState() { 492 final static class RotateState extends Drawable.ConstantState {
|
H A D | ShapeDrawable.java | 482 public ConstantState getConstantState() { 513 final static class ShapeState extends ConstantState {
|
H A D | Drawable.java | 912 * @see ConstantState 1169 * share a unique bitmap stored in their ConstantState. 1173 * from this ConstantState. 1176 * Use {@link Drawable#getConstantState()} to retrieve the ConstantState of a Drawable. Calling 1177 * {@link Drawable#mutate()} on a Drawable should typically create a new ConstantState for that 1180 public static abstract class ConstantState { class in class:Drawable 1230 * Return a {@link ConstantState} instance that holds the shared state of this Drawable. 1232 * @return The ConstantState associated to that Drawable. 1233 * @see ConstantState 1236 public ConstantState getConstantStat [all...] |
H A D | NinePatchDrawable.java | 551 public ConstantState getConstantState() { 583 final static class NinePatchState extends ConstantState {
|
H A D | DrawableContainer.java | 559 public ConstantState getConstantState() { 577 * A ConstantState that can contain several {@link Drawable}s. 582 public abstract static class DrawableContainerState extends ConstantState { 1031 * ConstantState. 1034 private final ConstantState mConstantState;
|
H A D | BitmapDrawable.java | 858 public final ConstantState getConstantState() { 863 final static class BitmapState extends ConstantState {
|
H A D | LayerDrawable.java | 921 public ConstantState getConstantState() { 983 static class LayerState extends ConstantState {
|
H A D | RippleDrawable.java | 885 public ConstantState getConstantState() {
|
H A D | GradientDrawable.java | 1412 public ConstantState getConstantState() { 1482 final static class GradientState extends ConstantState {
|
H A D | VectorDrawable.java | 241 public ConstantState getConstantState() { 638 private static class VectorDrawableState extends ConstantState {
|
/frameworks/base/core/java/android/widget/ |
H A D | SuggestionsAdapter.java | 71 private final WeakHashMap<String, Drawable.ConstantState> mOutsideDrawablesCache; 100 WeakHashMap<String, Drawable.ConstantState> outsideDrawablesCache) { 600 Drawable.ConstantState cached = mOutsideDrawablesCache.get(resourceUri); 645 Drawable.ConstantState cached = mOutsideDrawablesCache.get(componentIconKey); 651 Drawable.ConstantState toCache = drawable == null ? null : drawable.getConstantState();
|
H A D | SearchView.java | 176 private final WeakHashMap<String, Drawable.ConstantState> mOutsideDrawablesCache = 177 new WeakHashMap<String, Drawable.ConstantState>();
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
H A D | BackgroundManager.java | 113 static class ConstantState extends Drawable.ConstantState { class in class:BackgroundManager.BitmapDrawable 129 private ConstantState mState = new ConstantState(); 173 public ConstantState getConstantState() {
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | SuggestionsAdapter.java | 71 private WeakHashMap<String, Drawable.ConstantState> mOutsideDrawablesCache; 93 WeakHashMap<String, Drawable.ConstantState> outsideDrawablesCache) { 553 Drawable.ConstantState cached = mOutsideDrawablesCache.get(resourceUri); 598 Drawable.ConstantState cached = mOutsideDrawablesCache.get(componentIconKey); 604 Drawable.ConstantState toCache = drawable == null ? null : drawable.getConstantState();
|
/frameworks/base/core/java/android/app/ |
H A D | ApplicationPackageManager.java | 995 WeakReference<Drawable.ConstantState> wr = sIconCache.get(name); 999 Drawable.ConstantState state = wr.get(); 1005 // of the API. The ConstantState comes from a drawable that was 1021 sIconCache.put(name, new WeakReference<Drawable.ConstantState>(dr.getConstantState())); 1760 private static ArrayMap<ResourceName, WeakReference<Drawable.ConstantState>> sIconCache 1761 = new ArrayMap<ResourceName, WeakReference<Drawable.ConstantState>>();
|
/frameworks/base/core/java/android/view/ |
H A D | ThreadedRenderer.java | 452 final LongSparseArray<Drawable.ConstantState> drawables = resources.getPreloadedDrawables();
|
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
H A D | ExtendedBitmapDrawable.java | 102 ConstantState constantState = mOpts.placeholder.getConstantState();
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | AssetAtlasService.java | 139 final LongSparseArray<Drawable.ConstantState> drawables = resources.getPreloadedDrawables();
|