/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
ColorDrawableTest.java | 33 import android.graphics.drawable.ColorDrawable; 52 new ColorDrawable(); 53 new ColorDrawable(0); 54 new ColorDrawable(1); 59 ColorDrawable colorDrawable = new ColorDrawable(); 60 assertEquals(0, colorDrawable.getAlpha()); 62 colorDrawable.setAlpha(128); 63 assertEquals(0, colorDrawable.getAlpha()) [all...] |
ClipDrawableTest.java | 46 import android.graphics.drawable.ColorDrawable; 79 Drawable mockDrawable = spy(new ColorDrawable(Color.GREEN)); 101 Drawable colorDrawable = new ColorDrawable(Color.GREEN); 102 ClipDrawable clipDrawable = new ClipDrawable(colorDrawable, 107 colorDrawable.setChangingConfigurations(CONTAINED_DRAWABLE_CONFIG); 117 Drawable mockDrawable = spy(new ColorDrawable(Color.GREEN)); 133 Drawable colorDrawable = new ColorDrawable(Color.GREEN); 134 ClipDrawable clipDrawable = new ClipDrawable(colorDrawable, [all...] |
DefaultFocusHighlightTest.java | 34 import android.graphics.drawable.ColorDrawable; 314 static ColorDrawable createColorDrawable() { 315 return new ColorDrawable(A_COLOR); 341 ColorDrawable colorDrawable = DrawableFactory.createColorDrawable(); 343 drawable.addState(stateList[i], colorDrawable);
|
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/ |
CalendarColorSquare.java | 43 Drawable[] colorDrawable = new Drawable[] { 45 setImageDrawable(new ColorStateDrawable(colorDrawable, color));
|
/frameworks/opt/colorpicker/src/com/android/colorpicker/ |
ColorPickerSwatch.java | 61 Drawable[] colorDrawable = new Drawable[] 63 mSwatchImage.setImageDrawable(new ColorStateDrawable(colorDrawable, color));
|
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/ |
DetailsParallaxDrawable.java | 22 import android.graphics.drawable.ColorDrawable; 80 init(context, parallax, coverDrawable, new ColorDrawable(), coverDrawableParallaxTarget); 88 * @param bottomDrawable Bottom drawable, when null it will create a default ColorDrawable. 115 init(context, parallax, coverDrawable, new ColorDrawable(), coverDrawableParallaxTarget); 121 if (bottomDrawable instanceof ColorDrawable) { 122 ColorDrawable colorDrawable = ((ColorDrawable) bottomDrawable); 123 if (colorDrawable.getColor() == Color.TRANSPARENT) { 124 colorDrawable.setColor(getDefaultBackgroundColor(context)) [all...] |
/frameworks/support/leanback/src/main/java/androidx/leanback/app/ |
DetailsSupportFragmentBackgroundController.java | 21 import android.graphics.drawable.ColorDrawable; 40 * {@link ColorDrawable}) below the details overview row. While vertically scrolling rows, the size 54 * * (ColorDrawable) * 141 * and {@link ColorDrawable} as bottom drawable. A vertical parallax movement will be applied 157 ColorDrawable colorDrawable = new ColorDrawable(); 158 enableParallax(coverDrawable, colorDrawable, 175 * if bottomDrawable is not {@link ColorDrawable}; in that case it's app's 197 if (mSolidColor != Color.TRANSPARENT && bottomDrawable instanceof ColorDrawable) { [all...] |
DetailsFragmentBackgroundController.java | 25 import android.graphics.drawable.ColorDrawable; 43 * {@link ColorDrawable}) below the details overview row. While vertically scrolling rows, the size 57 * * (ColorDrawable) * 146 * and {@link ColorDrawable} as bottom drawable. A vertical parallax movement will be applied 162 ColorDrawable colorDrawable = new ColorDrawable(); 163 enableParallax(coverDrawable, colorDrawable, 180 * if bottomDrawable is not {@link ColorDrawable}; in that case it's app's 202 if (mSolidColor != Color.TRANSPARENT && bottomDrawable instanceof ColorDrawable) { [all...] |
/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...] |
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/app/ |
DetailsFragmentTest.java | 32 import android.graphics.drawable.ColorDrawable; 213 ColorDrawable colorDrawable = (ColorDrawable) (drawable.getChildAt(1).getDrawable()); 214 assertEquals(windowWidth, colorDrawable.getBounds().width()); 215 assertEquals(detailsFrameRect.bottom, colorDrawable.getBounds().top); 216 assertEquals(windowHeight, colorDrawable.getBounds().bottom); [all...] |
DetailsSupportFragmentTest.java | 28 import android.graphics.drawable.ColorDrawable; 210 ColorDrawable colorDrawable = (ColorDrawable) (drawable.getChildAt(1).getDrawable()); 211 assertEquals(windowWidth, colorDrawable.getBounds().width()); 212 assertEquals(detailsFrameRect.bottom, colorDrawable.getBounds().top); 213 assertEquals(windowHeight, colorDrawable.getBounds().bottom); [all...] |
/frameworks/base/core/java/com/android/internal/policy/ |
DecorView.java | 55 import android.graphics.drawable.ColorDrawable; [all...] |
/cts/tests/tests/view/src/android/view/cts/ |
ViewTest.java | 56 import android.graphics.drawable.ColorDrawable; 756 ColorDrawable colorDrawable; 760 colorDrawable = (ColorDrawable) view.getBackground(); 761 assertNotNull(colorDrawable); 762 assertEquals(0xFF, colorDrawable.getAlpha()); 765 colorDrawable = (ColorDrawable) view.getBackground(); 766 assertNotNull(colorDrawable); [all...] |