HomeSort by relevance Sort by last modified time
    Searched defs:constantState (Results 1 - 12 of 12) sorted by null

  /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...]
  /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...]
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);
BitmapDrawableTest.java 38 import android.graphics.drawable.Drawable.ConstantState;
280 ConstantState constantState = bitmapDrawable.getConstantState();
281 assertNotNull(constantState);
282 assertEquals(0, constantState.getChangingConfigurations());
285 constantState = bitmapDrawable.getConstantState();
286 assertNotNull(constantState);
287 assertEquals(1, constantState.getChangingConfigurations());
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...]
ShapeDrawableTest.java 29 import android.graphics.drawable.Drawable.ConstantState;
87 ConstantState constantState = shapeDrawable.getConstantState();
88 assertNotNull(constantState);
89 assertEquals(1, constantState.getChangingConfigurations());
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...]
LayerDrawableTest.java 36 import android.graphics.drawable.Drawable.ConstantState;
718 ConstantState constantState = layerDrawable.getConstantState();
719 assertNotNull(constantState);
720 assertEquals(0, constantState.getChangingConfigurations());
723 constantState = layerDrawable.getConstantState();
724 assertNotNull(constantState);
725 assertEquals(1, constantState.getChangingConfigurations());
    [all...]
ScaleDrawableTest.java 32 import android.graphics.drawable.Drawable.ConstantState;
388 ConstantState constantState = scaleDrawable.getConstantState();
389 assertNotNull(constantState);
390 assertEquals(0, constantState.getChangingConfigurations());
393 constantState = scaleDrawable.getConstantState();
394 assertNotNull(constantState);
395 assertEquals(1, constantState.getChangingConfigurations());
  /frameworks/base/core/java/android/animation/
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...]
  /frameworks/opt/bitmap/src/com/android/bitmap/drawable/
ExtendedBitmapDrawable.java 102 ConstantState constantState = mOpts.placeholder.getConstantState();
103 if (constantState != null) {
104 placeholder = constantState.newDrawable(mResources);

Completed in 232 milliseconds