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

12

/frameworks/base/core/tests/coretests/src/android/view/
H A DMutateDrawableTest.java49 assertNotSame(mFirstButton.getBackground().getConstantState(),
50 mSecondButton.getBackground().getConstantState());
/frameworks/base/graphics/java/android/graphics/drawable/
H A DClipDrawable.java256 public ConstantState getConstantState() { method in class:ClipDrawable
283 mDrawable = orig.mDrawable.getConstantState().newDrawable(res);
285 mDrawable = orig.mDrawable.getConstantState().newDrawable();
314 mCanConstantState = mDrawable.getConstantState() != null;
H A DAnimatedRotateDrawable.java248 public ConstantState getConstantState() { method in class:AnimatedRotateDrawable
353 mDrawable = orig.mDrawable.getConstantState().newDrawable(res);
355 mDrawable = orig.mDrawable.getConstantState().newDrawable();
388 mCanConstantState = mDrawable.getConstantState() != null;
H A DScaleDrawable.java262 public ConstantState getConstantState() { method in class:ScaleDrawable
293 mDrawable = orig.mDrawable.getConstantState().newDrawable(res);
295 mDrawable = orig.mDrawable.getConstantState().newDrawable();
326 mCanConstantState = mDrawable.getConstantState() != null;
H A DInsetDrawable.java356 public ConstantState getConstantState() { method in class:InsetDrawable
399 mDrawable = orig.mDrawable.getConstantState().newDrawable(res);
401 mDrawable = orig.mDrawable.getConstantState().newDrawable();
432 mCanConstantState = mDrawable.getConstantState() != null;
H A DRotateDrawable.java391 public ConstantState getConstantState() { method in class:RotateDrawable
513 mDrawable = orig.mDrawable.getConstantState().newDrawable(res);
515 mDrawable = orig.mDrawable.getConstantState().newDrawable();
548 mCanConstantState = mDrawable.getConstantState() != null;
H A DAnimatedVectorDrawable.java161 public ConstantState getConstantState() { method in class:AnimatedVectorDrawable
336 mVectorDrawable = (VectorDrawable) copy.mVectorDrawable.getConstantState().newDrawable();
H A DColorDrawable.java261 public ConstantState getConstantState() { method in class:ColorDrawable
H A DLayerDrawable.java921 public ConstantState getConstantState() { method in class:LayerDrawable
966 mDrawable = orig.mDrawable.getConstantState().newDrawable(res);
968 mDrawable = orig.mDrawable.getConstantState().newDrawable();
1096 if (array[i].mDrawable.getConstantState() == null) {
H A DDrawableContainer.java559 public ConstantState getConstantState() { method in class:DrawableContainer
1019 if (drawables[i].getConstantState() == null) {
1037 mConstantState = source.getConstantState();
H A DShapeDrawable.java482 public ConstantState getConstantState() { method in class:ShapeDrawable
H A DDrawable.java913 * @see #getConstantState()
1176 * Use {@link Drawable#getConstantState()} to retrieve the ConstantState of a Drawable. Calling
1236 public ConstantState getConstantState() { method in class:Drawable
H A DNinePatchDrawable.java551 public ConstantState getConstantState() { method in class:NinePatchDrawable
H A DRippleDrawable.java885 public ConstantState getConstantState() { method in class:RippleDrawable
H A DBitmapDrawable.java858 public final ConstantState getConstantState() { method in class:BitmapDrawable
H A DGradientDrawable.java1412 public ConstantState getConstantState() { method in class:GradientDrawable
H A DVectorDrawable.java241 public ConstantState getConstantState() { method in class:VectorDrawable
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
H A DBackgroundManager.java173 public ConstantState getConstantState() { method in class:BackgroundManager.BitmapDrawable
317 return drawable.getConstantState().newDrawable(context.getResources()).mutate();
415 drawable.getConstantState().newDrawable().mutate();
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
H A DExtendedBitmapDrawable.java102 ConstantState constantState = mOpts.placeholder.getConstantState();
128 mProgress = new Progress(mOpts.progressBar.getConstantState().newDrawable(mResources), mResources,
/frameworks/base/core/java/android/widget/
H A DSuggestionsAdapter.java610 mOutsideDrawablesCache.put(resourceUri, drawable.getConstantState());
651 Drawable.ConstantState toCache = drawable == null ? null : drawable.getConstantState();
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DSuggestionsAdapter.java563 mOutsideDrawablesCache.put(resourceUri, drawable.getConstantState());
604 Drawable.ConstantState toCache = drawable == null ? null : drawable.getConstantState();
/frameworks/base/core/java/com/android/internal/view/menu/
H A DIconMenuView.java282 return mItemBackground.getConstantState().newDrawable(getContext().getResources());
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DTaskViewHeader.java154 mBackground = (RippleDrawable) mBackground.mutate().getConstantState().newDrawable();
/frameworks/base/core/java/com/android/internal/widget/
H A DActionBarView.java197 mExpandedHomeLayout.setBackground(upBackground.getConstantState().newDrawable());
683 mExpandedHomeLayout.setIcon(mIcon.getConstantState().newDrawable(getResources()));
1653 mExpandedHomeLayout.setIcon(mIcon.getConstantState().newDrawable(getResources()));
/frameworks/base/core/java/android/app/
H A DApplicationPackageManager.java1021 sIconCache.put(name, new WeakReference<Drawable.ConstantState>(dr.getConstantState()));

Completed in 282 milliseconds

12