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

  /cts/tests/tests/graphics/src/android/graphics/drawable/cts/
GradientDrawableTest.java 29 import android.graphics.drawable.Drawable.ConstantState;
51 ConstantState constantState = gradientDrawable.getConstantState();
52 assertNotNull(constantState);
InsetDrawableTest.java 31 import android.graphics.drawable.Drawable.ConstantState;
314 ConstantState constantState = insetDrawable.getConstantState();
315 assertNotNull(constantState);
AnimatedVectorDrawableTest.java 25 import android.graphics.drawable.Drawable.ConstantState;
133 ConstantState constantState = avd.getConstantState();
136 assertEquals(0, constantState.getChangingConfigurations());
142 assertEquals(0, constantState.getChangingConfigurations());
145 constantState = avd.getConstantState();
146 assertEquals(0xff, constantState.getChangingConfigurations());
150 assertEquals(0xff, constantState.getChangingConfigurations());
156 ConstantState constantState = AnimatedVectorDrawable.getConstantState()
    [all...]
BitmapDrawableTest.java 37 import android.graphics.drawable.Drawable.ConstantState;
295 ConstantState constantState = bitmapDrawable.getConstantState();
296 assertNotNull(constantState);
297 assertEquals(0, constantState.getChangingConfigurations());
300 constantState = bitmapDrawable.getConstantState();
301 assertNotNull(constantState);
302 assertEquals(1, constantState.getChangingConfigurations());
NinePatchDrawableTest.java 39 import android.graphics.drawable.Drawable.ConstantState;
119 ConstantState constantState = mNinePatchDrawable.getConstantState();
122 assertEquals(0, constantState.getChangingConfigurations());
128 assertEquals(0, constantState.getChangingConfigurations());
131 constantState = mNinePatchDrawable.getConstantState();
132 assertEquals(0xff, constantState.getChangingConfigurations());
136 assertEquals(0xff, constantState.getChangingConfigurations());
304 ConstantState constantState = mNinePatchDrawable.getConstantState()
    [all...]
ShapeDrawableTest.java 28 import android.graphics.drawable.Drawable.ConstantState;
86 ConstantState constantState = shapeDrawable.getConstantState();
87 assertNotNull(constantState);
88 assertEquals(1, constantState.getChangingConfigurations());
VectorDrawableTest.java 28 import android.graphics.drawable.Drawable.ConstantState;
235 ConstantState constantState = vectorDrawable.getConstantState();
238 assertEquals(0, constantState.getChangingConfigurations());
244 assertEquals(0, constantState.getChangingConfigurations());
247 constantState = vectorDrawable.getConstantState();
248 assertEquals(0xff, constantState.getChangingConfigurations());
252 assertEquals(0xff, constantState.getChangingConfigurations());
258 ConstantState constantState = vectorDrawable.getConstantState()
    [all...]
DrawableWrapperTest.java 30 import android.graphics.drawable.Drawable.ConstantState;
375 ConstantState constantState = wrapper.getConstantState();
LayerDrawableTest.java 35 import android.graphics.drawable.Drawable.ConstantState;
    [all...]
ScaleDrawableTest.java 34 import android.graphics.drawable.Drawable.ConstantState;
395 ConstantState constantState = scaleDrawable.getConstantState();
396 assertNotNull(constantState);
397 assertEquals(0, constantState.getChangingConfigurations());
400 constantState = scaleDrawable.getConstantState();
401 assertNotNull(constantState);
402 assertEquals(1, constantState.getChangingConfigurations());
  /frameworks/base/core/java/android/animation/
AnimatorInflater.java 21 import android.content.res.ConstantState;
126 final ConstantState<Animator> constantState = animator.createConstantState();
127 if (constantState != null) {
131 animatorCache.put(id, theme, constantState);
133 animator = constantState.newInstance(resources, theme);
170 final ConstantState<StateListAnimator> constantState = animator
172 if (constantState != null) {
173 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 296 milliseconds