Home
last modified time | relevance | path

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

12

/frameworks/base/core/tests/coretests/src/android/view/
DMutateDrawableTest.java49 assertNotSame(mFirstButton.getBackground().getConstantState(), in testDrawableCanMutate()
50 mSecondButton.getBackground().getConstantState()); in testDrawableCanMutate()
/frameworks/support/graphics/drawable/static/tests/src/android/support/graphics/drawable/tests/
DVectorDrawableTest.java268 Drawable.ConstantState constantState = vectorDrawable.getConstantState(); in testGetChangingConfigurations()
280 constantState = vectorDrawable.getConstantState(); in testGetChangingConfigurations()
293 Drawable.ConstantState constantState = vectorDrawable.getConstantState(); in testGetConstantState()
298 constantState = vectorDrawable.getConstantState(); in testGetConstantState()
308 (VectorDrawableCompat) d1.getConstantState().newDrawable(mResources); in testMutate()
310 (VectorDrawableCompat) d1.getConstantState().newDrawable(mResources); in testMutate()
/frameworks/support/graphics/drawable/animated/tests/src/android/support/graphics/drawable/tests/
DAnimatedVectorDrawableTest.java145 ConstantState constantState = mAnimatedVectorDrawable.getConstantState(); in testGetChangingConfigurations()
158 constantState = mAnimatedVectorDrawable.getConstantState(); in testGetChangingConfigurations()
170 ConstantState constantState = mAnimatedVectorDrawable.getConstantState(); in testGetConstantState()
175 constantState = mAnimatedVectorDrawable.getConstantState(); in testGetConstantState()
244 if (d1.getConstantState() != null) { in testMutate()
/frameworks/base/graphics/java/android/graphics/drawable/
DAnimatedVectorDrawable.java228 public ConstantState getConstantState() { in getConstantState() method in AnimatedVectorDrawable
480 final ConstantState cs = copy.mVectorDrawable.getConstantState(); in AnimatedVectorDrawableState()
659 getConstantState()).mVectorDrawable.getConstantState()).mRootName in reset()
671 getConstantState()).mVectorDrawable.getConstantState()).mRootName in start()
694 getConstantState()).mVectorDrawable.getConstantState()) in stop()
1370 mDrawable.getConstantState()).mVectorDrawable.getConstantState()) in startAnimation()
1386 mDrawable.getConstantState()).mVectorDrawable.getConstantState()) in endAnimation()
DDrawableWrapper.java105 mState.mDrawableState = dr.getConstantState(); in setDrawable()
373 public ConstantState getConstantState() { in getConstantState() method in DrawableWrapper
390 mState.mDrawableState = mDrawable != null ? mDrawable.getConstantState() : null; in mutate()
DDrawableContainer.java620 public ConstantState getConstantState() { in getConstantState() method in DrawableContainer
786 final ConstantState cs = origDr[i].getConstantState(); in DrawableContainerState()
1183 if (drawables[i].getConstantState() == null) { in canConstantState()
1199 final ConstantState state = getChild(i).getConstantState(); in addAtlasableBitmaps()
DColorDrawable.java287 public ConstantState getConstantState() { in getConstantState() method in ColorDrawable
DLayerDrawable.java1746 public ConstantState getConstantState() {
1826 final ConstantState cs = dr.getConstantState();
2105 if (dr != null && dr.getConstantState() == null) {
2127 final ConstantState state = dr.getConstantState();
/frameworks/support/v4/tests/java/android/support/v4/graphics/
DDrawableCompatTest.java87 assertNotNull(drawable.getConstantState()); in testWrapMutatedDrawableHasConstantState()
91 assertNotNull(wrapper.getConstantState()); in testWrapMutatedDrawableHasConstantState()
/frameworks/support/v4/donut/android/support/v4/graphics/drawable/
DDrawableWrapperDonut.java197 public ConstantState getConstantState() { in getConstantState() method in DrawableWrapperDonut
213 mState.mDrawableState = mDrawable != null ? mDrawable.getConstantState() : null; in mutate()
326 mState.mDrawableState = dr.getConstantState(); in setWrappedDrawable()
/frameworks/base/core/java/com/android/internal/policy/
DBackdropFrameRenderer.java113 ? resizingBackgroundDrawable.getConstantState().newDrawable() in onResourcesLoaded()
116 ? captionBackgroundDrawableDrawable.getConstantState().newDrawable() in onResourcesLoaded()
119 ? userCaptionBackgroundDrawable.getConstantState().newDrawable() in onResourcesLoaded()
/frameworks/base/core/java/android/content/res/
DComplexColor.java47 public abstract ConstantState<ComplexColor> getConstantState(); in getConstantState() method in ComplexColor
DResourcesImpl.java614 final Drawable.ConstantState cs = dr.getConstantState(); in cacheDrawable()
765 sPreloadedComplexColors.put(key, complexColor.getConstantState()); in loadComplexColorFromName()
768 cache.put(key, theme, complexColor.getConstantState()); in loadComplexColorFromName()
859 sPreloadedComplexColors.put(key, csl.getConstantState()); in getColorStateListFromInt()
DColorStateList.java661 public ConstantState<ComplexColor> getConstantState() { in getConstantState() method in ColorStateList
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/
DAnimatedVectorDrawableCompat.java127 drawable.mDelegateDrawable.getConstantState()); in create()
172 public ConstantState getConstantState() { in getConstantState() method in AnimatedVectorDrawableCompat
174 return new AnimatedVectorDrawableDelegateState(mDelegateDrawable.getConstantState()); in getConstantState()
477 final ConstantState cs = copy.mVectorDrawable.getConstantState(); in AnimatedVectorDrawableCompatState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DExpandableIndicator.java46 .getDrawable(res).getConstantState().newDrawable(); in setExpanded()
DLockscreenWallpaper.java266 public ConstantState getConstantState() { in getConstantState() method in LockscreenWallpaper.WallpaperDrawable
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DDrawableUtils.java139 final Drawable.ConstantState state = drawable.getConstantState(); in canSafelyMutateDrawable()
DSuggestionsAdapter.java569 mOutsideDrawablesCache.put(resourceUri, drawable.getConstantState()); in storeInIconCache()
610 Drawable.ConstantState toCache = drawable == null ? null : drawable.getConstantState(); in getActivityIconWithCache()
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
DExtendedBitmapDrawable.java102 ConstantState constantState = mOpts.placeholder.getConstantState(); in onOptsChanged()
130 … mProgress = new Progress(mOpts.progressBar.getConstantState().newDrawable(mResources), mResources, in onOptsChanged()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
DBackgroundManager.java203 public ConstantState getConstantState() { in getConstantState() method in BackgroundManager.BitmapDrawable
565 drawable.getConstantState()); in getThemeDrawable()
747 drawable.getConstantState().newDrawable().mutate(); in syncWithService()
772 Drawable dimDrawable = mDimDrawable.getConstantState().newDrawable( in updateDimWrapper()
/frameworks/support/design/src/android/support/design/internal/
DNavigationMenuItemView.java149 Drawable.ConstantState state = icon.getConstantState(); in setIcon()
/frameworks/support/design/src/android/support/design/widget/
DTextInputLayout.java748 (DrawableContainer.DrawableContainerState) container.getConstantState(); in clearColorFilter()
774 final Drawable newBg = bg.getConstantState().newDrawable(); in ensureBackgroundDrawableStateWorkaround()
781 (DrawableContainer) bg, newBg.getConstantState()); in ensureBackgroundDrawableStateWorkaround()
/frameworks/base/core/java/android/widget/
DSuggestionsAdapter.java635 mOutsideDrawablesCache.put(resourceUri, drawable.getConstantState()); in storeInIconCache()
676 Drawable.ConstantState toCache = drawable == null ? null : drawable.getConstantState(); in getActivityIconWithCache()
/frameworks/support/graphics/drawable/static/src/android/support/graphics/drawable/
DVectorDrawableCompat.java139 public ConstantState getConstantState() { in getConstantState() method in VectorDrawableCompat
142 return new VectorDrawableDelegateState(mDelegateDrawable.getConstantState()); in getConstantState()
403 drawable.mDelegateDrawable.getConstantState()); in create()

12