Searched refs:getConstantState (Results 1 - 25 of 61) sorted by relevance

123

/frameworks/base/core/tests/coretests/src/android/view/
H A DMutateDrawableTest.java49 assertNotSame(mFirstButton.getBackground().getConstantState(),
50 mSecondButton.getBackground().getConstantState());
/frameworks/base/core/java/android/content/res/
H A DComplexColor.java47 public abstract ConstantState<ComplexColor> getConstantState(); method in class:ComplexColor
/frameworks/support/frameworks/support/samples/SupportVectorDrawableDemos/src/com/example/android/support/vectordrawable/app/
H A DSimpleAnimatedVectorDrawable.java75 if (d[0].getConstantState() != null) {
77 copies[0] = (AnimatedVectorDrawableCompat) d[0].getConstantState().newDrawable();
78 copies[1] = (AnimatedVectorDrawableCompat) d[0].getConstantState().newDrawable();
79 copies[2] = (AnimatedVectorDrawableCompat) d[0].getConstantState().newDrawable();
H A DSimpleStaticVectorDrawable.java106 ConstantState state = d[0].getConstantState();
/frameworks/support/samples/SupportVectorDrawableDemos/src/com/example/android/support/vectordrawable/app/
H A DSimpleAnimatedVectorDrawable.java75 if (d[0].getConstantState() != null) {
77 copies[0] = (AnimatedVectorDrawableCompat) d[0].getConstantState().newDrawable();
78 copies[1] = (AnimatedVectorDrawableCompat) d[0].getConstantState().newDrawable();
79 copies[2] = (AnimatedVectorDrawableCompat) d[0].getConstantState().newDrawable();
H A DSimpleStaticVectorDrawable.java106 ConstantState state = d[0].getConstantState();
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/drawable/
H A DUserIconDrawableTest.java46 assertThat(mDrawable.getConstantState()).isNotNull();
/frameworks/base/core/java/com/android/internal/policy/
H A DBackdropFrameRenderer.java114 && resizingBackgroundDrawable.getConstantState() != null
115 ? resizingBackgroundDrawable.getConstantState().newDrawable()
118 && captionBackgroundDrawableDrawable.getConstantState() != null
119 ? captionBackgroundDrawableDrawable.getConstantState().newDrawable()
122 && userCaptionBackgroundDrawable.getConstantState() != null
123 ? userCaptionBackgroundDrawable.getConstantState().newDrawable()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DExpandableIndicator.java45 .getDrawable(res).getConstantState().newDrawable();
/frameworks/support/graphics/drawable/static/tests/src/android/support/graphics/drawable/tests/
H A DVectorDrawableTest.java284 Drawable.ConstantState constantState = vectorDrawable.getConstantState();
296 constantState = vectorDrawable.getConstantState();
309 Drawable.ConstantState constantState = vectorDrawable.getConstantState();
314 constantState = vectorDrawable.getConstantState();
324 (VectorDrawableCompat) d1.getConstantState().newDrawable(mResources);
326 (VectorDrawableCompat) d1.getConstantState().newDrawable(mResources);
/frameworks/support/compat/tests/java/android/support/v4/graphics/
H A DDrawableCompatTest.java102 assertNotNull(drawable.getConstantState());
106 assertNotNull(wrapper.getConstantState());
/frameworks/base/core/java/android/util/
H A DLauncherIcons.java112 .getConstantState().newDrawable().mutate();
132 mState = new MyConstantState(shadow, dr.getConstantState());
141 public ConstantState getConstantState() { method in class:LauncherIcons.ShadowDrawable
/frameworks/support/compat/ics/android/support/v4/graphics/drawable/
H A DDrawableWrapperApi14.java205 public ConstantState getConstantState() { method in class:DrawableWrapperApi14
221 mState.mDrawableState = mDrawable != null ? mDrawable.getConstantState() : null;
339 mState.mDrawableState = dr.getConstantState();
/frameworks/base/graphics/java/android/graphics/drawable/
H A DAnimatedVectorDrawable.java373 public ConstantState getConstantState() { method in class:AnimatedVectorDrawable
715 final ConstantState cs = copy.mVectorDrawable.getConstantState();
906 getConstantState()).mVectorDrawable.getConstantState()).mRootName
918 getConstantState()).mVectorDrawable.getConstantState()).mRootName
941 getConstantState()).mVectorDrawable.getConstantState())
1661 mDrawable.getConstantState()).mVectorDrawable.getConstantState())
[all...]
H A DDrawableWrapper.java103 mState.mDrawableState = dr.getConstantState();
378 public ConstantState getConstantState() { method in class:DrawableWrapper
395 mState.mDrawableState = mDrawable != null ? mDrawable.getConstantState() : null;
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/graphics/
H A DFitWidthBitmapDrawableTest.java78 // getConstantState().newDrawable() will create a new drawable with shared states:
80 drawable.getConstantState().newDrawable();
H A DCompositeDrawableTest.java171 // getConstantState().newDrawable() will create a new CompositeDrawable with shared states:
173 parentDrawable.getConstantState().newDrawable();
218 CompositeDrawable newDrawable = (CompositeDrawable) parent.getConstantState().newDrawable();
/frameworks/support/graphics/drawable/animated/tests/src/android/support/graphics/drawable/tests/
H A DAnimatedVectorDrawableTest.java255 ConstantState constantState = d1.getConstantState();
268 constantState = d1.getConstantState();
280 ConstantState constantState = mAnimatedVectorDrawable.getConstantState();
285 constantState = mAnimatedVectorDrawable.getConstantState();
354 if (d1.getConstantState() != null) {
/frameworks/support/wear/src/android/support/wear/widget/
H A DCircledImageView.java133 if (mDrawable != null && mDrawable.getConstantState() != null) {
138 mDrawable.getConstantState()
141 mDrawable = mDrawable.getConstantState().newDrawable(context.getResources());
676 if (mDrawable != null && mDrawable.getConstantState() != null) {
681 .getConstantState()
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/
H A DAnimatedVectorDrawableCompat.java184 * mutate() will be effective only if the getConstantState() is returning non-null.
193 // any modification here, and the getConstantState() will return null in this case.
214 drawable.mDelegateDrawable.getConstantState());
260 public ConstantState getConstantState() { method in class:AnimatedVectorDrawableCompat
262 return new AnimatedVectorDrawableDelegateState(mDelegateDrawable.getConstantState());
589 final ConstantState cs = copy.mVectorDrawable.getConstantState();
/frameworks/support/v17/leanback/src/android/support/v17/leanback/graphics/
H A DFitWidthBitmapDrawable.java84 public ConstantState getConstantState() { method in class:FitWidthBitmapDrawable
H A DCompositeDrawable.java78 public ConstantState getConstantState() { method in class:CompositeDrawable
260 final ConstantState cs = dr.getConstantState();
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DDrawableUtils.java139 final Drawable.ConstantState state = drawable.getConstantState();
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawable/
H A DUserIconDrawable.java278 public ConstantState getConstantState() { method in class:UserIconDrawable
279 return new BitmapDrawable(mBitmap).getConstantState();
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
H A DExtendedBitmapDrawable.java102 ConstantState constantState = mOpts.placeholder.getConstantState();
130 mProgress = new Progress(mOpts.progressBar.getConstantState().newDrawable(mResources), mResources,

Completed in 5833 milliseconds

123