Searched refs:newDrawable (Results 1 - 25 of 66) sorted by relevance

123

/frameworks/base/core/java/android/content/res/
H A DDrawableCache.java37 return entry.newDrawable(resources, theme);
/frameworks/support/frameworks/support/samples/SupportVectorDrawableDemos/src/main/java/com/example/android/support/vectordrawable/app/
H A DSimpleAnimatedVectorDrawable.java78 copies[0] = (AnimatedVectorDrawableCompat) d[0].getConstantState().newDrawable();
79 copies[1] = (AnimatedVectorDrawableCompat) d[0].getConstantState().newDrawable();
80 copies[2] = (AnimatedVectorDrawableCompat) d[0].getConstantState().newDrawable();
H A DSimpleStaticVectorDrawable.java108 extras[0] = (VectorDrawableCompat) state.newDrawable();
109 extras[1] = (VectorDrawableCompat) state.newDrawable();
/frameworks/support/samples/SupportVectorDrawableDemos/src/main/java/com/example/android/support/vectordrawable/app/
H A DSimpleAnimatedVectorDrawable.java78 copies[0] = (AnimatedVectorDrawableCompat) d[0].getConstantState().newDrawable();
79 copies[1] = (AnimatedVectorDrawableCompat) d[0].getConstantState().newDrawable();
80 copies[2] = (AnimatedVectorDrawableCompat) d[0].getConstantState().newDrawable();
H A DSimpleStaticVectorDrawable.java108 extras[0] = (VectorDrawableCompat) state.newDrawable();
109 extras[1] = (VectorDrawableCompat) state.newDrawable();
/frameworks/support/compat/src/main/java/androidx/core/graphics/drawable/
H A DWrappedDrawableApi14.java75 setWrappedDrawable(mState.mDrawableState.newDrawable(res));
374 public Drawable newDrawable() { method in class:WrappedDrawableApi14.DrawableWrapperState
375 return newDrawable(null);
380 public abstract Drawable newDrawable(@Nullable Resources res); method in class:WrappedDrawableApi14.DrawableWrapperState
401 public Drawable newDrawable(@Nullable Resources res) { method in class:WrappedDrawableApi14.DrawableWrapperStateBase
H A DWrappedDrawableApi21.java154 public Drawable newDrawable(@Nullable Resources res) { method in class:WrappedDrawableApi21.DrawableWrapperStateLollipop
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DExpandableIndicator.java45 .getDrawable(res).getConstantState().newDrawable();
H A DLockscreenWallpaper.java298 public Drawable newDrawable() { method in class:LockscreenWallpaper.WallpaperDrawable.ConstantState
299 return newDrawable(null);
303 public Drawable newDrawable(@Nullable Resources res) { method in class:LockscreenWallpaper.WallpaperDrawable.ConstantState
H A DShadowKeyDrawable.java147 final Drawable d = mState.mChildState.newDrawable().mutate();
193 public Drawable newDrawable() { method in class:ShadowKeyDrawable.ShadowDrawableState
/frameworks/support/graphics/drawable/animated/src/main/java/androidx/vectordrawable/graphics/drawable/
H A DAnimatedVectorDrawableCompat.java543 public Drawable newDrawable() { method in class:AnimatedVectorDrawableCompat.AnimatedVectorDrawableDelegateState
546 drawableCompat.mDelegateDrawable = mDelegateState.newDrawable();
552 public Drawable newDrawable(Resources res) { method in class:AnimatedVectorDrawableCompat.AnimatedVectorDrawableDelegateState
555 drawableCompat.mDelegateDrawable = mDelegateState.newDrawable(res);
561 public Drawable newDrawable(Resources res, Theme theme) { method in class:AnimatedVectorDrawableCompat.AnimatedVectorDrawableDelegateState
564 drawableCompat.mDelegateDrawable = mDelegateState.newDrawable(res, theme);
595 mVectorDrawable = (VectorDrawableCompat) cs.newDrawable(res);
597 mVectorDrawable = (VectorDrawableCompat) cs.newDrawable();
623 public Drawable newDrawable() { method in class:AnimatedVectorDrawableCompat.AnimatedVectorDrawableCompatState
628 public Drawable newDrawable(Resource method in class:AnimatedVectorDrawableCompat.AnimatedVectorDrawableCompatState
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/
H A DTransitionDrawable.java265 public Drawable newDrawable() { method in class:TransitionDrawable.TransitionState
270 public Drawable newDrawable(Resources res) { method in class:TransitionDrawable.TransitionState
H A DDrawableWrapper.java75 final Drawable dr = mState.mDrawableState.newDrawable(res);
535 public Drawable newDrawable() { method in class:DrawableWrapper.DrawableWrapperState
536 return newDrawable(null);
540 public abstract Drawable newDrawable(@Nullable Resources res); method in class:DrawableWrapper.DrawableWrapperState
H A DAnimationDrawable.java402 public Drawable newDrawable() { method in class:AnimationDrawable.AnimationState
407 public Drawable newDrawable(Resources res) { method in class:AnimationDrawable.AnimationState
H A DColorDrawable.java347 public Drawable newDrawable() { method in class:ColorDrawable.ColorState
352 public Drawable newDrawable(Resources res) { method in class:ColorDrawable.ColorState
H A DLevelListDrawable.java216 public Drawable newDrawable() { method in class:LevelListDrawable.LevelListState
221 public Drawable newDrawable(Resources res) { method in class:LevelListDrawable.LevelListState
H A DDrawable.java1415 * {@link #newDrawable(Resources)} can be used as a factory to create new Drawable instances
1430 * correct scaling, use {@link #newDrawable(Resources)} instead to
1434 * @see #newDrawable(Resources)
1436 public abstract @NonNull Drawable newDrawable(); method in class:Drawable.ConstantState
1444 * {@link #newDrawable()}.
1450 public @NonNull Drawable newDrawable(@Nullable Resources res) { method in class:Drawable.ConstantState
1451 return newDrawable();
1460 * {@link #newDrawable(Resources)}.
1468 public @NonNull Drawable newDrawable(@Nullable Resources res, method in class:Drawable.ConstantState
1470 return newDrawable(re
[all...]
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/graphics/
H A DCompositeDrawableTest.java172 // getConstantState().newDrawable() will create a new CompositeDrawable with shared states:
174 parentDrawable.getConstantState().newDrawable();
219 CompositeDrawable newDrawable = (CompositeDrawable) parent.getConstantState().newDrawable();
224 CompositeDrawable.ChildDrawable newChild = newDrawable.getChildAt(0);
H A DFitWidthBitmapDrawableTest.java78 // getConstantState().newDrawable() will create a new drawable with shared states:
80 drawable.getConstantState().newDrawable();
/frameworks/base/core/java/android/util/
H A DLauncherIcons.java112 .getConstantState().newDrawable().mutate();
136 super(state.mChildState.newDrawable());
174 public Drawable newDrawable() { method in class:LauncherIcons.ShadowDrawable.MyConstantState
/frameworks/base/core/java/com/android/internal/policy/
H A DBackdropFrameRenderer.java115 ? resizingBackgroundDrawable.getConstantState().newDrawable()
119 ? captionBackgroundDrawableDrawable.getConstantState().newDrawable()
123 ? userCaptionBackgroundDrawable.getConstantState().newDrawable()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/graph/
H A DBluetoothDeviceLayerDrawableTest.java90 (BluetoothDeviceLayerDrawable) drawable.getConstantState().newDrawable();
/frameworks/base/core/java/com/android/internal/graphics/drawable/
H A DAnimationScaleListDrawable.java216 public Drawable newDrawable() { method in class:AnimationScaleListDrawable.AnimationScaleListState
221 public Drawable newDrawable(Resources res) { method in class:AnimationScaleListDrawable.AnimationScaleListState
/frameworks/support/leanback/src/main/java/androidx/leanback/graphics/
H A DCompositeDrawable.java56 public Drawable newDrawable() { method in class:CompositeDrawable.CompositeState
263 clone = cs.newDrawable(res);
265 clone = cs.newDrawable();
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/
H A DBluetoothDeviceLayerDrawable.java156 public Drawable newDrawable() { method in class:BluetoothDeviceLayerDrawable.BluetoothDeviceLayerDrawableState

Completed in 431 milliseconds

123