Home
last modified time | relevance | path

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

12

/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/bubbles/
H A DDismissView.kt22 import android.graphics.drawable.GradientDrawable
83 private var gradientDrawable: GradientDrawable? = null
85 private val GRADIENT_ALPHA: IntProperty<GradientDrawable> =
86 object : IntProperty<GradientDrawable>("alpha") {
87 override fun setValue(d: GradientDrawable, percent: Int) {
90 override fun get(d: GradientDrawable): Int {
188 private fun createGradient(@ColorRes color: Int): GradientDrawable {
195 val gd = GradientDrawable(
196 GradientDrawable.Orientation.BOTTOM_TOP,
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
H A DNotificationBackgroundView.java26 import android.graphics.drawable.GradientDrawable;
270 GradientDrawable gradientDrawable = in updateBackgroundRadii()
271 (GradientDrawable) ((LayerDrawable) mBackground).getDrawable(0); in updateBackgroundRadii()
286 GradientDrawable gradientDrawable = in setExpandAnimationRunning()
287 (GradientDrawable) ((LayerDrawable) mBackground).getDrawable(0); in setExpandAnimationRunning()
/aosp14/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()
/aosp14/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/
H A DGhostedViewLaunchAnimatorController.kt26 import android.graphics.drawable.GradientDrawable
347 fun findGradientDrawable(drawable: Drawable): GradientDrawable? {
348 if (drawable is GradientDrawable) {
359 if (maybeGradient is GradientDrawable) {
470 if (drawable is GradientDrawable) {
485 (drawable.getDrawable(i) as? GradientDrawable)?.cornerRadii = radii
H A DLaunchAnimator.kt25 import android.graphics.drawable.GradientDrawable
262 GradientDrawable().apply {
399 drawable: GradientDrawable,
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
H A DMenuView.java27 import android.graphics.drawable.GradientDrawable;
180 final GradientDrawable gradientDrawable = getContainerViewGradient(); in onEdgeChanged()
347 final GradientDrawable gradientDrawable = getContainerViewGradient(); in onDraggingStart()
371 private GradientDrawable getContainerViewGradient() { in getContainerViewGradient()
372 return (GradientDrawable) getContainerViewInsetLayer().getDrawable(INDEX_MENU_ITEM); in getContainerViewGradient()
H A DMenuEduTooltipView.java32 import android.graphics.drawable.GradientDrawable;
182 final GradientDrawable gradientDrawable = (GradientDrawable) mMessageView.getBackground(); in updateMessageView()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/viewholder/
H A DDesktopModeFocusedWindowDecorationViewHolder.kt5 import android.graphics.drawable.GradientDrawable
31 val captionDrawable = captionView.background as GradientDrawable
H A DDesktopModeAppControlsWindowDecorationViewHolder.kt6 import android.graphics.drawable.GradientDrawable
49 val captionDrawable = captionView.background as GradientDrawable
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
H A DNumPadAnimatorTest.kt19 import android.graphics.drawable.GradientDrawable
38 @Mock lateinit var background: GradientDrawable
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/floatingmenu/
H A DMenuViewTest.java29 import android.graphics.drawable.GradientDrawable;
145 private GradientDrawable getMenuViewGradient() { in getMenuViewGradient()
146 return (GradientDrawable) getMenuViewInsetLayer().getDrawable(INDEX_MENU_ITEM); in getMenuViewGradient()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/user/ui/binder/
H A DUserViewBinder.kt22 import android.graphics.drawable.GradientDrawable
59 (layerDrawable.findDrawableByLayerId(R.id.ring) as GradientDrawable).apply {
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/media/dialog/
H A DMediaOutputBaseAdapter.java30 import android.graphics.drawable.GradientDrawable;
300 final GradientDrawable progressDrawable = in updateSeekbarProgressBackground()
301 (GradientDrawable) clipDrawable.getDrawable(); in updateSeekbarProgressBackground()
446 final GradientDrawable layoutBackgroundDrawable = in animateCornerAndVolume()
447 (GradientDrawable) mItemLayout.getBackground(); in animateCornerAndVolume()
451 final GradientDrawable targetBackgroundDrawable = in animateCornerAndVolume()
452 (GradientDrawable) (mIconAreaLayout.getBackground()); in animateCornerAndVolume()
/aosp14/frameworks/base/tests/UiBench/src/com/android/test/uibench/
H A DSlowNestedRecyclerViewActivity.java21 import android.graphics.drawable.GradientDrawable;
95 GradientDrawable bg = new GradientDrawable(); in onCreateViewHolder()
/aosp14/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DNotificationShellCmdTest.java39 import android.graphics.drawable.GradientDrawable;
91 final GradientDrawable grad = new GradientDrawable(GradientDrawable.Orientation.TL_BR, in createTestBitmap()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/keyguard/
H A DNumPadButton.java25 import android.graphics.drawable.GradientDrawable;
141 if (background instanceof GradientDrawable) { in setupAnimator()
H A DNumPadAnimator.java34 import android.graphics.drawable.GradientDrawable;
50 private GradientDrawable mBackground;
76 mBackground = (GradientDrawable) drawable; in NumPadAnimator()
H A DNumPadKey.java24 import android.graphics.drawable.GradientDrawable;
138 if (background instanceof GradientDrawable) { in NumPadKey()
/aosp14/frameworks/base/core/java/android/content/res/
H A DGradientColor.java29 import android.graphics.drawable.GradientDrawable;
102 private int mGradientType = GradientDrawable.LINEAR_GRADIENT;
238 && mGradientType == GradientDrawable.RADIAL_GRADIENT) { in validateXmlContent()
472 if (mGradientType == GradientDrawable.LINEAR_GRADIENT) { in onColorsChange()
476 if (mGradientType == GradientDrawable.RADIAL_GRADIENT) { in onColorsChange()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/
H A DCaptionWindowDecoration.java24 import android.graphics.drawable.GradientDrawable;
187 final GradientDrawable captionDrawable = (GradientDrawable) caption.getBackground(); in setCaptionColor()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
H A DControlViewHolder.kt30 import android.graphics.drawable.GradientDrawable
96 private val baseLayer: GradientDrawable
126 baseLayer = ld.findDrawableByLayerId(R.id.background) as GradientDrawable
362 val oldClipColor = if (clipDrawable is GradientDrawable) {
411 if (clipDrawable is GradientDrawable) {
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/ui/
H A DControlViewHolderTest.kt22 import android.graphics.drawable.GradientDrawable
138 private val DRAWABLE = GradientDrawable()
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/
H A DTextViewContextMenuTest.java37 import android.graphics.drawable.GradientDrawable;
176 GradientDrawable gd = new GradientDrawable(); in testAdjustIconSpaces()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/people/ui/view/
H A DPeopleViewBinder.kt22 import android.graphics.drawable.GradientDrawable
142 val shape = item.background as GradientDrawable
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DSmartReplyView.java15 import android.graphics.drawable.GradientDrawable;
754 if (background instanceof GradientDrawable) { in setButtonColors()
755 GradientDrawable gradientDrawable = (GradientDrawable) background; in setButtonColors()

12