/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();
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
SuggestionsAdapter.java | 72 private final WeakHashMap<String, Drawable.ConstantState> mOutsideDrawablesCache; 94 WeakHashMap<String, Drawable.ConstantState> outsideDrawablesCache) { 560 Drawable.ConstantState cached = mOutsideDrawablesCache.get(resourceUri); 605 Drawable.ConstantState cached = mOutsideDrawablesCache.get(componentIconKey); 611 Drawable.ConstantState toCache = drawable == null ? null : drawable.getConstantState();
|
DrawableUtils.java | 136 final Drawable.ConstantState state = drawable.getConstantState();
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
AnimatedVectorDrawableTest.java | 30 import android.graphics.drawable.Drawable.ConstantState; 174 ConstantState constantState = avd.getConstantState(); 177 assertEquals(0, constantState.getChangingConfigurations()); 183 assertEquals(0, constantState.getChangingConfigurations()); 186 constantState = avd.getConstantState(); 187 assertEquals(0xff, constantState.getChangingConfigurations()); 191 assertEquals(0xff, constantState.getChangingConfigurations()); 198 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 | 270 Drawable.ConstantState constantState = vectorDrawable.getConstantState(); 273 assertEquals(0, constantState.getChangingConfigurations()); 279 assertEquals(0, constantState.getChangingConfigurations()); 282 constantState = vectorDrawable.getConstantState(); 283 assertEquals(0xff, constantState.getChangingConfigurations()); 287 assertEquals(0xff, constantState.getChangingConfigurations()); 295 Drawable.ConstantState constantState = vectorDrawable.getConstantState(); 296 assertNotNull(constantState); [all...] |
/frameworks/support/design/src/android/support/design/internal/ |
BottomNavigationItemView.java | 164 Drawable.ConstantState state = icon.getConstantState();
|
NavigationMenuItemView.java | 207 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() { 727 private static class VectorDrawableDelegateState extends ConstantState { 728 private final ConstantState mDelegateState; 730 public VectorDrawableDelegateState(ConstantState state) { 767 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();
|