Searched refs:constantState (Results 1 - 7 of 7) sorted by relevance

/frameworks/support/graphics/drawable/static/src/androidTest/java/androidx/vectordrawable/graphics/drawable/tests/
H A DVectorDrawableTest.java285 Drawable.ConstantState constantState = vectorDrawable.getConstantState();
288 assertEquals(0, constantState.getChangingConfigurations());
294 assertEquals(0, constantState.getChangingConfigurations());
297 constantState = vectorDrawable.getConstantState();
298 assertEquals(0xff, constantState.getChangingConfigurations());
302 assertEquals(0xff, constantState.getChangingConfigurations());
310 Drawable.ConstantState constantState = vectorDrawable.getConstantState();
311 assertNotNull(constantState);
312 assertEquals(0, constantState.getChangingConfigurations());
315 constantState
[all...]
/frameworks/support/graphics/drawable/animated/src/androidTest/java/androidx/vectordrawable/graphics/drawable/tests/
H A DAnimatedVectorDrawableTest.java257 ConstantState constantState = d1.getConstantState();
259 if (constantState != null) {
261 assertEquals(0, constantState.getChangingConfigurations());
267 assertEquals(0, constantState.getChangingConfigurations());
270 constantState = d1.getConstantState();
271 assertEquals(0xff, constantState.getChangingConfigurations());
275 assertEquals(0xff, constantState.getChangingConfigurations());
282 ConstantState constantState = mAnimatedVectorDrawable.getConstantState();
283 if (constantState != null) {
284 assertEquals(0, constantState
[all...]
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/graphics/
H A DFitWidthBitmapDrawableTest.java73 public void constantState() { method in class:FitWidthBitmapDrawableTest
H A DCompositeDrawableTest.java166 public void constantState() { method in class:CompositeDrawableTest
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
H A DExtendedBitmapDrawable.java102 ConstantState constantState = mOpts.placeholder.getConstantState();
103 if (constantState != null) {
104 placeholder = constantState.newDrawable(mResources);
/frameworks/base/core/java/android/animation/
H A DAnimatorInflater.java129 final ConstantState<Animator> constantState = animator.createConstantState();
130 if (constantState != null) {
134 animatorCache.put(id, theme, constantState);
136 animator = constantState.newInstance(resources, theme);
173 final ConstantState<StateListAnimator> constantState = animator
175 if (constantState != null) {
176 cache.put(id, theme, constantState);
178 animator = constantState.newInstance(resources, theme);
/frameworks/layoutlib/bridge/src/android/content/res/
H A DResources_Delegate.java192 Drawable.ConstantState constantState = key != null ? sDrawableCache.get(key) : null;
194 if (constantState != null) {
195 drawable = constantState.newDrawable(resources, theme);

Completed in 308 milliseconds