HomeSort by relevance Sort by last modified time
    Searched refs:ColorDrawable (Results 1 - 25 of 114) sorted by null

1 2 3 4 5

  /packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/mocks/
ContactsMockPackageManager.java 20 import android.graphics.drawable.ColorDrawable;
32 return new ColorDrawable();
37 return new ColorDrawable();
43 return new ColorDrawable();
  /cts/tests/tests/graphics/src/android/graphics/drawable/cts/
ColorDrawableTest.java 24 import android.graphics.drawable.ColorDrawable;
38 new ColorDrawable();
39 new ColorDrawable(0);
40 new ColorDrawable(1);
47 ColorDrawable colorDrawable = new ColorDrawable();
48 assertEquals(0, colorDrawable.getAlpha());
50 colorDrawable.setAlpha(128);
51 assertEquals(0, colorDrawable.getAlpha())
    [all...]
ThemedDrawableTest.java 26 import android.graphics.drawable.ColorDrawable;
67 ColorDrawable d = (ColorDrawable) mContext.getDrawable(R.drawable.colordrawable_theme);
  /frameworks/base/packages/SystemUI/src/com/android/systemui/recent/
ColorDrawableWithDimensions.java 19 import android.graphics.drawable.ColorDrawable;
21 public class ColorDrawableWithDimensions extends ColorDrawable {
  /developers/build/prebuilts/gradle/CustomTransition/Application/src/main/java/com/example/android/customtransition/
ChangeColor.java 24 import android.graphics.drawable.ColorDrawable;
82 // background changes. If the property isn't a ColorDrawable, ignore the target.
83 if (startBackground instanceof ColorDrawable && endBackground instanceof ColorDrawable) {
84 ColorDrawable startColor = (ColorDrawable) startBackground;
85 ColorDrawable endColor = (ColorDrawable) endBackground;
114 // For non-ColorDrawable backgrounds, we just return null, and no animation will take place.
  /developers/samples/android/ui/transition/CustomTransition/Application/src/main/java/com/example/android/customtransition/
ChangeColor.java 24 import android.graphics.drawable.ColorDrawable;
82 // background changes. If the property isn't a ColorDrawable, ignore the target.
83 if (startBackground instanceof ColorDrawable && endBackground instanceof ColorDrawable) {
84 ColorDrawable startColor = (ColorDrawable) startBackground;
85 ColorDrawable endColor = (ColorDrawable) endBackground;
114 // For non-ColorDrawable backgrounds, we just return null, and no animation will take place.
  /development/samples/browseable/CustomTransition/src/com.example.android.customtransition/
ChangeColor.java 24 import android.graphics.drawable.ColorDrawable;
82 // background changes. If the property isn't a ColorDrawable, ignore the target.
83 if (startBackground instanceof ColorDrawable && endBackground instanceof ColorDrawable) {
84 ColorDrawable startColor = (ColorDrawable) startBackground;
85 ColorDrawable endColor = (ColorDrawable) endBackground;
114 // For non-ColorDrawable backgrounds, we just return null, and no animation will take place.
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowColorDrawable.java 4 import android.graphics.drawable.ColorDrawable;
10 @Implements(ColorDrawable.class)
26 ShadowColorDrawable that = shadowOf((ColorDrawable)o);
  /development/samples/ApiDemos/src/com/example/android/apis/view/
CheckableFrameLayout.java 20 import android.graphics.drawable.ColorDrawable;
38 setBackgroundDrawable(checked ? new ColorDrawable(0xff0000a0) : null);
  /development/samples/Support13Demos/src/com/example/android/supportv13/view/
CheckableFrameLayout.java 20 import android.graphics.drawable.ColorDrawable;
38 setBackgroundDrawable(checked ? new ColorDrawable(0xff0000a0) : null);
  /development/samples/Support4Demos/src/com/example/android/supportv4/view/
CheckableFrameLayout.java 20 import android.graphics.drawable.ColorDrawable;
38 setBackgroundDrawable(checked ? new ColorDrawable(0xff0000a0) : null);
  /frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DatePickerActivity.java 20 import android.graphics.drawable.ColorDrawable;
36 getWindow().setBackgroundDrawable(new ColorDrawable(0xffffffff));
  /frameworks/base/core/java/android/transition/
Recolor.java 22 import android.graphics.drawable.ColorDrawable;
33 * {@link ColorDrawable}, as well as the
79 if (startBackground instanceof ColorDrawable && endBackground instanceof ColorDrawable) {
80 ColorDrawable startColor = (ColorDrawable) startBackground;
81 ColorDrawable endColor = (ColorDrawable) endBackground;
  /packages/apps/Settings/src/com/android/settings/accessibility/
ColorPreference.java 21 import android.graphics.drawable.ColorDrawable;
36 private ColorDrawable mPreviewColor;
95 mPreviewColor = new ColorDrawable(argb);
125 if (foreground instanceof ColorDrawable) {
126 ((ColorDrawable) foreground).setColor(argb);
128 swatch.setImageDrawable(new ColorDrawable(argb));
  /frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
RowContainerView.java 18 import android.graphics.drawable.ColorDrawable;
81 if (mForeground instanceof ColorDrawable) {
82 ((ColorDrawable) mForeground.mutate()).setColor(color);
85 setForeground(new ColorDrawable(color));
  /development/samples/ApiDemos/src/com/example/android/apis/animation/
ActivityTransitionDetails.java 23 import android.graphics.drawable.ColorDrawable;
45 getWindow().setBackgroundDrawable(new ColorDrawable(randomColor()));
  /frameworks/base/graphics/java/android/graphics/drawable/
ColorDrawable.java 38 * Note that a ColorDrawable ignores the ColorFilter.
44 public class ColorDrawable extends Drawable {
54 * Creates a new black ColorDrawable.
56 public ColorDrawable() {
61 * Creates a new ColorDrawable with the specified color.
65 public ColorDrawable(int color) {
233 final TypedArray a = obtainAttributes(r, theme, attrs, R.styleable.ColorDrawable);
268 final TypedArray a = t.resolveAttributes(state.mThemeAttrs, R.styleable.ColorDrawable);
307 return new ColorDrawable(this);
312 return new ColorDrawable(this)
    [all...]
  /packages/apps/Settings/src/com/android/settings/fuelgauge/
PowerGaugePreference.java 20 import android.graphics.drawable.ColorDrawable;
44 setIcon(icon != null ? icon : new ColorDrawable(0));
  /packages/apps/Settings/src/com/android/settings/applications/
ProcessStatsPreference.java 20 import android.graphics.drawable.ColorDrawable;
56 setIcon(icon != null ? icon : new ColorDrawable(0));
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/
BaseDialogFragment.java 24 import android.graphics.drawable.ColorDrawable;
68 public ColorDrawable mBgDrawable = new ColorDrawable();
253 if (icon.getBackground() instanceof ColorDrawable) {
254 ColorDrawable d = (ColorDrawable) icon.getBackground();
323 public ColorDrawable getBackgroundDrawable() {
327 public void setBackgroundDrawable(ColorDrawable drawable) {
  /frameworks/base/core/tests/coretests/src/com/android/internal/widget/
SizeAdaptiveLayoutTest.java 23 import android.graphics.drawable.ColorDrawable;
423 assertTrue("ModestyPanel should have a ColorDrawable background",
424 panel.getBackground() instanceof ColorDrawable);
425 ColorDrawable panelColor = (ColorDrawable) panel.getBackground();
426 ColorDrawable salColor = (ColorDrawable) mSizeAdaptiveLayout.getBackground();
435 assertEquals("ModestyPanel should have a ColorDrawable background" ,
436 panel.getBackground().getClass(), ColorDrawable.class);
437 ColorDrawable panelColor = (ColorDrawable) panel.getBackground()
    [all...]
  /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...]
  /developers/build/prebuilts/gradle/GridViewPager/Wearable/src/main/java/com/example/android/wearable/gridviewpager/
SampleGridPagerAdapter.java 24 import android.graphics.drawable.ColorDrawable;
50 private ColorDrawable mDefaultBg;
52 private ColorDrawable mClearBg;
70 mDefaultBg = new ColorDrawable(R.color.dark_grey);
71 mClearBg = new ColorDrawable(android.R.color.transparent);
  /developers/samples/android/wearable/wear/GridViewPager/Wearable/src/main/java/com/example/android/wearable/gridviewpager/
SampleGridPagerAdapter.java 24 import android.graphics.drawable.ColorDrawable;
50 private ColorDrawable mDefaultBg;
52 private ColorDrawable mClearBg;
70 mDefaultBg = new ColorDrawable(R.color.dark_grey);
71 mClearBg = new ColorDrawable(android.R.color.transparent);
  /development/samples/browseable/GridViewPager/Wearable/src/com.example.android.wearable.gridviewpager/
SampleGridPagerAdapter.java 24 import android.graphics.drawable.ColorDrawable;
50 private ColorDrawable mDefaultBg;
52 private ColorDrawable mClearBg;
70 mDefaultBg = new ColorDrawable(R.color.dark_grey);
71 mClearBg = new ColorDrawable(android.R.color.transparent);

Completed in 2115 milliseconds

1 2 3 4 5