HomeSort by relevance Sort by last modified time
    Searched defs:colorDrawable (Results 1 - 7 of 7) sorted by null

  /packages/apps/Calendar/src/com/android/calendar/selectcalendars/
CalendarColorSquare.java 43 Drawable[] colorDrawable = new Drawable[] {
45 setImageDrawable(new ColorStateDrawable(colorDrawable, color));
  /cts/tests/tests/graphics/src/android/graphics/drawable/cts/
ColorDrawableTest.java 27 import android.graphics.drawable.ColorDrawable;
41 new ColorDrawable();
42 new ColorDrawable(0);
43 new ColorDrawable(1);
47 ColorDrawable colorDrawable = new ColorDrawable();
48 assertEquals(0, colorDrawable.getAlpha());
50 colorDrawable.setAlpha(128);
51 assertEquals(0, colorDrawable.getAlpha())
    [all...]
LayerDrawableTest.java 31 import android.graphics.drawable.ColorDrawable;
53 Drawable colorDrawable = new ColorDrawable(Color.BLUE);
54 Drawable[] array = new Drawable[] { bitmapDrawable, colorDrawable };
58 assertSame(colorDrawable, layerDrawable.getDrawable(1));
81 assertEquals(ColorDrawable.class, layerDrawable.getDrawable(0).getClass());
128 Drawable colorDrawable = new ColorDrawable(Color.BLUE);
129 Drawable[] array = new Drawable[] { bitmapDrawable, colorDrawable };
135 assertSame(colorDrawable, layerDrawable.findDrawableByLayerId(20))
    [all...]
  /frameworks/opt/colorpicker/src/com/android/colorpicker/
ColorPickerSwatch.java 61 Drawable[] colorDrawable = new Drawable[]
63 mSwatchImage.setImageDrawable(new ColorStateDrawable(colorDrawable, color));
  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowResources.java 167 Drawable colorDrawable = resLoader.getColorDrawable(drawableResourceId);
168 if (colorDrawable != null) {
169 return colorDrawable;
  /packages/apps/Camera2/src/com/android/camera/ui/
BottomBar.java 23 import android.graphics.drawable.ColorDrawable;
86 private ColorDrawable mColorDrawable;
122 ColorDrawable intentBackground = (ColorDrawable) mIntentReviewLayout
140 } else if (d instanceof ColorDrawable) {
141 ColorDrawable colorDrawable = (ColorDrawable) d;
143 colorDrawable.setColor(color);
145 colorDrawable.setAlpha(alpha)
    [all...]
  /cts/tests/tests/view/src/android/view/cts/
ViewTest.java 37 import android.graphics.drawable.ColorDrawable;
641 ColorDrawable colorDrawable;
645 colorDrawable = (ColorDrawable) view.getBackground();
646 assertNotNull(colorDrawable);
647 assertEquals(0xFF, colorDrawable.getAlpha());
650 colorDrawable = (ColorDrawable) view.getBackground();
651 assertNotNull(colorDrawable);
    [all...]

Completed in 179 milliseconds