/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/policy/ |
H A D | PhoneWindowTest.java | 29 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 D | BubbleBarHandleViewTest.java | 21 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 D | Recolor.java | 22 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 D | AdaptiveIconTest.java | 34 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 D | ColorDrawable.java | 56 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 D | ScrimViewTest.java | 23 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 D | BackgroundFallbackTest.java | 33 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 D | DatePickerActivity.java | 20 import android.graphics.drawable.ColorDrawable; 36 getWindow().setBackgroundDrawable(new ColorDrawable(0xffffffff)); in onCreate()
|
H A D | ColoredShadowsActivity.java | 22 import android.graphics.drawable.ColorDrawable; 60 private static class MyHackyBackground extends ColorDrawable {
|
H A D | TextGammaActivity.java | 25 import android.graphics.drawable.ColorDrawable; 67 getWindow().setBackgroundDrawable(new ColorDrawable(0xffffffff)); in onCreate()
|
H A D | PointsActivity.java | 25 import android.graphics.drawable.ColorDrawable; 41 getWindow().setBackgroundDrawable(new ColorDrawable(0xff000000)); in onCreate()
|
H A D | ColoredRectsActivity.java | 25 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 D | ShortcutDrawableUtils.java | 28 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 D | TrivialAnimationActivity.java | 20 import android.graphics.drawable.ColorDrawable; 28 getWindow().setBackgroundDrawable(new ColorDrawable() { in onCreate()
|
H A D | ActivityTransitionDetails.java | 21 import android.graphics.drawable.ColorDrawable; 40 getWindow().setBackgroundDrawable(new ColorDrawable(Color.DKGRAY)); in onCreate()
|
H A D | ActivityTransition.java | 23 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 D | TvNotificationPanelActivity.java | 23 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 D | BackdropFrameRenderer.java | 23 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 D | ManageEducationView.kt | 21 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 D | PreferenceIconSpaceTest.java | 24 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 D | NotificationViewWrapper.java | 29 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 D | AccessPointPreferenceTest.java | 27 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 D | BubbleBarLayerView.java | 26 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 D | DropZoneView.java | 27 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 D | ControlsPopupMenu.kt | 21 import android.graphics.drawable.ColorDrawable 47 private val dimDrawable: Drawable = ColorDrawable(resources.getColor(R.color.control_popup_dim))
|