/aosp12/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()
|
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/draganddrop/ |
H A D | DropZoneView.java | 26 import android.graphics.drawable.ColorDrawable; 65 new IntProperty<ColorDrawable>("splashscreen") { 67 public void setValue(ColorDrawable d, int alpha) { 72 public Integer get(ColorDrawable d) { 78 new IntProperty<ColorDrawable>("highlight") { 80 public void setValue(ColorDrawable d, int alpha) { 85 public Integer get(ColorDrawable d) { 108 private ColorDrawable mDropZoneDrawable; 111 private ColorDrawable mSplashBackgroundDrawable; 135 mDropZoneDrawable = new ColorDrawable(); in DropZoneView() [all …]
|
/aosp12/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()
|
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/common/ |
H A D | TopLevelIconTest.java | 33 import android.graphics.drawable.ColorDrawable; 51 TopLevelIcon icon = new TopLevelIcon(mContext, new ColorDrawable(Color.BLACK)); in createIcon_shouldSetBackgroundAndInset() 59 TopLevelIcon icon = spy(new TopLevelIcon(mContext, new ColorDrawable(Color.BLACK))); in setBackgroundColor_shouldUpdateTintList() 71 TopLevelIcon icon = new TopLevelIcon(mContext, new ColorDrawable(Color.BLACK)); in injectedPreferenceWithBackgroundColorRawValue_shouldSetColor() 80 TopLevelIcon icon = new TopLevelIcon(mContext, new ColorDrawable(Color.BLACK)); in injectedPreferenceWithoutBackgroundColor_shouldSetDefaultBackgroundColor() 91 TopLevelIcon icon = new TopLevelIcon(mContext, new ColorDrawable(Color.BLACK)); in injectedPreferenceWithBackgroundColorHintValue_shouldSetColor() 100 TopLevelIcon icon = new TopLevelIcon(mContext, new ColorDrawable(Color.BLACK)); in getConstantState_returnCorrectState()
|
/aosp12/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/ |
H A D | ContactsMockPackageManager.java | 20 import android.graphics.drawable.ColorDrawable; 32 return new ColorDrawable(); in getActivityLogo() 37 return new ColorDrawable(); in getActivityIcon() 43 return new ColorDrawable(); in getDrawable()
|
/aosp12/packages/apps/Settings/src/com/android/settings/accessibility/ |
H A D | ColorPreference.java | 21 import android.graphics.drawable.ColorDrawable; 38 private ColorDrawable mPreviewColor; 97 mPreviewColor = new ColorDrawable(argb); in onBindViewHolder() 127 if (foreground instanceof ColorDrawable) { in onBindListItem() 128 ((ColorDrawable) foreground).setColor(argb); in onBindListItem() 130 swatch.setImageDrawable(new ColorDrawable(argb)); in onBindListItem()
|
/aosp12/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()
|
/aosp12/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
|
/aosp12/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/ |
H A D | DrawableLayoutDirectionHelperTest.java | 27 import android.graphics.drawable.ColorDrawable; 46 final Drawable drawable = new ColorDrawable(Color.RED); in testCreateRelativeInsetDrawableLtr() 69 final Drawable drawable = new ColorDrawable(Color.RED); in testCreateRelativeInsetDrawableRtl() 92 final Drawable drawable = new ColorDrawable(Color.RED); in testCreateRelativeInsetDrawableViewRtl() 115 final Drawable drawable = new ColorDrawable(Color.RED); in testCreateRelativeInsetDrawableContextRtl()
|
H A D | IllustrationTest.java | 24 import android.graphics.drawable.ColorDrawable; 52 final Drawable backgroundDrawable = new ColorDrawable(Color.RED); in testAspectRatio() 53 final Drawable illustrationDrawable = new ColorDrawable(Color.BLUE); in testAspectRatio()
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/ |
H A D | ShadowSettingsLibUtils.java | 21 import android.graphics.drawable.ColorDrawable; 35 return new ColorDrawable(0); in getBadgedIcon() 40 return new ColorDrawable(0); in getBadgedIcon()
|
/aosp12/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/template/ |
H A D | IconMixinTest.java | 30 import android.graphics.drawable.ColorDrawable; 72 final ColorDrawable drawable = new ColorDrawable(Color.CYAN); in testSetIcon() 101 final ColorDrawable drawable = new ColorDrawable(Color.BLUE); in testGetIcon()
|
/aosp12/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()
|
/aosp12/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/ |
H A D | CarSetupWizardDesignLayoutTest.java | 22 import android.graphics.drawable.ColorDrawable; 53 ColorDrawable bg = (ColorDrawable) mCarSetupWizardLayout.getBackground(); in testShouldApplyLayoutBackground()
|
/aosp12/packages/apps/Camera2/src/com/android/camera/ui/ |
H A D | BottomBar.java | 23 import android.graphics.drawable.ColorDrawable; 86 private ColorDrawable mColorDrawable; 122 ColorDrawable intentBackground = (ColorDrawable) mIntentReviewLayout in setPaintColor() 140 } else if (d instanceof ColorDrawable) { in setCancelBackgroundColor() 141 ColorDrawable colorDrawable = (ColorDrawable) d; in setCancelBackgroundColor() 420 } else if (d instanceof ColorDrawable) { in setupShutterBackgroundForModeIndex() 421 mColorDrawable = (ColorDrawable) d; in setupShutterBackgroundForModeIndex()
|
/aosp12/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()
|
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/ |
H A D | BaseDialogFragment.java | 24 import android.graphics.drawable.ColorDrawable; 60 private ColorDrawable mBgDrawable = new ColorDrawable(); 245 public ColorDrawable getBackgroundDrawable() { in getBackgroundDrawable() 249 public void setBackgroundDrawable(ColorDrawable drawable) { in setBackgroundDrawable()
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/ |
H A D | SwitchBarTest.java | 24 import android.graphics.drawable.ColorDrawable; 66 assertThat(mBar.getBackground()).isInstanceOf(ColorDrawable.class); in cycleChecked_defaultLabel_shouldUpdateTextAndBackground() 81 assertThat(mBar.getBackground()).isInstanceOf(ColorDrawable.class); in cycleChecked_customLabel_shouldUpdateTextAndBackground() 101 assertThat(mBar.getBackground()).isInstanceOf(ColorDrawable.class); in setCheck_customLabelWithStringType_shouldUpdateTextAndBackground()
|
/aosp12/packages/apps/TV/src/com/android/tv/dvr/ui/ |
H A D | FadeBackground.java | 24 import android.graphics.drawable.ColorDrawable; 57 if (background instanceof ColorDrawable) { in createAnimator() 58 int color = ((ColorDrawable) background).getColor(); in createAnimator()
|
/aosp12/packages/apps/DeskClock/src/com/android/deskclock/ |
H A D | BaseActivity.kt | 24 import android.graphics.drawable.ColorDrawable 41 private var mBackground: ColorDrawable? = null 73 mBackground = ColorDrawable(color)
|
/aosp12/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/ |
H A D | GraphicsUtils.java | 27 import android.graphics.drawable.ColorDrawable; 103 new ColorDrawable(Color.BLACK), new ColorDrawable(Color.BLACK)); in getShapePath()
|
/aosp12/packages/apps/Contacts/src/com/android/contacts/drawer/ |
H A D | ScrimDrawable.java | 19 import android.graphics.drawable.ColorDrawable; 25 public class ScrimDrawable extends ColorDrawable {
|
/aosp12/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()
|
/aosp12/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/testutils/ |
H A D | ShadowIconDrawableFactory.java | 19 import android.graphics.drawable.ColorDrawable; 31 return new ColorDrawable(0); in getBadgedIcon()
|
/aosp12/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
H A D | ShadowIconDrawableFactory.java | 20 import android.graphics.drawable.ColorDrawable; 32 return new ColorDrawable(0); in getBadgedIcon()
|