HomeSort by relevance Sort by last modified time
    Searched refs:ConstantState (Results 1 - 25 of 64) sorted by null

1 2 3

  /frameworks/base/core/java/android/content/res/
ConfigurationBoundResourceCache.java 29 private final ArrayMap<String, LongSparseArray<WeakReference<ConstantState<T>>>> mCache =
30 new ArrayMap<String, LongSparseArray<WeakReference<ConstantState<T>>>>();
48 * @param constantState The constant state that can create new instances of the resource.
51 public void put(long key, Resources.Theme theme, ConstantState<T> constantState) {
52 if (constantState == null) {
56 LongSparseArray<WeakReference<ConstantState<T>>> themedCache;
60 themedCache = new LongSparseArray<WeakReference<ConstantState<T>>>(1);
63 themedCache.put(key, new WeakReference<ConstantState<T>>(constantState));
    [all...]
ConstantState.java 30 abstract public class ConstantState<T> {
Resources.java 34 import android.graphics.drawable.Drawable.ConstantState;
97 private static final LongSparseArray<ConstantState>[] sPreloadedDrawables;
98 private static final LongSparseArray<ConstantState> sPreloadedColorDrawables
99 = new LongSparseArray<ConstantState>();
115 private final ArrayMap<String, LongSparseArray<WeakReference<ConstantState>>> mDrawableCache =
116 new ArrayMap<String, LongSparseArray<WeakReference<ConstantState>>>();
117 private final ArrayMap<String, LongSparseArray<WeakReference<ConstantState>>> mColorDrawableCache =
118 new ArrayMap<String, LongSparseArray<WeakReference<ConstantState>>>();
148 sPreloadedDrawables[0] = new LongSparseArray<ConstantState>();
149 sPreloadedDrawables[1] = new LongSparseArray<ConstantState>();
    [all...]
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
CachingIconLoader.java 61 NowOrLater<Drawable.ConstantState> drawableState;
70 return new NowOrLaterWrapper<Drawable.ConstantState, Drawable>(drawableState){
72 public Drawable get(Drawable.ConstantState value) {
86 private synchronized NowOrLater<Drawable.ConstantState> queryCache(String drawableId) {
87 NowOrLater<Drawable.ConstantState> cached = mIconCache.get(drawableId);
100 private static class Entry extends CachedLater<Drawable.ConstantState>
  /frameworks/base/core/java/android/animation/
Animator.java 19 import android.content.res.ConstantState;
53 * ConstantState will not be garbage collected until this animator is collected
351 * Return a {@link android.content.res.ConstantState} instance that holds the shared state of
360 * @see android.content.res.ConstantState
364 public ConstantState<Animator> createConstantState() {
534 * Creates a {@link ConstantState} which holds changing configurations information associated
539 private static class AnimatorConstantState extends ConstantState<Animator> {
StateListAnimator.java 19 import android.content.res.ConstantState;
255 * Return a {@link android.content.res.ConstantState} instance that holds the shared state of
263 * @return The {@link android.content.res.ConstantState} associated to this Animator.
264 * @see android.content.res.ConstantState
268 public ConstantState<StateListAnimator> createConstantState() {
308 extends ConstantState<StateListAnimator> {
AnimatorInflater.java 20 import android.content.res.ConstantState;
125 final ConstantState<Animator> constantState = animator.createConstantState();
126 if (constantState != null) {
130 animatorCache.put(id, theme, constantState);
132 animator = constantState.newInstance(resources, theme);
169 final ConstantState<StateListAnimator> constantState = animator
171 if (constantState != null) {
172 cache.put(id, theme, constantState);
    [all...]
  /cts/tests/tests/graphics/src/android/graphics/drawable/cts/
AnimatedVectorDrawableTest.java 23 import android.graphics.drawable.Drawable.ConstantState;
125 ConstantState constantState = avd.getConstantState();
128 assertEquals(0, constantState.getChangingConfigurations());
134 assertEquals(0, constantState.getChangingConfigurations());
137 constantState = avd.getConstantState();
138 assertEquals(0xff, constantState.getChangingConfigurations());
142 assertEquals(0xff, constantState.getChangingConfigurations());
148 ConstantState constantState = AnimatedVectorDrawable.getConstantState()
    [all...]
ClipDrawableTest.java 35 import android.graphics.drawable.Drawable.ConstantState;
337 private ConstantState mConstantState;
381 public ConstantState getConstantState() {
385 public void setConstantState(ConstantState cs) {
390 private class MockConstantState extends ConstantState {
VectorDrawableTest.java 25 import android.graphics.drawable.Drawable.ConstantState;
227 ConstantState constantState = vectorDrawable.getConstantState();
230 assertEquals(0, constantState.getChangingConfigurations());
236 assertEquals(0, constantState.getChangingConfigurations());
239 constantState = vectorDrawable.getConstantState();
240 assertEquals(0xff, constantState.getChangingConfigurations());
244 assertEquals(0xff, constantState.getChangingConfigurations());
250 ConstantState constantState = vectorDrawable.getConstantState()
    [all...]
NinePatchDrawableTest.java 41 import android.graphics.drawable.Drawable.ConstantState;
122 ConstantState constantState = mNinePatchDrawable.getConstantState();
125 assertEquals(0, constantState.getChangingConfigurations());
131 assertEquals(0, constantState.getChangingConfigurations());
134 constantState = mNinePatchDrawable.getConstantState();
135 assertEquals(0xff, constantState.getChangingConfigurations());
139 assertEquals(0xff, constantState.getChangingConfigurations());
286 ConstantState constantState = mNinePatchDrawable.getConstantState()
    [all...]
GradientDrawableTest.java 31 import android.graphics.drawable.Drawable.ConstantState;
53 ConstantState constantState = gradientDrawable.getConstantState();
54 assertNotNull(constantState);
InsetDrawableTest.java 32 import android.graphics.drawable.Drawable.ConstantState;
316 ConstantState constantState = insetDrawable.getConstantState();
317 assertNotNull(constantState);
RotateDrawableTest.java 34 import android.graphics.drawable.Drawable.ConstantState;
206 ConstantState state = mRotateDrawable.getConstantState();
ShapeDrawableTest.java 29 import android.graphics.drawable.Drawable.ConstantState;
87 ConstantState constantState = shapeDrawable.getConstantState();
88 assertNotNull(constantState);
89 assertEquals(1, constantState.getChangingConfigurations());
  /frameworks/base/graphics/java/android/graphics/drawable/
InsetDrawable.java 37 import android.graphics.drawable.Drawable.ConstantState;
382 public ConstantState getConstantState() {
415 final static class InsetState extends ConstantState {
482 final ConstantState state = mDrawable.getConstantState();
ColorDrawable.java 274 public ConstantState getConstantState() {
278 final static class ColorState extends ConstantState {
AnimatedVectorDrawable.java 166 public ConstantState getConstantState() {
334 private static class AnimatedVectorDrawableState extends ConstantState {
345 final ConstantState cs = copy.mVectorDrawable.getConstantState();
ScaleDrawable.java 324 public ConstantState getConstantState() {
350 final static class ScaleState extends ConstantState {
420 final ConstantState state = mDrawable.getConstantState();
ClipDrawable.java 316 public ConstantState getConstantState() {
349 final static class ClipState extends ConstantState {
AnimatedRotateDrawable.java 256 public ConstantState getConstantState() {
401 final static class AnimatedRotateState extends Drawable.ConstantState {
  /frameworks/base/core/java/android/widget/
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();
  /frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
BackgroundManager.java 114 static class ConstantState extends Drawable.ConstantState {
130 private ConstantState mState = new ConstantState();
174 public ConstantState getConstantState() {
  /frameworks/support/v7/appcompat/src/android/support/v7/widget/
SuggestionsAdapter.java 72 private final WeakHashMap<String, Drawable.ConstantState> mOutsideDrawablesCache;
94 WeakHashMap<String, Drawable.ConstantState> outsideDrawablesCache) {
559 Drawable.ConstantState cached = mOutsideDrawablesCache.get(resourceUri);
604 Drawable.ConstantState cached = mOutsideDrawablesCache.get(componentIconKey);
610 Drawable.ConstantState toCache = drawable == null ? null : drawable.getConstantState();
  /packages/apps/Camera2/src/com/android/camera/ui/
BottomBar.java 80 private final Drawable.ConstantState[] mShutterButtonBackgroundConstantStates;
103 mShutterButtonBackgroundConstantStates = new Drawable.ConstantState[len];
386 private LayerDrawable newDrawableFromConstantState(Drawable.ConstantState constantState) {
387 return (LayerDrawable) constantState.newDrawable(getContext().getResources());

Completed in 1495 milliseconds

1 2 3