/frameworks/base/core/tests/coretests/src/com/android/internal/policy/ |
D | PhoneWindowTest.java | 28 import android.graphics.drawable.ColorDrawable; 102 assertThat(backgroundDrawable instanceof ColorDrawable, is(true)); in testWindowBackground_colorLiteral() 104 ColorDrawable colorDrawable = (ColorDrawable) backgroundDrawable; in testWindowBackground_colorLiteral() 116 assertThat(fallbackDrawable instanceof ColorDrawable, is(true)); in testWindowBackgroundFallback_colorLiteral() 118 ColorDrawable colorDrawable = (ColorDrawable) fallbackDrawable; in testWindowBackgroundFallback_colorLiteral() 126 mPhoneWindow.setBackgroundDrawable(new ColorDrawable(Color.CYAN)); in testWindowBackgroundFallbackWithExplicitBackgroundSet_colorLiteral() 134 assertThat(fallbackDrawable instanceof ColorDrawable, is(true)); in testWindowBackgroundFallbackWithExplicitBackgroundSet_colorLiteral() 136 ColorDrawable colorDrawable = (ColorDrawable) fallbackDrawable; in testWindowBackgroundFallbackWithExplicitBackgroundSet_colorLiteral()
|
/frameworks/base/core/java/android/transition/ |
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()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/ |
D | AdaptiveIconTest.java | 34 import android.graphics.drawable.ColorDrawable; 67 new AdaptiveIcon(mContext, new ColorDrawable(Color.BLACK)); in createIcon_shouldSetBackgroundAndInset() 76 spy(new AdaptiveIcon(mContext, new ColorDrawable(Color.BLACK))); in setBackgroundColor_shouldUpdateColorFilter() 92 new AdaptiveIcon(mContext, new ColorDrawable(Color.BLACK)); in setBackgroundColor_externalTileWithBackgroundColorRawValue_shouldUpdateIcon() 103 final AdaptiveIcon icon = new AdaptiveIcon(mContext, new ColorDrawable(Color.BLACK)); in setBackgroundColor_tileWithoutBackgroundColor_shouldSetDefaultBackgroundColor() 120 new AdaptiveIcon(mContext, new ColorDrawable(Color.BLACK)); in onBindTile_externalTileWithBackgroundColorHint_shouldUpdateIcon() 130 new AdaptiveIcon(mContext, new ColorDrawable(Color.BLACK)); in getConstantState_returnCorrectState()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | ColorDrawable.java | 55 public class ColorDrawable extends Drawable { class 68 public ColorDrawable() { in ColorDrawable() method in ColorDrawable 77 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
|
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/ |
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()
|
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()
|
/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/ |
D | CarSetupWizardDesignLayoutTest.java | 22 import android.graphics.drawable.ColorDrawable; 53 ColorDrawable bg = (ColorDrawable) mCarSetupWizardLayout.getBackground(); in testShouldApplyLayoutBackground()
|
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/statusbar/hvac/ |
D | AnimatedTemperatureView.java | 25 import android.graphics.drawable.ColorDrawable; 52 private static final Property<ColorDrawable, Integer> COLOR_PROPERTY = 53 new Property<ColorDrawable, Integer>(Integer.class, "color") { 56 public Integer get(ColorDrawable object) { 61 public void set(ColorDrawable object, Integer value) { 97 private final ColorDrawable mBackgroundColor; 136 mBackgroundColor = new ColorDrawable(Color.TRANSPARENT); in AnimatedTemperatureView()
|
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/template/ |
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()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/ |
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()
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | DatePickerActivity.java | 20 import android.graphics.drawable.ColorDrawable; 36 getWindow().setBackgroundDrawable(new ColorDrawable(0xffffffff)); in onCreate()
|
D | ColoredShadowsActivity.java | 22 import android.graphics.drawable.ColorDrawable; 60 private static class MyHackyBackground extends ColorDrawable {
|
D | TextGammaActivity.java | 25 import android.graphics.drawable.ColorDrawable; 67 getWindow().setBackgroundDrawable(new ColorDrawable(0xffffffff)); in onCreate()
|
D | PointsActivity.java | 25 import android.graphics.drawable.ColorDrawable; 41 getWindow().setBackgroundDrawable(new ColorDrawable(0xff000000)); in onCreate()
|
D | ColoredRectsActivity.java | 25 import android.graphics.drawable.ColorDrawable; 37 getWindow().setBackgroundDrawable(new ColorDrawable(0xff000000)); in onCreate()
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
D | TrivialAnimationActivity.java | 20 import android.graphics.drawable.ColorDrawable; 28 getWindow().setBackgroundDrawable(new ColorDrawable() { in onCreate()
|
D | ActivityTransitionDetails.java | 21 import android.graphics.drawable.ColorDrawable; 40 getWindow().setBackgroundDrawable(new ColorDrawable(Color.DKGRAY)); in onCreate()
|
D | ActivityTransition.java | 23 import android.graphics.drawable.ColorDrawable; 92 getWindow().setBackgroundDrawable(new ColorDrawable(Color.BLACK)); in onCreate()
|
/frameworks/base/core/java/com/android/internal/policy/ |
D | BackdropFrameRenderer.java | 22 import android.graphics.drawable.ColorDrawable; 68 private ColorDrawable mStatusBarColor; 69 private ColorDrawable mNavigationBarColor; 128 mStatusBarColor = new ColorDrawable(statusBarColor); in onResourcesLoaded() 134 mNavigationBarColor = new ColorDrawable(navigationBarColor); in onResourcesLoaded()
|
/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/test/ |
D | DividerItemDecorationTest.java | 29 import android.graphics.drawable.ColorDrawable; 49 Drawable divider = new ColorDrawable(); in testDivider() 65 Drawable divider = new ColorDrawable(Color.RED); in testShouldDrawDividerBelowWithEitherCondition() 107 Drawable divider = new ColorDrawable(Color.GREEN); in testShouldDrawDividerBelowWithBothCondition()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/ |
D | NotificationViewWrapper.java | 27 import android.graphics.drawable.ColorDrawable; 98 mView.setBackground(new ColorDrawable(Color.TRANSPARENT)); in onReinflated() 182 if (background instanceof ColorDrawable) { in getBackgroundColor() 183 return ((ColorDrawable) background).getColor(); in getBackgroundColor()
|
/frameworks/base/core/tests/coretests/src/android/preference/ |
D | PreferenceIconSpaceTest.java | 24 import android.graphics.drawable.ColorDrawable; 83 mPreference.setIcon(new ColorDrawable(Color.BLACK)); in bindView_hasIcon_shouldDisplayIcon()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | ScrimViewTest.java | 22 import android.graphics.drawable.ColorDrawable; 66 Drawable drawable = new ColorDrawable(Color.GREEN); in testSetDrawable_UpdateDrawable()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/ |
D | AccessPointPreferenceTest.java | 26 import android.graphics.drawable.ColorDrawable; 57 when(mockIconInjector.getIcon(anyInt())).thenReturn(new ColorDrawable()); in setUp()
|
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/ |
D | CompareActivity.java | 28 import android.graphics.drawable.ColorDrawable; 57 getWindow().setBackgroundDrawable(new ColorDrawable(0xffefefef)); in onCreateCommon()
|