Home
last modified time | relevance | path

Searched refs:GradientDrawable (Results 1 – 25 of 67) sorted by relevance

123

/aosp12/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/
H A DFloatingWidgetBackgroundView.java23 import android.graphics.drawable.GradientDrawable;
140 if (!(drawable instanceof GradientDrawable)) return 0; in getMaxRadius()
141 float[] cornerRadii = ((GradientDrawable) drawable).getCornerRadii(); in getMaxRadius()
142 float cornerRadius = ((GradientDrawable) drawable).getCornerRadius(); in getMaxRadius()
150 return drawable instanceof ColorDrawable || (drawable instanceof GradientDrawable in isSupportedDrawable()
151 && ((GradientDrawable) drawable).getShape() == GradientDrawable.RECTANGLE); in isSupportedDrawable()
178 if (!(drawable instanceof GradientDrawable)) return; in init()
179 mOriginalRadius = ((GradientDrawable) drawable).getCornerRadius(); in init()
180 mOriginalRadii = ((GradientDrawable) drawable).getCornerRadii(); in init()
191 if (!(mDrawable instanceof GradientDrawable)) return; in updateDrawable()
[all …]
H A DAllAppsEduView.java33 import android.graphics.drawable.GradientDrawable;
65 private GradientDrawable mCircle;
66 private GradientDrawable mGradient;
77 mCircle = (GradientDrawable) context.getDrawable(R.drawable.all_apps_edu_circle); in AllAppsEduView()
255 mGradient = new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, in init()
/aosp12/packages/apps/Car/Hvac/src/com/android/car/hvac/ui/
H A DFanSpeedBarSegment.java21 import android.graphics.drawable.GradientDrawable;
42 GradientDrawable drawable = (GradientDrawable) getDrawable();
69 GradientDrawable dot = new GradientDrawable();
92 GradientDrawable drawable = (GradientDrawable) getDrawable(); in setTurnedOn()
H A DFanSpeedBar.java21 import android.graphics.drawable.GradientDrawable;
154 GradientDrawable offButtonBg = new GradientDrawable(); in onFinishInflate()
160 GradientDrawable maxButtonBg = new GradientDrawable(); in onFinishInflate()
182 GradientDrawable background = (GradientDrawable) mMaxButton.getBackground(); in setMaxButtonEnabled()
194 GradientDrawable background = (GradientDrawable) mOffButton.getBackground(); in setOffButtonEnabled()
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/controller/
H A DColorChooser.java7 import android.graphics.drawable.GradientDrawable;
71 GradientDrawable sd = ((GradientDrawable) button.getBackground()); in setUp()
102 GradientDrawable sd = ((GradientDrawable) mButton[i].getBackground()); in setColorSet()
116 GradientDrawable sd = ((GradientDrawable) button.getBackground()); in resetBorders()
152 GradientDrawable sd = ((GradientDrawable) button.getBackground()); in changeSelectedColor()
/aosp12/packages/apps/Car/SystemUI/src/com/android/systemui/car/hvac/referenceui/
H A DFanSpeedBar.java27 import android.graphics.drawable.GradientDrawable;
194 GradientDrawable offButtonBg = new GradientDrawable(); in onFinishInflate()
200 GradientDrawable maxButtonBg = new GradientDrawable(); in onFinishInflate()
218 GradientDrawable background = (GradientDrawable) mMaxButton.getBackground(); in setMaxButtonActive()
229 GradientDrawable background = (GradientDrawable) mOffButton.getBackground(); in setOffButtonActive()
H A DFanSpeedBarSegment.java22 import android.graphics.drawable.GradientDrawable;
44 GradientDrawable drawable = (GradientDrawable) getDrawable();
102 GradientDrawable dot = new GradientDrawable(); in initView()
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/
H A DDeepShortcutView.java26 import android.graphics.drawable.GradientDrawable;
95 if (!(getBackground() instanceof GradientDrawable) || mBubbleText == null) { in tryUpdateTextBackground()
98 GradientDrawable background = (GradientDrawable) getBackground(); in tryUpdateTextBackground()
101 GradientDrawable backgroundMask = new GradientDrawable(); in tryUpdateTextBackground()
103 backgroundMask.setShape(GradientDrawable.RECTANGLE); in tryUpdateTextBackground()
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/
H A DWidgetsListDrawableFactory.java29 import android.graphics.drawable.GradientDrawable;
97 GradientDrawable backgroundMask = new GradientDrawable(); in createRoundedRectDrawable()
99 backgroundMask.setShape(GradientDrawable.RECTANGLE); in createRoundedRectDrawable()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
H A DNotificationBackgroundView.java24 import android.graphics.drawable.GradientDrawable;
232 GradientDrawable gradientDrawable = in updateBackgroundRadii()
233 (GradientDrawable) ((LayerDrawable) mBackground).getDrawable(0); in updateBackgroundRadii()
253 GradientDrawable gradientDrawable = in setExpandAnimationRunning()
254 (GradientDrawable) ((LayerDrawable) mBackground).getDrawable(0); in setExpandAnimationRunning()
/aosp12/packages/apps/Settings/src/com/android/settings/accessibility/
H A DPaletteListPreference.java19 import static android.graphics.drawable.GradientDrawable.Orientation;
28 import android.graphics.drawable.GradientDrawable;
153 private GradientDrawable createGradientDrawable(ViewGroup rootView, @ColorInt int color) { in createGradientDrawable()
156 final GradientDrawable gradientDrawable = new GradientDrawable(); in createGradientDrawable()
/aosp12/packages/apps/Camera2/src/com/android/camera/ui/
H A DModeIconView.java22 import android.graphics.drawable.GradientDrawable;
37 private final GradientDrawable mBackground;
50 mBackground = (GradientDrawable) getResources() in ModeIconView()
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/
H A DEditorColorBorderTabletUI.java22 import android.graphics.drawable.GradientDrawable;
175 GradientDrawable sd = ((GradientDrawable) mColorButton[i].getBackground()); in setupColor()
229 GradientDrawable sd = ((GradientDrawable) b.getBackground()); in setupColor()
250 GradientDrawable sd = ((GradientDrawable) button.getBackground()); in resetBorders()
H A DEditorDrawTabletUI.java25 import android.graphics.drawable.GradientDrawable;
181 GradientDrawable sd = ((GradientDrawable) mColorButton[i].getBackground()); in EditorDrawTabletUI()
240 GradientDrawable sd = ((GradientDrawable) b.getBackground()); in EditorDrawTabletUI()
273 GradientDrawable sd = ((GradientDrawable) button.getBackground()); in resetBorders()
/aosp12/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/
H A DGhostedViewLaunchAnimatorController.kt26 import android.graphics.drawable.GradientDrawable
281 fun findGradientDrawable(drawable: Drawable): GradientDrawable? {
282 if (drawable is GradientDrawable) {
293 if (maybeGradient is GradientDrawable) {
400 if (drawable is GradientDrawable) {
415 (drawable.getDrawable(i) as? GradientDrawable)?.cornerRadii = radii
/aosp12/frameworks/base/core/java/com/android/internal/widget/
H A DEmphasizedNotificationButton.java25 import android.graphics.drawable.GradientDrawable;
43 private final GradientDrawable mBackground;
64 mBackground = (GradientDrawable) inset.getDrawable(); in EmphasizedNotificationButton()
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/
H A DColorGridDialog.java22 import android.graphics.drawable.GradientDrawable;
51 GradientDrawable sd = ((GradientDrawable) button.getBackground()); in ColorGridDialog()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/keyguard/
H A DNumPadAnimator.java23 import android.graphics.drawable.GradientDrawable;
40 private GradientDrawable mBackground;
49 mBackground = (GradientDrawable) mRipple.findDrawableByLayerId(R.id.background); in NumPadAnimator()
/aosp12/frameworks/layoutlib/bridge/src/android/graphics/drawable/
H A DGradientDrawable_Delegate.java22 import android.graphics.drawable.GradientDrawable.GradientState;
40 /*package*/ static Path buildRing(GradientDrawable thisDrawable, GradientState st) { in buildRing()
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/common/
H A DTopLevelIconShapeDrawable.java21 import android.graphics.drawable.GradientDrawable;
36 public class TopLevelIconShapeDrawable extends GradientDrawable {
/aosp12/packages/apps/Car/Radio/src/com/android/car/radio/
H A DProgramViewHolder.java20 import android.graphics.drawable.GradientDrawable;
44 private GradientDrawable mPresetItemChannelBg;
95 mPresetItemChannelBg = (GradientDrawable) in ProgramViewHolder()
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/common/
H A DTopLevelIconTest.java34 import android.graphics.drawable.GradientDrawable;
60 GradientDrawable background = mock(GradientDrawable.class); in setBackgroundColor_shouldUpdateTintList()
/aosp12/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/
H A DSizeCalculator.java22 import android.graphics.drawable.GradientDrawable;
322 GradientDrawable background = (GradientDrawable) view.getBackground(); in adjustBackgroundCornerRadius()
333 background = ((GradientDrawable) background.mutate()); in adjustBackgroundCornerRadius()
/aosp12/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/
H A DCarSetupWizardBaseLayout.java25 import android.graphics.drawable.GradientDrawable;
725 GradientDrawable gradientDrawable = getGradientDrawable(button); in setButtonRadius()
783 private GradientDrawable getGradientDrawable(Button button) { in getGradientDrawable()
794 return (GradientDrawable) drawable; in getGradientDrawable()
800 private GradientDrawable getGradientDrawableFromInsetDrawable(InsetDrawable insetDrawable) { in getGradientDrawableFromInsetDrawable()
801 if (insetDrawable.getDrawable() instanceof GradientDrawable) { in getGradientDrawableFromInsetDrawable()
802 return (GradientDrawable) insetDrawable.getDrawable(); in getGradientDrawableFromInsetDrawable()
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/popup/
H A DArrowPopup.java38 import android.graphics.drawable.GradientDrawable;
120 private final GradientDrawable mRoundedTop;
121 private final GradientDrawable mRoundedBottom;
160 mRoundedTop = new GradientDrawable(); in ArrowPopup()
165 mRoundedBottom = new GradientDrawable(); in ArrowPopup()
407 if (bg instanceof GradientDrawable) { in setChildColor()
408 GradientDrawable gd = (GradientDrawable) bg.mutate(); in setChildColor()
409 int oldColor = ((GradientDrawable) bg).getColor().getDefaultColor(); in setChildColor()

123