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

/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.java234 public ConstantState getConstantState() { method in class:ClipDrawable
261 mDrawable = orig.mDrawable.getConstantState().newDrawable(res);
263 mDrawable = orig.mDrawable.getConstantState().newDrawable();
289 mCanConstantState = mDrawable.getConstantState() != null;
H A DInsetDrawable.java242 public ConstantState getConstantState() { method in class:InsetDrawable
274 mDrawable = orig.mDrawable.getConstantState().newDrawable(res);
276 mDrawable = orig.mDrawable.getConstantState().newDrawable();
304 mCanConstantState = mDrawable.getConstantState() != null;
H A DScaleDrawable.java243 public ConstantState getConstantState() { method in class:ScaleDrawable
274 mDrawable = orig.mDrawable.getConstantState().newDrawable(res);
276 mDrawable = orig.mDrawable.getConstantState().newDrawable();
304 mCanConstantState = mDrawable.getConstantState() != null;
H A DAnimatedRotateDrawable.java212 public ConstantState getConstantState() { method in class:AnimatedRotateDrawable
317 mDrawable = source.mDrawable.getConstantState().newDrawable(res);
319 mDrawable = source.mDrawable.getConstantState().newDrawable();
349 mCanConstantState = mDrawable.getConstantState() != null;
H A DRotateDrawable.java193 public ConstantState getConstantState() { method in class:RotateDrawable
314 mDrawable = source.mDrawable.getConstantState().newDrawable(res);
316 mDrawable = source.mDrawable.getConstantState().newDrawable();
346 mCanConstantState = mDrawable.getConstantState() != null;
H A DColorDrawable.java172 public ConstantState getConstantState() { method in class:ColorDrawable
H A DDrawableContainer.java401 public ConstantState getConstantState() { method in class:DrawableContainer
478 mDrawables[i] = origDr[i].getConstantState().newDrawable(res);
480 mDrawables[i] = origDr[i].getConstantState().newDrawable();
698 if (mDrawables[i].getConstantState() == null) {
H A DLayerDrawable.java567 public ConstantState getConstantState() { method in class:LayerDrawable
639 r.mDrawable = or.mDrawable.getConstantState().newDrawable(res);
641 r.mDrawable = or.mDrawable.getConstantState().newDrawable();
716 if (mChildren[i].mDrawable.getConstantState() == null) {
H A DShapeDrawable.java368 public ConstantState getConstantState() { method in class:ShapeDrawable
H A DBitmapDrawable.java502 public final ConstantState getConstantState() { method in class:BitmapDrawable
H A DDrawable.java734 * @see #getConstantState()
940 * Use {@link Drawable#getConstantState()} to retrieve the ConstantState of a Drawable. Calling
976 public ConstantState getConstantState() { method in class:Drawable
H A DNinePatchDrawable.java382 public ConstantState getConstantState() { method in class:NinePatchDrawable
H A DGradientDrawable.java1057 public ConstantState getConstantState() { method in class:GradientDrawable
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/drawable/
H A DMipmapDrawableTest.java36 mDrawableContainerState = (DrawableContainerState) mMipmapDrawable.getConstantState();
42 assertNotNull(new MipmapDrawable().getConstantState());
/frameworks/base/core/java/android/widget/
H A DSuggestionsAdapter.java603 mOutsideDrawablesCache.put(resourceUri, drawable.getConstantState());
644 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/core/java/com/android/internal/widget/
H A DActionBarView.java235 mExpandedHomeLayout.setBackground(upBackground.getConstantState().newDrawable());
683 mExpandedHomeLayout.setIcon(mIcon.getConstantState().newDrawable(getResources()));
1544 mExpandedHomeLayout.setIcon(mIcon.getConstantState().newDrawable(getResources()));
/frameworks/base/core/java/com/android/internal/app/
H A DMediaRouteChooserDialogFragment.java474 icon = icon.getConstantState().newDrawable(getResources());
/frameworks/base/core/java/android/app/
H A DApplicationPackageManager.java836 sIconCache.put(name, new WeakReference<Drawable.ConstantState>(dr.getConstantState()));
/frameworks/base/core/java/android/content/res/
H A DResources.java1982 cs = dr.getConstantState();

Completed in 381 milliseconds