Searched refs:colorDrawable (Results 1 – 3 of 3) sorted by relevance
104 ColorDrawable colorDrawable = (ColorDrawable) backgroundDrawable; in testWindowBackground_colorLiteral() local105 assertThat(colorDrawable.getColor(), is(Color.GREEN)); in testWindowBackground_colorLiteral()118 ColorDrawable colorDrawable = (ColorDrawable) fallbackDrawable; in testWindowBackgroundFallback_colorLiteral() local119 assertThat(colorDrawable.getColor(), is(Color.BLUE)); in testWindowBackgroundFallback_colorLiteral()136 ColorDrawable colorDrawable = (ColorDrawable) fallbackDrawable; in testWindowBackgroundFallbackWithExplicitBackgroundSet_colorLiteral() local137 assertThat(colorDrawable.getColor(), is(Color.BLUE)); in testWindowBackgroundFallbackWithExplicitBackgroundSet_colorLiteral()
61 Drawable[] colorDrawable = new Drawable[] in setColor() local63 mSwatchImage.setImageDrawable(new ColorStateDrawable(colorDrawable, color)); in setColor()
2232 ColorDrawable colorDrawable = (ColorDrawable) drawable; in enforceNonTranslucentBackground() local2233 int color = colorDrawable.getColor(); in enforceNonTranslucentBackground()2235 ColorDrawable copy = (ColorDrawable) colorDrawable.getConstantState().newDrawable() in enforceNonTranslucentBackground()