Home
last modified time | relevance | path

Searched refs:ConstantState (Results 1 – 25 of 51) sorted by relevance

123

/aosp14/frameworks/base/core/java/android/content/res/
H A DConfigurationBoundResourceCache.java28 public class ConfigurationBoundResourceCache<T> extends ThemedResourceCache<ConstantState<T>> {
44 final ConstantState<T> entry = get(key, theme); in getInstance()
53 public boolean shouldInvalidateEntry(ConstantState<T> entry, @Config int configChanges) { in shouldInvalidateEntry()
H A DDrawableCache.java26 class DrawableCache extends ThemedResourceCache<Drawable.ConstantState> {
43 final Drawable.ConstantState entry = get(key, theme); in getInstance()
52 public boolean shouldInvalidateEntry(Drawable.ConstantState entry, int configChanges) { in shouldInvalidateEntry()
H A DConstantState.java32 abstract public class ConstantState<T> { class
H A DComplexColor.java47 public abstract ConstantState<ComplexColor> getConstantState(); in getConstantState()
H A DResourcesImpl.java105 private static final LongSparseArray<Drawable.ConstantState>[] sPreloadedDrawables;
107 private static final LongSparseArray<Drawable.ConstantState> sPreloadedColorDrawables
110 private static final LongSparseArray<android.content.res.ConstantState<ComplexColor>>
667 final Drawable.ConstantState cs; in loadDrawable()
709 Drawable.ConstantState state = dr.getConstantState(); in loadDrawable()
739 final Drawable.ConstantState cs = dr.getConstantState(); in cacheDrawable()
1013 final android.content.res.ConstantState<ComplexColor> factory =
1112 final android.content.res.ConstantState<ComplexColor> factory =
1302 LongSparseArray<Drawable.ConstantState> getPreloadedDrawables() {
H A DGradientColor.java501 public ConstantState<ComplexColor> getConstantState() { in getConstantState()
508 private static class GradientColorFactory extends ConstantState<ComplexColor> {
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
H A DRoundedCornerProgressDrawable.kt63 override fun getConstantState(): ConstantState {
76 private class RoundedCornerState(private val wrappedState: ConstantState) : ConstantState() {
H A DBrightnessProgressDrawable.kt75 override fun getConstantState(): ConstantState {
88 private class RoundedCornerState(private val wrappedState: ConstantState) : ConstantState() {
H A DAlphaTintDrawableWrapper.java126 public ConstantState getConstantState() { in getConstantState()
130 static class AlphaTintState extends Drawable.ConstantState {
132 private ConstantState mWrappedState;
138 ConstantState wrappedState, in AlphaTintState()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DLockscreenWallpaper.java315 private final ConstantState mState;
320 this(r, new ConstantState(b), isOnSmallerInternalDisplays); in WallpaperDrawable()
323 private WallpaperDrawable(Resources r, ConstantState state, in WallpaperDrawable()
383 public ConstantState getConstantState() { in getConstantState()
398 static class ConstantState extends Drawable.ConstantState { class in LockscreenWallpaper.WallpaperDrawable
402 ConstantState(Bitmap background) { in ConstantState() method in LockscreenWallpaper.WallpaperDrawable.ConstantState
/aosp14/frameworks/base/core/java/android/util/
H A DLauncherIcons.java146 public ConstantState getConstantState() { in getConstantState()
167 private static class MyConstantState extends ConstantState {
171 final ConstantState mChildState;
173 MyConstantState(Bitmap shadow, ConstantState childState) { in MyConstantState()
/aosp14/frameworks/base/core/java/android/animation/
H A DStateListAnimator.java20 import android.content.res.ConstantState;
269 public ConstantState<StateListAnimator> createConstantState() { in createConstantState()
309 extends ConstantState<StateListAnimator> {
H A DAnimator.java24 import android.content.res.ConstantState;
441 public ConstantState<Animator> createConstantState() { in createConstantState()
811 private static class AnimatorConstantState extends ConstantState<Animator> {
/aosp14/frameworks/base/packages/SettingsLib/AdaptiveIcon/src/com/android/settingslib/widget/
H A DAdaptiveIcon.java104 public ConstantState getConstantState() { in getConstantState()
109 static class AdaptiveConstantState extends ConstantState {
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/
H A DBluetoothDeviceLayerDrawable.java95 public ConstantState getConstantState() { in getConstantState()
137 private static class BluetoothDeviceLayerDrawableState extends ConstantState {
/aosp14/frameworks/base/graphics/java/android/graphics/drawable/
H A DDrawableContainer.java639 public ConstantState getConstantState() { in getConstantState()
683 public abstract static class DrawableContainerState extends ConstantState {
691 SparseArray<ConstantState> mDrawableFutures;
799 final SparseArray<ConstantState> origDf = orig.mDrawableFutures; in DrawableContainerState()
812 final ConstantState cs = origDr[i].getConstantState(); in DrawableContainerState()
878 final ConstantState cs = mDrawableFutures.valueAt(keyIndex); in createAllFutures()
917 final ConstantState cs = mDrawableFutures.valueAt(keyIndex); in getChild()
1005 final ConstantState future = mDrawableFutures.get(i); in canApplyTheme()
H A DColorStateListDrawable.java194 public @NonNull ConstantState getConstantState() { in getConstantState()
248 static final class ColorStateListDrawableState extends ConstantState {
H A DDrawableWrapper.java406 public ConstantState getConstantState() { in getConstantState()
479 abstract static class DrawableWrapperState extends Drawable.ConstantState {
493 Drawable.ConstantState mDrawableState;
H A DColorDrawable.java343 public ConstantState getConstantState() { in getConstantState()
347 final static class ColorState extends ConstantState {
H A DShapeDrawable.java511 public ConstantState getConstantState() { in getConstantState()
537 static final class ShapeState extends ConstantState {
/aosp14/frameworks/base/core/java/android/widget/
H A DSuggestionsAdapter.java71 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()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
H A DQSIconViewImplTest.java180 private static Drawable.ConstantState fakeConstantState(Drawable otherDrawable) { in fakeConstantState()
181 return new Drawable.ConstantState() { in fakeConstantState()
/aosp14/frameworks/base/core/java/android/inputmethodservice/navigationbar/
H A DKeyButtonDrawable.java234 public ConstantState getConstantState() { in getConstantState()
411 private static class ShadowDrawableState extends ConstantState {
429 ConstantState mChildState;
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/buttons/
H A DKeyButtonDrawable.java230 public ConstantState getConstantState() { in getConstantState()
407 private static class ShadowDrawableState extends ConstantState {
425 ConstantState mChildState;
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/floatingmenu/
H A DAccessibilityTargetAdapterTest.java55 private Drawable.ConstantState mConstantState;

123