Searched refs:ConstantState (Results 1 - 25 of 26) sorted by relevance

12

/frameworks/base/core/java/android/content/res/
H A DResources.java31 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 DClipDrawable.java256 public ConstantState getConstantState() {
271 final static class ClipState extends ConstantState {
H A DColorDrawable.java261 public ConstantState getConstantState() {
265 final static class ColorState extends ConstantState {
H A DAnimatedRotateDrawable.java248 public ConstantState getConstantState() {
334 final static class AnimatedRotateState extends Drawable.ConstantState {
H A DScaleDrawable.java262 public ConstantState getConstantState() {
279 final static class ScaleState extends ConstantState {
H A DAnimatedVectorDrawable.java161 public ConstantState getConstantState() {
326 private static class AnimatedVectorDrawableState extends ConstantState {
H A DInsetDrawable.java356 public ConstantState getConstantState() {
380 final static class InsetState extends ConstantState {
H A DRotateDrawable.java391 public ConstantState getConstantState() {
492 final static class RotateState extends Drawable.ConstantState {
H A DShapeDrawable.java482 public ConstantState getConstantState() {
513 final static class ShapeState extends ConstantState {
H A DDrawable.java912 * @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 DNinePatchDrawable.java551 public ConstantState getConstantState() {
583 final static class NinePatchState extends ConstantState {
H A DDrawableContainer.java559 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 DBitmapDrawable.java858 public final ConstantState getConstantState() {
863 final static class BitmapState extends ConstantState {
H A DLayerDrawable.java921 public ConstantState getConstantState() {
983 static class LayerState extends ConstantState {
H A DRippleDrawable.java885 public ConstantState getConstantState() {
H A DGradientDrawable.java1412 public ConstantState getConstantState() {
1482 final static class GradientState extends ConstantState {
H A DVectorDrawable.java241 public ConstantState getConstantState() {
638 private static class VectorDrawableState extends ConstantState {
/frameworks/base/core/java/android/widget/
H A DSuggestionsAdapter.java71 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 DSearchView.java176 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 DBackgroundManager.java113 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 DSuggestionsAdapter.java71 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 DApplicationPackageManager.java995 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 DThreadedRenderer.java452 final LongSparseArray<Drawable.ConstantState> drawables = resources.getPreloadedDrawables();
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
H A DExtendedBitmapDrawable.java102 ConstantState constantState = mOpts.placeholder.getConstantState();
/frameworks/base/services/core/java/com/android/server/
H A DAssetAtlasService.java139 final LongSparseArray<Drawable.ConstantState> drawables = resources.getPreloadedDrawables();

Completed in 342 milliseconds

12