/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
AppCompatDrawableManager.java | 29 import android.graphics.drawable.Drawable.ConstantState; 173 private final WeakHashMap<Context, LongSparseArray<WeakReference<Drawable.ConstantState>>> 376 final LongSparseArray<WeakReference<ConstantState>> cache 382 final WeakReference<ConstantState> wr = cache.get(key); 385 ConstantState entry = wr.get(); 399 final ConstantState cs = drawable.getConstantState(); 402 LongSparseArray<WeakReference<ConstantState>> cache = mDrawableCaches.get(context); 407 cache.put(key, new WeakReference<ConstantState>(cs));
|
SuggestionsAdapter.java | 72 private final WeakHashMap<String, Drawable.ConstantState> mOutsideDrawablesCache; 94 WeakHashMap<String, Drawable.ConstantState> outsideDrawablesCache) { 559 Drawable.ConstantState cached = mOutsideDrawablesCache.get(resourceUri); 604 Drawable.ConstantState cached = mOutsideDrawablesCache.get(componentIconKey); 610 Drawable.ConstantState toCache = drawable == null ? null : drawable.getConstantState();
|
DrawableUtils.java | 139 final Drawable.ConstantState state = drawable.getConstantState();
|
/frameworks/base/core/java/android/widget/ |
SuggestionsAdapter.java | 71 private final WeakHashMap<String, Drawable.ConstantState> mOutsideDrawablesCache; 100 WeakHashMap<String, Drawable.ConstantState> outsideDrawablesCache) { 625 Drawable.ConstantState cached = mOutsideDrawablesCache.get(resourceUri); 670 Drawable.ConstantState cached = mOutsideDrawablesCache.get(componentIconKey); 676 Drawable.ConstantState toCache = drawable == null ? null : drawable.getConstantState();
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
AnimatedVectorDrawableTest.java | 30 import android.graphics.drawable.Drawable.ConstantState; 173 ConstantState constantState = avd.getConstantState(); 176 assertEquals(0, constantState.getChangingConfigurations()); 182 assertEquals(0, constantState.getChangingConfigurations()); 185 constantState = avd.getConstantState(); 186 assertEquals(0xff, constantState.getChangingConfigurations()); 190 assertEquals(0xff, constantState.getChangingConfigurations()); 197 ConstantState constantState = AnimatedVectorDrawable.getConstantState() [all...] |
InsetDrawableTest.java | 31 import android.graphics.drawable.Drawable.ConstantState; 338 ConstantState constantState = insetDrawable.getConstantState(); 339 assertNotNull(constantState); 378 final ConstantState preloadedConstantState = preloadedDrawable.getConstantState();
|
VectorDrawableTest.java | 33 import android.graphics.drawable.Drawable.ConstantState; 342 ConstantState constantState = vectorDrawable.getConstantState(); 345 assertEquals(0, constantState.getChangingConfigurations()); 351 assertEquals(0, constantState.getChangingConfigurations()); 354 constantState = vectorDrawable.getConstantState(); 355 assertEquals(0xff, constantState.getChangingConfigurations()); 359 assertEquals(0xff, constantState.getChangingConfigurations()); 366 ConstantState constantState = vectorDrawable.getConstantState() [all...] |
ShapeDrawableTest.java | 28 import android.graphics.drawable.Drawable.ConstantState; 86 ConstantState constantState = shapeDrawable.getConstantState(); 87 assertNotNull(constantState); 88 assertEquals(1, constantState.getChangingConfigurations());
|
NinePatchDrawableTest.java | 42 import android.graphics.drawable.Drawable.ConstantState; 135 ConstantState constantState = mNinePatchDrawable.getConstantState(); 138 assertEquals(0, constantState.getChangingConfigurations()); 144 assertEquals(0, constantState.getChangingConfigurations()); 147 constantState = mNinePatchDrawable.getConstantState(); 148 assertEquals(0xff, constantState.getChangingConfigurations()); 152 assertEquals(0xff, constantState.getChangingConfigurations()); 320 ConstantState constantState = mNinePatchDrawable.getConstantState() [all...] |
GradientDrawableTest.java | 32 import android.graphics.drawable.Drawable.ConstantState; 111 ConstantState constantState = gradientDrawable.getConstantState(); 112 assertNotNull(constantState); 517 final ConstantState preloadedConstantState = preloadedDrawable.getConstantState();
|
DrawableWrapperTest.java | 30 import android.graphics.drawable.Drawable.ConstantState; 375 ConstantState constantState = wrapper.getConstantState();
|
RotateDrawableTest.java | 34 import android.graphics.drawable.Drawable.ConstantState; 260 ConstantState state = mRotateDrawable.getConstantState();
|
StateListDrawableTest.java | 32 import android.graphics.drawable.Drawable.ConstantState; 187 final ConstantState preloadedConstantState = preloadedDrawable.getConstantState();
|
ScaleDrawableTest.java | 34 import android.graphics.drawable.Drawable.ConstantState; 419 ConstantState constantState = scaleDrawable.getConstantState(); 420 assertNotNull(constantState); 421 assertEquals(0, constantState.getChangingConfigurations()); 424 constantState = scaleDrawable.getConstantState(); 425 assertNotNull(constantState); 426 assertEquals(1, constantState.getChangingConfigurations());
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
BottomBar.java | 80 private final Drawable.ConstantState[] mShutterButtonBackgroundConstantStates; 103 mShutterButtonBackgroundConstantStates = new Drawable.ConstantState[len]; 404 private LayerDrawable newDrawableFromConstantState(Drawable.ConstantState constantState) { 405 return (LayerDrawable) constantState.newDrawable(getContext().getResources());
|
/frameworks/base/core/java/android/content/res/ |
ColorStateList.java | 661 public ConstantState<ComplexColor> getConstantState() { 668 private static class ColorStateListFactory extends ConstantState<ComplexColor> {
|
GradientColor.java | 496 public ConstantState<ComplexColor> getConstantState() { 503 private static class GradientColorFactory extends ConstantState<ComplexColor> {
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
ShapeDrawable.java | 489 public ConstantState getConstantState() { 528 final static class ShapeState extends ConstantState {
|
Drawable.java | [all...] |
NinePatchDrawable.java | 539 public ConstantState getConstantState() { 578 final static class NinePatchState extends ConstantState {
|
/frameworks/support/graphics/drawable/static/tests/src/android/support/graphics/drawable/tests/ |
VectorDrawableTest.java | 268 Drawable.ConstantState constantState = vectorDrawable.getConstantState(); 271 assertEquals(0, constantState.getChangingConfigurations()); 277 assertEquals(0, constantState.getChangingConfigurations()); 280 constantState = vectorDrawable.getConstantState(); 281 assertEquals(0xff, constantState.getChangingConfigurations()); 285 assertEquals(0xff, constantState.getChangingConfigurations()); 293 Drawable.ConstantState constantState = vectorDrawable.getConstantState(); 294 assertNotNull(constantState); [all...] |
/frameworks/support/design/src/android/support/design/internal/ |
NavigationMenuItemView.java | 149 Drawable.ConstantState state = icon.getConstantState();
|
/frameworks/support/graphics/drawable/static/src/android/support/graphics/drawable/ |
VectorDrawableCompat.java | 104 private ConstantState mCachedConstantStateDelegate; 139 public ConstantState getConstantState() { 721 private static class VectorDrawableDelegateState extends ConstantState { 722 private final ConstantState mDelegateState; 724 public VectorDrawableDelegateState(ConstantState state) { 761 private static class VectorDrawableCompatState extends ConstantState { [all...] |
/frameworks/base/core/tests/coretests/src/android/content/res/ |
ConfigurationBoundResourceCacheTest.java | 206 static class DummyFloatConstantState extends ConstantState<Float> {
|
/packages/apps/Settings/src/com/android/settings/display/ |
ConversationMessageView.java | 256 final Drawable.ConstantState constantStateDrawable = drawable.getConstantState();
|