Home
last modified time | relevance | path

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

123

/frameworks/base/core/tests/coretests/src/com/android/internal/policy/
DPhoneWindowTest.java28 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/
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()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
DAdaptiveIconTest.java34 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/
DColorDrawable.java55 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/
DDrawableLayoutDirectionHelperTest.java27 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()
DIllustrationTest.java24 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/
DCarSetupWizardDesignLayoutTest.java22 import android.graphics.drawable.ColorDrawable;
53 ColorDrawable bg = (ColorDrawable) mCarSetupWizardLayout.getBackground(); in testShouldApplyLayoutBackground()
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/statusbar/hvac/
DAnimatedTemperatureView.java25 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/
DIconMixinTest.java30 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/
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()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DDatePickerActivity.java20 import android.graphics.drawable.ColorDrawable;
36 getWindow().setBackgroundDrawable(new ColorDrawable(0xffffffff)); in onCreate()
DColoredShadowsActivity.java22 import android.graphics.drawable.ColorDrawable;
60 private static class MyHackyBackground extends ColorDrawable {
DTextGammaActivity.java25 import android.graphics.drawable.ColorDrawable;
67 getWindow().setBackgroundDrawable(new ColorDrawable(0xffffffff)); in onCreate()
DPointsActivity.java25 import android.graphics.drawable.ColorDrawable;
41 getWindow().setBackgroundDrawable(new ColorDrawable(0xff000000)); in onCreate()
DColoredRectsActivity.java25 import android.graphics.drawable.ColorDrawable;
37 getWindow().setBackgroundDrawable(new ColorDrawable(0xff000000)); in onCreate()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
DTrivialAnimationActivity.java20 import android.graphics.drawable.ColorDrawable;
28 getWindow().setBackgroundDrawable(new ColorDrawable() { in onCreate()
DActivityTransitionDetails.java21 import android.graphics.drawable.ColorDrawable;
40 getWindow().setBackgroundDrawable(new ColorDrawable(Color.DKGRAY)); in onCreate()
DActivityTransition.java23 import android.graphics.drawable.ColorDrawable;
92 getWindow().setBackgroundDrawable(new ColorDrawable(Color.BLACK)); in onCreate()
/frameworks/base/core/java/com/android/internal/policy/
DBackdropFrameRenderer.java22 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/
DDividerItemDecorationTest.java29 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/
DNotificationViewWrapper.java27 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/
DPreferenceIconSpaceTest.java24 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/
DScrimViewTest.java22 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/
DAccessPointPreferenceTest.java26 import android.graphics.drawable.ColorDrawable;
57 when(mockIconInjector.getIcon(anyInt())).thenReturn(new ColorDrawable()); in setUp()
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
DCompareActivity.java28 import android.graphics.drawable.ColorDrawable;
57 getWindow().setBackgroundDrawable(new ColorDrawable(0xffefefef)); in onCreateCommon()

123