Home
last modified time | relevance | path

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

/frameworks/support/design/src/android/support/design/widget/
DDrawableUtils.java38 Drawable.ConstantState constantState) { in setContainerConstantState() argument
40 return setContainerConstantStateV9(drawable, constantState); in setContainerConstantState()
44 Drawable.ConstantState constantState) { in setContainerConstantStateV9() argument
57 sSetConstantStateMethod.invoke(drawable, constantState); in setContainerConstantStateV9()
/frameworks/support/graphics/drawable/static/tests/src/android/support/graphics/drawable/tests/
DVectorDrawableTest.java284 Drawable.ConstantState constantState = vectorDrawable.getConstantState(); in testGetChangingConfigurations() local
287 assertEquals(0, constantState.getChangingConfigurations()); in testGetChangingConfigurations()
293 assertEquals(0, constantState.getChangingConfigurations()); in testGetChangingConfigurations()
296 constantState = vectorDrawable.getConstantState(); in testGetChangingConfigurations()
297 assertEquals(0xff, constantState.getChangingConfigurations()); in testGetChangingConfigurations()
301 assertEquals(0xff, constantState.getChangingConfigurations()); in testGetChangingConfigurations()
309 Drawable.ConstantState constantState = vectorDrawable.getConstantState(); in testGetConstantState() local
310 assertNotNull(constantState); in testGetConstantState()
311 assertEquals(0, constantState.getChangingConfigurations()); in testGetConstantState()
314 constantState = vectorDrawable.getConstantState(); in testGetConstantState()
[all …]
/frameworks/support/graphics/drawable/animated/tests/src/android/support/graphics/drawable/tests/
DAnimatedVectorDrawableTest.java255 ConstantState constantState = d1.getConstantState(); in testGetChangingConfigurations() local
257 if (constantState != null) { in testGetChangingConfigurations()
259 assertEquals(0, constantState.getChangingConfigurations()); in testGetChangingConfigurations()
265 assertEquals(0, constantState.getChangingConfigurations()); in testGetChangingConfigurations()
268 constantState = d1.getConstantState(); in testGetChangingConfigurations()
269 assertEquals(0xff, constantState.getChangingConfigurations()); in testGetChangingConfigurations()
273 assertEquals(0xff, constantState.getChangingConfigurations()); in testGetChangingConfigurations()
280 ConstantState constantState = mAnimatedVectorDrawable.getConstantState(); in testGetConstantState() local
281 if (constantState != null) { in testGetConstantState()
282 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/v17/leanback/tests/java/android/support/v17/leanback/graphics/
DFitWidthBitmapDrawableTest.java73 public void constantState() { in constantState() method in FitWidthBitmapDrawableTest
DCompositeDrawableTest.java165 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()