Home
last modified time | relevance | path

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

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