Home
last modified time | relevance | path

Searched refs:ColorDrawable (Results 1 – 25 of 77) sorted by relevance

1234

/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/policy/
H A DPhoneWindowTest.java29 import android.graphics.drawable.ColorDrawable;
112 assertThat(backgroundDrawable instanceof ColorDrawable, is(true)); in testWindowBackground_colorLiteral()
114 ColorDrawable colorDrawable = (ColorDrawable) backgroundDrawable; in testWindowBackground_colorLiteral()
126 assertThat(fallbackDrawable instanceof ColorDrawable, is(true)); in testWindowBackgroundFallback_colorLiteral()
128 ColorDrawable colorDrawable = (ColorDrawable) fallbackDrawable; in testWindowBackgroundFallback_colorLiteral()
136 mPhoneWindow.setBackgroundDrawable(new ColorDrawable(Color.CYAN)); in testWindowBackgroundFallbackWithExplicitBackgroundSet_colorLiteral()
144 assertThat(fallbackDrawable instanceof ColorDrawable, is(true)); in testWindowBackgroundFallbackWithExplicitBackgroundSet_colorLiteral()
146 ColorDrawable colorDrawable = (ColorDrawable) fallbackDrawable; in testWindowBackgroundFallbackWithExplicitBackgroundSet_colorLiteral()
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/bar/
H A DBubbleBarHandleViewTest.java21 import android.graphics.drawable.ColorDrawable;
51 assertTrue(mHandleView.getBackground() instanceof ColorDrawable); in testUpdateHandleColor_lightBg()
52 ColorDrawable bgDrawable = (ColorDrawable) mHandleView.getBackground(); in testUpdateHandleColor_lightBg()
62 assertTrue(mHandleView.getBackground() instanceof ColorDrawable); in testUpdateHandleColor_darkBg()
63 ColorDrawable bgDrawable = (ColorDrawable) mHandleView.getBackground(); in testUpdateHandleColor_darkBg()
/aosp14/frameworks/base/core/java/android/transition/
H A DRecolor.java22 import android.graphics.drawable.ColorDrawable;
79 if (startBackground instanceof ColorDrawable && endBackground instanceof ColorDrawable) { in createAnimator()
80 ColorDrawable startColor = (ColorDrawable) startBackground; in createAnimator()
81 ColorDrawable endColor = (ColorDrawable) endBackground; in createAnimator()
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
H A DAdaptiveIconTest.java34 import android.graphics.drawable.ColorDrawable;
68 new AdaptiveIcon(mContext, new ColorDrawable(Color.BLACK)); in createIcon_shouldSetBackgroundAndInset()
77 spy(new AdaptiveIcon(mContext, new ColorDrawable(Color.BLACK))); in setBackgroundColor_shouldUpdateColorFilter()
93 new AdaptiveIcon(mContext, new ColorDrawable(Color.BLACK)); in setBackgroundColor_externalTileWithBackgroundColorRawValue_shouldUpdateIcon()
104 final AdaptiveIcon icon = new AdaptiveIcon(mContext, new ColorDrawable(Color.BLACK)); in setBackgroundColor_tileWithoutBackgroundColor_shouldSetDefaultBackgroundColor()
121 new AdaptiveIcon(mContext, new ColorDrawable(Color.BLACK)); in onBindTile_externalTileWithBackgroundColorHint_shouldUpdateIcon()
131 new AdaptiveIcon(mContext, new ColorDrawable(Color.BLACK)); in getConstantState_returnCorrectState()
/aosp14/frameworks/base/graphics/java/android/graphics/drawable/
H A DColorDrawable.java56 public class ColorDrawable extends Drawable { class
69 public ColorDrawable() { in ColorDrawable() method in ColorDrawable
78 public ColorDrawable(@ColorInt int color) { in ColorDrawable() method in ColorDrawable
292 final TypedArray a = obtainAttributes(r, theme, attrs, R.styleable.ColorDrawable); in inflate()
330 final TypedArray a = t.resolveAttributes(state.mThemeAttrs, R.styleable.ColorDrawable); in applyTheme()
378 return new ColorDrawable(this, null); in newDrawable()
383 return new ColorDrawable(this, res); in newDrawable()
393 private ColorDrawable(ColorState state, Resources res) { in ColorDrawable() method in ColorDrawable
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/scrim/
H A DScrimViewTest.java23 import android.graphics.drawable.ColorDrawable;
66 Drawable drawable = new ColorDrawable(Color.GREEN); in testSetDrawable_UpdateDrawable()
95 ColorDrawable drawable = new ColorDrawable(); in setDrawableBounds_propagatesToDrawable()
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
H A DBackgroundFallbackTest.java33 import android.graphics.drawable.ColorDrawable;
205 new ColorDrawable(Color.BLACK), VISIBLE, emptyList()); in setUpViewHierarchy()
213 SCREEN_HEIGHT, new ColorDrawable(Color.BLACK), VISIBLE, emptyList()); in setUpViewHierarchy()
220 new ColorDrawable(Color.BLACK), VISIBLE, emptyList()); in setUpViewHierarchy()
227 SCREEN_HEIGHT, new ColorDrawable(Color.BLACK), VISIBLE, emptyList()); in setUpViewHierarchy()
246 bar.setBackground(new ColorDrawable(Color.TRANSPARENT)); in setTranslucent()
/aosp14/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DDatePickerActivity.java20 import android.graphics.drawable.ColorDrawable;
36 getWindow().setBackgroundDrawable(new ColorDrawable(0xffffffff)); in onCreate()
H A DColoredShadowsActivity.java22 import android.graphics.drawable.ColorDrawable;
60 private static class MyHackyBackground extends ColorDrawable {
H A DTextGammaActivity.java25 import android.graphics.drawable.ColorDrawable;
67 getWindow().setBackgroundDrawable(new ColorDrawable(0xffffffff)); in onCreate()
H A DPointsActivity.java25 import android.graphics.drawable.ColorDrawable;
41 getWindow().setBackgroundDrawable(new ColorDrawable(0xff000000)); in onCreate()
H A DColoredRectsActivity.java25 import android.graphics.drawable.ColorDrawable;
37 getWindow().setBackgroundDrawable(new ColorDrawable(0xff000000)); in onCreate()
/aosp14/frameworks/base/packages/SystemUI/accessibility/accessibilitymenu/src/com/android/systemui/accessibility/accessibilitymenu/utils/
H A DShortcutDrawableUtils.java28 import android.graphics.drawable.ColorDrawable;
52 private final ColorDrawable mTransparentDrawable = new ColorDrawable(Color.TRANSPARENT);
/aosp14/frameworks/base/tests/UiBench/src/com/android/test/uibench/
H A DTrivialAnimationActivity.java20 import android.graphics.drawable.ColorDrawable;
28 getWindow().setBackgroundDrawable(new ColorDrawable() { in onCreate()
H A DActivityTransitionDetails.java21 import android.graphics.drawable.ColorDrawable;
40 getWindow().setBackgroundDrawable(new ColorDrawable(Color.DKGRAY)); in onCreate()
H A DActivityTransition.java23 import android.graphics.drawable.ColorDrawable;
92 getWindow().setBackgroundDrawable(new ColorDrawable(Color.BLACK)); in onCreate()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tv/notifications/
H A DTvNotificationPanelActivity.java23 import android.graphics.drawable.ColorDrawable;
122 new ColorDrawable(getColor(R.color.tv_notification_blur_background_color))); in enableBlur()
126 new ColorDrawable(getColor(R.color.tv_notification_default_background_color))); in enableBlur()
/aosp14/frameworks/base/core/java/com/android/internal/policy/
H A DBackdropFrameRenderer.java23 import android.graphics.drawable.ColorDrawable;
69 private ColorDrawable mStatusBarColor;
70 private ColorDrawable mNavigationBarColor;
125 mStatusBarColor = new ColorDrawable(statusBarColor); in onResourcesLoaded()
131 mNavigationBarColor = new ColorDrawable(navigationBarColor); in onResourcesLoaded()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
H A DManageEducationView.kt21 import android.graphics.drawable.ColorDrawable
80 manageButton.setBackgroundDrawable(ColorDrawable(buttonColor))
81 gotItButton.setBackgroundDrawable(ColorDrawable(buttonColor))
/aosp14/frameworks/base/core/tests/coretests/src/android/preference/
H A DPreferenceIconSpaceTest.java24 import android.graphics.drawable.ColorDrawable;
83 mPreference.setIcon(new ColorDrawable(Color.BLACK)); in bindView_hasIcon_shouldDisplayIcon()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/
H A DNotificationViewWrapper.java29 import android.graphics.drawable.ColorDrawable;
115 mView.setBackground(new ColorDrawable(Color.TRANSPARENT)); in onReinflated()
199 if (background instanceof ColorDrawable) { in getBackgroundColor()
200 return ((ColorDrawable) background).getColor(); in getBackgroundColor()
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
H A DAccessPointPreferenceTest.java27 import android.graphics.drawable.ColorDrawable;
63 when(mockIconInjector.getIcon(anyInt())).thenReturn(new ColorDrawable()); in setUp()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/bar/
H A DBubbleBarLayerView.java26 import android.graphics.drawable.ColorDrawable;
91 mScrimView.setBackgroundDrawable(new ColorDrawable( in BubbleBarLayerView()
95 mScrimView.setBackgroundDrawable(new ColorDrawable( in BubbleBarLayerView()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/draganddrop/
H A DDropZoneView.java27 import android.graphics.drawable.ColorDrawable;
84 private ColorDrawable mColorDrawable;
111 mColorDrawable = new ColorDrawable(); in DropZoneView()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
H A DControlsPopupMenu.kt21 import android.graphics.drawable.ColorDrawable
47 private val dimDrawable: Drawable = ColorDrawable(resources.getColor(R.color.control_popup_dim))

1234