Home
last modified time | relevance | path

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

12

/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/sizecompatui/
DSizeCompatRestartButton.java22 import android.graphics.drawable.GradientDrawable;
67 final GradientDrawable mask = new GradientDrawable(); in onFinishInflate()
68 mask.setShape(GradientDrawable.OVAL); in onFinishInflate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
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()
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/
DGhostedViewLaunchAnimatorController.kt9 import android.graphics.drawable.GradientDrawable
210 private fun findGradientDrawable(drawable: Drawable): GradientDrawable? { in findGradientDrawable()
211 if (drawable is GradientDrawable) { in findGradientDrawable()
222 if (maybeGradient is GradientDrawable) { in findGradientDrawable()
329 if (drawable is GradientDrawable) { in applyBackgroundRadii()
344 (drawable.getDrawable(i) as? GradientDrawable)?.cornerRadii = radii in applyBackgroundRadii()
DActivityLaunchAnimator.kt17 import android.graphics.drawable.GradientDrawable in <lambda>()
489 val windowBackgroundLayer = GradientDrawable().apply { in <lambda>()
622 drawable: GradientDrawable, in <lambda>()
/frameworks/base/core/java/com/android/internal/widget/
DEmphasizedNotificationButton.java25 import android.graphics.drawable.GradientDrawable;
43 private final GradientDrawable mBackground;
64 mBackground = (GradientDrawable) inset.getDrawable(); in EmphasizedNotificationButton()
DConversationLayout.java37 import android.graphics.drawable.GradientDrawable;
311 GradientDrawable ring = (GradientDrawable) mImportanceRingView.getDrawable(); in setIsImportantConversation()
313 GradientDrawable bg = (GradientDrawable) mConversationIconBadgeBg.getDrawable(); in setIsImportantConversation()
/frameworks/layoutlib/bridge/src/android/graphics/drawable/
DGradientDrawable_Delegate.java22 import android.graphics.drawable.GradientDrawable.GradientState;
40 /*package*/ static Path buildRing(GradientDrawable thisDrawable, GradientState st) { in buildRing()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DNumPadAnimator.java23 import android.graphics.drawable.GradientDrawable;
40 private GradientDrawable mBackground;
49 mBackground = (GradientDrawable) mRipple.findDrawableByLayerId(R.id.background); in NumPadAnimator()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
DSlowNestedRecyclerViewActivity.java21 import android.graphics.drawable.GradientDrawable;
95 GradientDrawable bg = new GradientDrawable(); in onCreateViewHolder()
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/
DPeopleSpaceActivity.java32 import android.graphics.drawable.GradientDrawable;
93 GradientDrawable shape = (GradientDrawable) item.getBackground(); in buildActivity()
/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/
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()
DCarSetupWizardLayout.java24 import android.graphics.drawable.GradientDrawable;
649 GradientDrawable gradientDrawable = getGradientDrawable(button); in setButtonRadius()
669 private GradientDrawable getGradientDrawable(Button button) { in getGradientDrawable()
680 return (GradientDrawable) drawable; in getGradientDrawable()
686 private GradientDrawable getGradientDrawableFromInsetDrawable(InsetDrawable insetDrawable) { in getGradientDrawableFromInsetDrawable()
687 return (GradientDrawable) insetDrawable.getDrawable(); in getGradientDrawableFromInsetDrawable()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationShellCmdTest.java39 import android.graphics.drawable.GradientDrawable;
92 final GradientDrawable grad = new GradientDrawable(GradientDrawable.Orientation.TL_BR, in createTestBitmap()
/frameworks/base/core/java/android/content/res/
DGradientColor.java36 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()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/ui/
DControlViewHolderTest.kt22 import android.graphics.drawable.GradientDrawable
115 private val DRAWABLE = GradientDrawable()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
DControlViewHolder.kt30 import android.graphics.drawable.GradientDrawable
115 private val baseLayer: GradientDrawable
144 baseLayer = ld.findDrawableByLayerId(R.id.background) as GradientDrawable
357 val oldClipColor = if (clipDrawable is GradientDrawable) { in startBackgroundAnimation()
406 if (clipDrawable is GradientDrawable) { in applyBackgroundChange()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/floatingmenu/
DAccessibilityFloatingMenuViewTest.java41 import android.graphics.drawable.GradientDrawable;
196 final GradientDrawable gradientDrawable = in onTargetsChanged_singleTarget_expectedRadii()
197 (GradientDrawable) layerDrawable.getDrawable(0); in onTargetsChanged_singleTarget_expectedRadii()
219 final GradientDrawable gradientDrawable = in setSizeType_alignRightAndLargeSize_expectedRadii()
220 (GradientDrawable) layerDrawable.getDrawable(0); in setSizeType_alignRightAndLargeSize_expectedRadii()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
DBaseTooltipView.java31 import android.graphics.drawable.GradientDrawable;
215 final GradientDrawable gradientDrawable = (GradientDrawable) mTextView.getBackground(); in updateTextView()
DAccessibilityFloatingMenuView.java40 import android.graphics.drawable.GradientDrawable;
698 private GradientDrawable getMenuGradientDrawable() { in getMenuGradientDrawable()
699 return (GradientDrawable) getMenuLayerDrawable().getDrawable(INDEX_MENU_ITEM); in getMenuGradientDrawable()
/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/items/
DRecyclerItemAdapterTest.java32 import android.graphics.drawable.GradientDrawable;
154 assertTrue(layerDrawable.getDrawable(0) instanceof GradientDrawable); in testCreateViewHolderWithExistingBackground() local
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSmartReplyView.java14 import android.graphics.drawable.GradientDrawable;
656 if (background instanceof GradientDrawable) { in setButtonColors()
657 GradientDrawable gradientDrawable = (GradientDrawable) background; in setButtonColors()
/frameworks/base/graphics/java/android/graphics/drawable/
DGradientDrawable.java99 public class GradientDrawable extends Drawable { class
220 public GradientDrawable() { in GradientDrawable() method in GradientDrawable
228 public GradientDrawable(Orientation orientation, @ColorInt int[] colors) { in GradientDrawable() method in GradientDrawable
1403 final TypedArray a = obtainAttributes(r, theme, attrs, R.styleable.GradientDrawable);
1425 state.mThemeAttrs, R.styleable.GradientDrawable);
2203 return new GradientDrawable(this, null);
2218 return new GradientDrawable(state, res);
2333 private GradientDrawable(@NonNull GradientState state, @Nullable Resources res) {
DDrawableInflater.java170 return new GradientDrawable(); in inflateFromTag()
/frameworks/base/packages/SystemUI/src/com/android/systemui/egg/
DMLand.java33 import android.graphics.drawable.GradientDrawable;
389 final Drawable sky = new GradientDrawable( in reset()
390 GradientDrawable.Orientation.BOTTOM_TOP, in reset()
1306 GradientDrawable mGradient = new GradientDrawable();
1318 mGradient.setOrientation(GradientDrawable.Orientation.LEFT_RIGHT);
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/
DMediaControlPanelTest.kt21 import android.graphics.drawable.GradientDrawable
151 whenever(seamlessBackground.getDrawable(0)).thenReturn(mock(GradientDrawable::class.java)) in setUp()

12