Home
last modified time | relevance | path

Searched refs:colorDrawable (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/tests/coretests/src/com/android/internal/policy/
DPhoneWindowTest.java104 ColorDrawable colorDrawable = (ColorDrawable) backgroundDrawable; in testWindowBackground_colorLiteral() local
105 assertThat(colorDrawable.getColor(), is(Color.GREEN)); in testWindowBackground_colorLiteral()
118 ColorDrawable colorDrawable = (ColorDrawable) fallbackDrawable; in testWindowBackgroundFallback_colorLiteral() local
119 assertThat(colorDrawable.getColor(), is(Color.BLUE)); in testWindowBackgroundFallback_colorLiteral()
136 ColorDrawable colorDrawable = (ColorDrawable) fallbackDrawable; in testWindowBackgroundFallbackWithExplicitBackgroundSet_colorLiteral() local
137 assertThat(colorDrawable.getColor(), is(Color.BLUE)); in testWindowBackgroundFallbackWithExplicitBackgroundSet_colorLiteral()
/frameworks/opt/colorpicker/src/com/android/colorpicker/
DColorPickerSwatch.java61 Drawable[] colorDrawable = new Drawable[] in setColor() local
63 mSwatchImage.setImageDrawable(new ColorStateDrawable(colorDrawable, color)); in setColor()
/frameworks/base/core/java/com/android/internal/policy/
DDecorView.java2232 ColorDrawable colorDrawable = (ColorDrawable) drawable; in enforceNonTranslucentBackground() local
2233 int color = colorDrawable.getColor(); in enforceNonTranslucentBackground()
2235 ColorDrawable copy = (ColorDrawable) colorDrawable.getConstantState().newDrawable() in enforceNonTranslucentBackground()