Searched refs:getConstantState (Results 1 - 24 of 24) 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();
290 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();
305 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();
350 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();
347 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();
305 mCanConstantState = mDrawable.getConstantState() != null;
H A DColorDrawable.java172 public ConstantState getConstantState() { method in class:ColorDrawable
H A DDrawableContainer.java402 public ConstantState getConstantState() { method in class:DrawableContainer
479 mDrawables[i] = origDr[i].getConstantState().newDrawable(res);
481 mDrawables[i] = origDr[i].getConstantState().newDrawable();
700 if (mDrawables[i].getConstantState() == null) {
H A DLayerDrawable.java567 public ConstantState getConstantState() { method in class:LayerDrawable
637 r.mDrawable = or.mDrawable.getConstantState().newDrawable(res);
639 r.mDrawable = or.mDrawable.getConstantState().newDrawable();
715 if (mChildren[i].mDrawable.getConstantState() == null) {
H A DShapeDrawable.java371 public ConstantState getConstantState() { method in class:ShapeDrawable
H A DBitmapDrawable.java551 public final ConstantState getConstantState() { method in class:BitmapDrawable
H A DDrawable.java739 * @see #getConstantState()
961 * Use {@link Drawable#getConstantState()} to retrieve the ConstantState of a Drawable. Calling
997 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/support/v4/java/android/support/v4/app/
H A DActionBarDrawerToggle.java528 public ConstantState getConstantState() { method in class:ActionBarDrawerToggle.SlideDrawable
529 return super.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/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/core/java/com/android/internal/widget/
H A DActionBarView.java240 mExpandedHomeLayout.setBackground(upBackground.getConstantState().newDrawable());
727 mExpandedHomeLayout.setIcon(mIcon.getConstantState().newDrawable(getResources()));
1630 mExpandedHomeLayout.setIcon(mIcon.getConstantState().newDrawable(getResources()));
/frameworks/base/core/java/com/android/internal/app/
H A DMediaRouteChooserDialogFragment.java455 icon = icon.getConstantState().newDrawable(getResources());
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
H A DActionBarView.java636 mExpandedHomeLayout.setIcon(mIcon.getConstantState().newDrawable(getResources()));
1430 mExpandedHomeLayout.setIcon(mIcon.getConstantState().newDrawable(getResources()));
/frameworks/base/core/java/android/app/
H A DApplicationPackageManager.java848 sIconCache.put(name, new WeakReference<Drawable.ConstantState>(dr.getConstantState()));
/frameworks/base/core/java/android/content/res/
H A DResources.java2124 cs = dr.getConstantState();

Completed in 8354 milliseconds