Searched refs:getConstantState (Results 1 - 22 of 22) 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.java239 public ConstantState getConstantState() { method in class:ClipDrawable
266 mDrawable = orig.mDrawable.getConstantState().newDrawable(res);
268 mDrawable = orig.mDrawable.getConstantState().newDrawable();
295 mCanConstantState = mDrawable.getConstantState() != null;
H A DInsetDrawable.java253 public ConstantState getConstantState() { method in class:InsetDrawable
292 mDrawable = orig.mDrawable.getConstantState().newDrawable(res);
294 mDrawable = orig.mDrawable.getConstantState().newDrawable();
323 mCanConstantState = mDrawable.getConstantState() != null;
H A DAnimatedRotateDrawable.java217 public ConstantState getConstantState() { method in class:AnimatedRotateDrawable
322 mDrawable = source.mDrawable.getConstantState().newDrawable(res);
324 mDrawable = source.mDrawable.getConstantState().newDrawable();
355 mCanConstantState = mDrawable.getConstantState() != null;
H A DRotateDrawable.java198 public ConstantState getConstantState() { method in class:RotateDrawable
319 mDrawable = source.mDrawable.getConstantState().newDrawable(res);
321 mDrawable = source.mDrawable.getConstantState().newDrawable();
352 mCanConstantState = mDrawable.getConstantState() != null;
H A DScaleDrawable.java248 public ConstantState getConstantState() { method in class:ScaleDrawable
279 mDrawable = orig.mDrawable.getConstantState().newDrawable(res);
281 mDrawable = orig.mDrawable.getConstantState().newDrawable();
310 mCanConstantState = mDrawable.getConstantState() != null;
H A DColorDrawable.java173 public ConstantState getConstantState() { method in class:ColorDrawable
H A DLayerDrawable.java597 public ConstantState getConstantState() { method in class:LayerDrawable
669 r.mDrawable = or.mDrawable.getConstantState().newDrawable(res);
671 r.mDrawable = or.mDrawable.getConstantState().newDrawable();
748 if (mChildren[i].mDrawable.getConstantState() == null) {
H A DDrawableContainer.java425 public ConstantState getConstantState() { method in class:DrawableContainer
834 if (drawables[i].getConstantState() == null) {
852 mConstantState = source.getConstantState();
H A DShapeDrawable.java376 public ConstantState getConstantState() { method in class:ShapeDrawable
H A DBitmapDrawable.java629 public final ConstantState getConstantState() { method in class:BitmapDrawable
H A DDrawable.java779 * @see #getConstantState()
997 * Use {@link Drawable#getConstantState()} to retrieve the ConstantState of a Drawable. Calling
1040 public ConstantState getConstantState() { method in class:Drawable
H A DNinePatchDrawable.java427 public ConstantState getConstantState() { method in class:NinePatchDrawable
H A DGradientDrawable.java1060 public ConstantState getConstantState() { method in class:GradientDrawable
/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.java210 mExpandedHomeLayout.setBackground(upBackground.getConstantState().newDrawable());
702 mExpandedHomeLayout.setIcon(mIcon.getConstantState().newDrawable(getResources()));
1637 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.java646 mExpandedHomeLayout.setIcon(mIcon.getConstantState().newDrawable(getResources()));
1440 mExpandedHomeLayout.setIcon(mIcon.getConstantState().newDrawable(getResources()));
/frameworks/base/core/java/android/app/
H A DApplicationPackageManager.java865 sIconCache.put(name, new WeakReference<Drawable.ConstantState>(dr.getConstantState()));
/frameworks/base/core/java/android/content/res/
H A DResources.java2129 cs = dr.getConstantState();

Completed in 349 milliseconds