Home
last modified time | relevance | path

Searched refs:getConstantState (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/view/
DMutateDrawableTest.java49 assertNotSame(mFirstButton.getBackground().getConstantState(), in testDrawableCanMutate()
50 mSecondButton.getBackground().getConstantState()); in testDrawableCanMutate()
/frameworks/base/graphics/java/android/graphics/drawable/
DClipDrawable.java235 public ConstantState getConstantState() { in getConstantState() method in ClipDrawable
257 mDrawable = orig.mDrawable.getConstantState().newDrawable(res); in ClipState()
259 mDrawable = orig.mDrawable.getConstantState().newDrawable(); in ClipState()
285 mCanConstantState = mDrawable.getConstantState() != null; in canConstantState()
DInsetDrawable.java242 public ConstantState getConstantState() { in getConstantState() method in InsetDrawable
274 mDrawable = orig.mDrawable.getConstantState().newDrawable(res); in InsetState()
276 mDrawable = orig.mDrawable.getConstantState().newDrawable(); in InsetState()
304 mCanConstantState = mDrawable.getConstantState() != null; in canConstantState()
DScaleDrawable.java244 public ConstantState getConstantState() { in getConstantState() method in ScaleDrawable
275 mDrawable = orig.mDrawable.getConstantState().newDrawable(res); in ScaleState()
277 mDrawable = orig.mDrawable.getConstantState().newDrawable(); in ScaleState()
305 mCanConstantState = mDrawable.getConstantState() != null; in canConstantState()
DRotateDrawable.java193 public ConstantState getConstantState() { in getConstantState() method in RotateDrawable
314 mDrawable = source.mDrawable.getConstantState().newDrawable(res); in RotateState()
316 mDrawable = source.mDrawable.getConstantState().newDrawable(); in RotateState()
346 mCanConstantState = mDrawable.getConstantState() != null; in canConstantState()
DAnimatedRotateDrawable.java212 public ConstantState getConstantState() { in getConstantState() method in AnimatedRotateDrawable
317 mDrawable = source.mDrawable.getConstantState().newDrawable(res); in AnimatedRotateState()
319 mDrawable = source.mDrawable.getConstantState().newDrawable(); in AnimatedRotateState()
349 mCanConstantState = mDrawable.getConstantState() != null; in canConstantState()
DDrawableContainer.java391 public ConstantState getConstantState() { in getConstantState() method in DrawableContainer
469 mDrawables[i] = origDr[i].getConstantState().newDrawable(res); in DrawableContainerState()
471 mDrawables[i] = origDr[i].getConstantState().newDrawable(); in DrawableContainerState()
694 if (mDrawables[i].getConstantState() == null) { in canConstantState()
DLayerDrawable.java567 public ConstantState getConstantState() { in getConstantState() method in LayerDrawable
625 r.mDrawable = or.mDrawable.getConstantState().newDrawable(res); in LayerState()
627 r.mDrawable = or.mDrawable.getConstantState().newDrawable(); in LayerState()
702 if (mChildren[i].mDrawable.getConstantState() == null) { in canConstantState()
DColorDrawable.java154 public ConstantState getConstantState() { in getConstantState() method in ColorDrawable
DNinePatchDrawable.java329 public ConstantState getConstantState() { in getConstantState() method in NinePatchDrawable
DShapeDrawable.java368 public ConstantState getConstantState() { in getConstantState() method in ShapeDrawable
DDrawable.java958 public ConstantState getConstantState() { in getConstantState() method in Drawable
DBitmapDrawable.java502 public final ConstantState getConstantState() { in getConstantState() method in BitmapDrawable
DGradientDrawable.java870 public ConstantState getConstantState() {
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/drawable/
DMipmapDrawableTest.java36 mDrawableContainerState = (DrawableContainerState) mMipmapDrawable.getConstantState(); in setUp()
42 assertNotNull(new MipmapDrawable().getConstantState()); in testMipmapDrawable()
/frameworks/base/core/java/android/widget/
DSuggestionsAdapter.java603 mOutsideDrawablesCache.put(resourceUri, drawable.getConstantState()); in storeInIconCache()
644 Drawable.ConstantState toCache = drawable == null ? null : drawable.getConstantState(); in getActivityIconWithCache()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/
DRecentsScrollViewPerformanceHelper.java86 .getDrawable(R.drawable.status_bar_recents_background_solid).getConstantState(); in onAttachedToWindowCallback()
/frameworks/base/core/java/com/android/internal/view/menu/
DIconMenuView.java282 return mItemBackground.getConstantState().newDrawable(getContext().getResources()); in getItemBackgroundDrawable()
/frameworks/base/core/java/android/content/res/
DResources.java1954 cs = dr.getConstantState(); in loadDrawable()
/frameworks/base/core/java/com/android/internal/widget/
DActionBarView.java1372 mExpandedHomeLayout.setIcon(mIcon.getConstantState().newDrawable(getResources())); in expandItemActionView()
/frameworks/base/api/
Dcurrent.txt8873 method public final android.graphics.drawable.Drawable.ConstantState getConstantState();
8931 method public android.graphics.drawable.Drawable.ConstantState getConstantState();
D14.txt8873 method public final android.graphics.drawable.Drawable.ConstantState getConstantState();
8931 method public android.graphics.drawable.Drawable.ConstantState getConstantState();