/frameworks/base/core/java/android/content/res/ |
D | DrawableCache.java | 24 class DrawableCache extends ThemedResourceCache<Drawable.ConstantState> { 35 final Drawable.ConstantState entry = get(key, theme); in getInstance() 44 public boolean shouldInvalidateEntry(Drawable.ConstantState entry, int configChanges) { in shouldInvalidateEntry()
|
D | ConfigurationBoundResourceCache.java | 27 public class ConfigurationBoundResourceCache<T> extends ThemedResourceCache<ConstantState<T>> { 38 final ConstantState<T> entry = get(key, theme); in getInstance() 47 public boolean shouldInvalidateEntry(ConstantState<T> entry, @Config int configChanges) { in shouldInvalidateEntry()
|
D | ConstantState.java | 32 abstract public class ConstantState<T> { class
|
D | ComplexColor.java | 47 public abstract ConstantState<ComplexColor> getConstantState(); in getConstantState()
|
D | ResourcesImpl.java | 89 private static final LongSparseArray<Drawable.ConstantState>[] sPreloadedDrawables; 90 private static final LongSparseArray<Drawable.ConstantState> sPreloadedColorDrawables 92 private static final LongSparseArray<android.content.res.ConstantState<ComplexColor>> 586 final Drawable.ConstantState cs; in loadDrawable() 627 Drawable.ConstantState state = dr.getConstantState(); in loadDrawable() 657 final Drawable.ConstantState cs = dr.getConstantState(); in cacheDrawable() 839 final android.content.res.ConstantState<ComplexColor> factory = in loadComplexColorFromName() 938 final android.content.res.ConstantState<ComplexColor> factory = in getColorStateListFromInt() 1119 LongSparseArray<Drawable.ConstantState> getPreloadedDrawables() { in getPreloadedDrawables()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | LockscreenWallpaper.java | 221 private final ConstantState mState; 225 this(r, new ConstantState(b)); in WallpaperDrawable() 228 private WallpaperDrawable(Resources r, ConstantState state) { in WallpaperDrawable() 279 public ConstantState getConstantState() { in getConstantState() 283 static class ConstantState extends Drawable.ConstantState { class in LockscreenWallpaper.WallpaperDrawable 287 ConstantState(Bitmap background) { in ConstantState() method in LockscreenWallpaper.WallpaperDrawable.ConstantState
|
/frameworks/support/design/src/android/support/design/widget/ |
D | DrawableUtils.java | 38 Drawable.ConstantState constantState) { in setContainerConstantState() 44 Drawable.ConstantState constantState) { in setContainerConstantStateV9()
|
/frameworks/base/core/java/android/util/ |
D | LauncherIcons.java | 141 public ConstantState getConstantState() { in getConstantState() 162 private static class MyConstantState extends ConstantState { 166 final ConstantState mChildState; 168 MyConstantState(Bitmap shadow, ConstantState childState) { in MyConstantState()
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
D | BackgroundManager.java | 115 static final class ConstantState extends Drawable.ConstantState { class in BackgroundManager.BitmapDrawable 120 ConstantState(Bitmap bitmap, Matrix matrix) { in ConstantState() method in BackgroundManager.BitmapDrawable.ConstantState 126 ConstantState(ConstantState copyFrom) { in ConstantState() method in BackgroundManager.BitmapDrawable.ConstantState 149 ConstantState mState; 157 mState = new ConstantState(bitmap, matrix); in BitmapDrawable() 160 BitmapDrawable(ConstantState state) { in BitmapDrawable() 210 public ConstantState getConstantState() { in getConstantState() 219 mState = new ConstantState(mState); in mutate() 464 private WeakReference<Drawable.ConstantState> mLastThemeDrawableState; 504 Drawable.ConstantState drawableState = mLastThemeDrawableState.get(); in getThemeDrawable() [all …]
|
/frameworks/base/core/java/android/animation/ |
D | Animator.java | 21 import android.content.res.ConstantState; 391 public ConstantState<Animator> createConstantState() { in createConstantState() 652 private static class AnimatorConstantState extends ConstantState<Animator> {
|
D | StateListAnimator.java | 20 import android.content.res.ConstantState; 269 public ConstantState<StateListAnimator> createConstantState() { in createConstantState() 309 extends ConstantState<StateListAnimator> {
|
/frameworks/support/compat/ics/android/support/v4/graphics/drawable/ |
D | DrawableWrapperApi14.java | 84 protected Drawable newDrawableFromState(@NonNull Drawable.ConstantState state, in newDrawableFromState() 205 public ConstantState getConstantState() { in getConstantState() 351 protected abstract static class DrawableWrapperState extends Drawable.ConstantState { 353 Drawable.ConstantState mDrawableState;
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | DrawableContainer.java | 639 public ConstantState getConstantState() { in getConstantState() 683 public abstract static class DrawableContainerState extends ConstantState { 691 SparseArray<ConstantState> mDrawableFutures; 795 final SparseArray<ConstantState> origDf = orig.mDrawableFutures; in DrawableContainerState() 808 final ConstantState cs = origDr[i].getConstantState(); in DrawableContainerState() 874 final ConstantState cs = mDrawableFutures.valueAt(keyIndex); in createAllFutures() 913 final ConstantState cs = mDrawableFutures.valueAt(keyIndex); in getChild() 1001 final ConstantState future = mDrawableFutures.get(i); in canApplyTheme()
|
D | DrawableWrapper.java | 378 public ConstantState getConstantState() { in getConstantState() 451 abstract static class DrawableWrapperState extends Drawable.ConstantState { 465 Drawable.ConstantState mDrawableState;
|
D | ColorDrawable.java | 314 public ConstantState getConstantState() { in getConstantState() 318 final static class ColorState extends ConstantState {
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | AppCompatDrawableManager.java | 33 import android.graphics.drawable.Drawable.ConstantState; 180 private final WeakHashMap<Context, LongSparseArray<WeakReference<Drawable.ConstantState>>> 216 LongSparseArray<WeakReference<ConstantState>> cache = mDrawableCaches.get(context); in onConfigurationChanged() 393 final LongSparseArray<WeakReference<ConstantState>> cache in getCachedDrawable() 399 final WeakReference<ConstantState> wr = cache.get(key); in getCachedDrawable() 402 ConstantState entry = wr.get(); in getCachedDrawable() 416 final ConstantState cs = drawable.getConstantState(); in addDrawableToCache() 419 LongSparseArray<WeakReference<ConstantState>> cache = mDrawableCaches.get(context); in addDrawableToCache()
|
D | SuggestionsAdapter.java | 71 private final WeakHashMap<String, Drawable.ConstantState> mOutsideDrawablesCache; 93 WeakHashMap<String, Drawable.ConstantState> outsideDrawablesCache) { in SuggestionsAdapter() 582 Drawable.ConstantState cached = mOutsideDrawablesCache.get(resourceUri); in checkIconCache() 627 Drawable.ConstantState cached = mOutsideDrawablesCache.get(componentIconKey); in getActivityIconWithCache() 633 Drawable.ConstantState toCache = drawable == null ? null : drawable.getConstantState(); in getActivityIconWithCache()
|
D | DrawableUtils.java | 139 final Drawable.ConstantState state = drawable.getConstantState(); in canSafelyMutateDrawable()
|
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/ |
D | AnimatedVectorDrawableCompat.java | 260 public ConstantState getConstantState() { in getConstantState() 531 private static class AnimatedVectorDrawableDelegateState extends ConstantState { 532 private final ConstantState mDelegateState; 534 public AnimatedVectorDrawableDelegateState(ConstantState state) { in AnimatedVectorDrawableDelegateState() 576 private static class AnimatedVectorDrawableCompatState extends ConstantState { 589 final ConstantState cs = copy.mVectorDrawable.getConstantState(); in AnimatedVectorDrawableCompatState()
|
/frameworks/support/samples/SupportVectorDrawableDemos/src/com/example/android/support/vectordrawable/app/ |
D | SimpleStaticVectorDrawable.java | 22 import android.graphics.drawable.Drawable.ConstantState; 106 ConstantState state = d[0].getConstantState(); in onCreate()
|
/frameworks/base/core/java/android/widget/ |
D | SuggestionsAdapter.java | 71 private final WeakHashMap<String, Drawable.ConstantState> mOutsideDrawablesCache; 100 WeakHashMap<String, Drawable.ConstantState> outsideDrawablesCache) { in SuggestionsAdapter() 625 Drawable.ConstantState cached = mOutsideDrawablesCache.get(resourceUri); in checkIconCache() 670 Drawable.ConstantState cached = mOutsideDrawablesCache.get(componentIconKey); in getActivityIconWithCache() 676 Drawable.ConstantState toCache = drawable == null ? null : drawable.getConstantState(); in getActivityIconWithCache()
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/graphics/ |
D | FitWidthBitmapDrawable.java | 40 static class BitmapState extends Drawable.ConstantState { 84 public ConstantState getConstantState() { in getConstantState()
|
D | CompositeDrawable.java | 37 static class CompositeState extends Drawable.ConstantState { 78 public ConstantState getConstantState() { in getConstantState() 260 final ConstantState cs = dr.getConstantState(); in ChildDrawable()
|
/frameworks/support/graphics/drawable/animated/tests/src/android/support/graphics/drawable/tests/ |
D | AnimatedVectorDrawableTest.java | 35 import android.graphics.drawable.Drawable.ConstantState; 255 ConstantState constantState = d1.getConstantState(); in testGetChangingConfigurations() 280 ConstantState constantState = mAnimatedVectorDrawable.getConstantState(); in testGetConstantState()
|
/frameworks/support/graphics/drawable/static/tests/src/android/support/graphics/drawable/tests/ |
D | VectorDrawableTest.java | 284 Drawable.ConstantState constantState = vectorDrawable.getConstantState(); in testGetChangingConfigurations() 309 Drawable.ConstantState constantState = vectorDrawable.getConstantState(); in testGetConstantState()
|