Home
last modified time | relevance | path

Searched refs:backgroundDrawable (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/core/java/android/widget/
DToggleButton.java152 private void updateReferenceToIndicatorDrawable(Drawable backgroundDrawable) { in updateReferenceToIndicatorDrawable() argument
153 if (backgroundDrawable instanceof LayerDrawable) { in updateReferenceToIndicatorDrawable()
154 LayerDrawable layerDrawable = (LayerDrawable) backgroundDrawable; in updateReferenceToIndicatorDrawable()
/frameworks/base/core/tests/coretests/src/com/android/internal/policy/
DPhoneWindowTest.java101 Drawable backgroundDrawable = mPhoneWindow.getDecorView().getBackground(); in testWindowBackground_colorLiteral() local
102 assertThat(backgroundDrawable instanceof ColorDrawable, is(true)); in testWindowBackground_colorLiteral()
104 ColorDrawable colorDrawable = (ColorDrawable) backgroundDrawable; in testWindowBackground_colorLiteral()
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
DIllustrationTest.java52 final Drawable backgroundDrawable = new ColorDrawable(Color.RED); in testAspectRatio() local
54 illustration.setBackgroundDrawable(backgroundDrawable); in testAspectRatio()
/frameworks/base/graphics/java/android/graphics/drawable/
DAdaptiveIconDrawable.java188 public AdaptiveIconDrawable(Drawable backgroundDrawable, in AdaptiveIconDrawable() argument
191 if (backgroundDrawable != null) { in AdaptiveIconDrawable()
192 addLayer(BACKGROUND_ID, createChildDrawable(backgroundDrawable)); in AdaptiveIconDrawable()
/frameworks/base/core/java/com/android/internal/policy/
DDecorView.java2213 public static Drawable getResizingBackgroundDrawable(@Nullable Drawable backgroundDrawable, in getResizingBackgroundDrawable() argument
2215 if (backgroundDrawable != null) { in getResizingBackgroundDrawable()
2216 return enforceNonTranslucentBackground(backgroundDrawable, windowTranslucent); in getResizingBackgroundDrawable()