/frameworks/base/core/java/android/content/res/ |
D | ColorStateList.java | 125 public class ColorStateList extends ComplexColor implements Parcelable { class 132 private static final SparseArray<WeakReference<ColorStateList>> sCache = new SparseArray<>(); 150 private ColorStateList() { in ColorStateList() method in ColorStateList 158 public ColorStateList(int[][] states, @ColorInt int[] colors) { in ColorStateList() method in ColorStateList 169 public static ColorStateList valueOf(@ColorInt int color) { in valueOf() 173 final ColorStateList cached = sCache.valueAt(index).get(); in valueOf() 190 final ColorStateList csl = new ColorStateList(EMPTY, new int[] { color }); in valueOf() 205 private ColorStateList(ColorStateList orig) { in ColorStateList() method in ColorStateList 229 public static ColorStateList createFromXml(Resources r, XmlPullParser parser) in createFromXml() 245 public static ColorStateList createFromXml(@NonNull Resources r, @NonNull XmlPullParser parser, in createFromXml() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardMessageArea.java | 22 import android.content.res.ColorStateList; 60 private ColorStateList mDefaultColorState; 62 private ColorStateList mNextMessageColorState = ColorStateList.valueOf(DEFAULT_COLOR); 117 public void setNextMessageColor(ColorStateList colorState) { in setNextMessageColor() 126 ColorStateList newTextColors = ColorStateList.valueOf(array.getColor(0, Color.RED)); in onThemeChanged() 202 ColorStateList colorState = mDefaultColorState; in update() 205 mNextMessageColorState = ColorStateList.valueOf(DEFAULT_COLOR); in update()
|
D | SecurityMessageDisplay.java | 19 import android.content.res.ColorStateList; 23 void setNextMessageColor(ColorStateList colorState); in setNextMessageColor()
|
D | KeyguardSecurityView.java | 18 import android.content.res.ColorStateList; 112 void showMessage(CharSequence message, ColorStateList colorState); in showMessage()
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/ |
D | GlifLayout.java | 21 import android.content.res.ColorStateList; 70 private ColorStateList primaryColor; 75 @Nullable private ColorStateList backgroundBaseColor; 122 ColorStateList primaryColor = a.getColorStateList(R.styleable.SuwGlifLayout_suwColorPrimary); in init() 127 ColorStateList backgroundColor = in init() 218 public void setHeaderColor(ColorStateList color) { in setHeaderColor() 223 public ColorStateList getHeaderColor() { in getHeaderColor() 240 public void setPrimaryColor(@NonNull ColorStateList color) { in setPrimaryColor() 246 public ColorStateList getPrimaryColor() { in getPrimaryColor() 258 public void setBackgroundBaseColor(@Nullable ColorStateList color) { in setBackgroundBaseColor() [all …]
|
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/template/ |
D | ColoredHeaderMixinTest.java | 25 import android.content.res.ColorStateList; 62 mixin.setColor(ColorStateList.valueOf(Color.MAGENTA)); in testSetColor() 64 assertEquals(ColorStateList.valueOf(Color.MAGENTA), mHeaderTextView.getTextColors()); in testSetColor() 70 mHeaderTextView.setTextColor(ColorStateList.valueOf(Color.GREEN)); in testGetColor() 72 assertEquals(ColorStateList.valueOf(Color.GREEN), mixin.getColor()); in testGetColor() 84 assertEquals(ColorStateList.valueOf(Color.RED), mHeaderTextView.getTextColors()); in testSetColorFromXml()
|
D | ProgressBarMixinTest.java | 27 import android.content.res.ColorStateList; 104 mixin.setColor(ColorStateList.valueOf(Color.MAGENTA)); in testSetColorBeforeSetShown() 111 assertEquals(ColorStateList.valueOf(Color.MAGENTA), progressBar.getIndeterminateTintList()); in testSetColorBeforeSetShown() 113 ColorStateList.valueOf(Color.MAGENTA), progressBar.getProgressBackgroundTintList()); in testSetColorBeforeSetShown() 123 mixin.setColor(ColorStateList.valueOf(Color.YELLOW)); in testSetColorAfterSetShown() 128 assertEquals(ColorStateList.valueOf(Color.YELLOW), progressBar.getIndeterminateTintList()); in testSetColorAfterSetShown() 130 ColorStateList.valueOf(Color.YELLOW), progressBar.getProgressBackgroundTintList()); in testSetColorAfterSetShown()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/ |
D | AlphaControlledSignalTileViewTest.java | 29 import android.content.res.ColorStateList; 64 ColorStateList list = ColorStateList.valueOf(0xffffff); in testSlashDrawable_doesNotSetTintList() 73 ColorStateList list = ColorStateList.valueOf(0xffffff); in testSlashDrawable_setsFinalTintList()
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/template/ |
D | ColoredHeaderMixin.java | 19 import android.content.res.ColorStateList; 43 final ColorStateList headerColor = in ColoredHeaderMixin() 58 public void setColor(ColorStateList color) { in setColor() 66 public ColorStateList getColor() { in getColor()
|
D | ProgressBarMixin.java | 19 import android.content.res.ColorStateList; 34 @Nullable private ColorStateList color; 100 public void setColor(@Nullable ColorStateList color) { in setColor() 124 public ColorStateList getColor() { in getColor()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | AlphaControlledSignalTileView.java | 20 import android.content.res.ColorStateList; 47 public void setFinalImageTintList(ColorStateList tint) { in setFinalImageTintList() 76 protected void setDrawableTintList(ColorStateList tint) { in setDrawableTintList() 82 public void setFinalTintList(ColorStateList tint) { in setFinalTintList()
|
D | QSCarrier.java | 20 import android.content.res.ColorStateList; 40 private ColorStateList mColorForegroundStateList; 70 mColorForegroundStateList = ColorStateList.valueOf(colorForeground); in onFinishInflate() 78 ColorStateList colorStateList = ColorStateList.valueOf( in updateState()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | ColorStateListDrawable.java | 22 import android.content.res.ColorStateList; 45 public ColorStateListDrawable(@NonNull ColorStateList colorStateList) { in ColorStateListDrawable() 111 public void setTintList(@Nullable ColorStateList tint) { in setTintList() 200 public @NonNull ColorStateList getColorStateList() { in getColorStateList() 202 return ColorStateList.valueOf(mColorDrawable.getColor()); in getColorStateList() 237 public void setColorStateList(@NonNull ColorStateList colorStateList) { in setColorStateList() 243 ColorStateList mColor = null; 244 ColorStateList mTint = null;
|
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/ |
D | GlifLayoutTest.java | 24 import android.content.res.ColorStateList; 100 layout.setPrimaryColor(ColorStateList.valueOf(Color.RED)); in testSetPrimaryColor() 103 .isEqualTo(ColorStateList.valueOf(Color.RED)); in testSetPrimaryColor() 109 .isEqualTo(ColorStateList.valueOf(Color.RED)); in testSetPrimaryColor() 112 .isEqualTo(ColorStateList.valueOf(Color.RED)); in testSetPrimaryColor() 121 layout.setPrimaryColor(ColorStateList.valueOf(Color.RED)); in testSetPrimaryColorTablet() 124 .isEqualTo(ColorStateList.valueOf(Color.RED)); in testSetPrimaryColorTablet() 130 .isEqualTo(ColorStateList.valueOf(Color.RED)); in testSetPrimaryColorTablet() 133 .isEqualTo(ColorStateList.valueOf(Color.RED)); in testSetPrimaryColorTablet() 142 layout.setPrimaryColor(ColorStateList.valueOf(Color.BLUE)); in testSetBackgroundBaseColor() [all …]
|
/frameworks/base/core/java/android/text/style/ |
D | TextAppearanceSpan.java | 21 import android.content.res.ColorStateList; 65 private final ColorStateList mTextColor; 66 private final ColorStateList mTextColorLink; 103 ColorStateList textColor; in TextAppearanceSpan() 210 ColorStateList color, ColorStateList linkColor) { in TextAppearanceSpan() 240 mTextColor = ColorStateList.CREATOR.createFromParcel(src); in TextAppearanceSpan() 245 mTextColorLink = ColorStateList.CREATOR.createFromParcel(src); in TextAppearanceSpan() 333 public ColorStateList getTextColor() { in getTextColor() 341 public ColorStateList getLinkTextColor() { in getLinkTextColor()
|
/frameworks/base/apct-tests/perftests/core/src/android/widget/ |
D | TextViewOnMeasurePerfTest.java | 24 import android.content.res.ColorStateList; 68 final ColorStateList[] COLORS = { 69 ColorStateList.valueOf(0xFFFF0000), // RED 70 ColorStateList.valueOf(0xFF00FF00), // GREEN 71 ColorStateList.valueOf(0xFF0000FF), // BLUE
|
/frameworks/opt/setupwizard/library/gingerbread/src/com/android/setupwizardlib/view/ |
D | NavigationBarButton.java | 21 import android.content.res.ColorStateList; 100 public void setTextColor(ColorStateList colors) { in setTextColor() 106 final ColorStateList textColors = getTextColors(); in tintDrawables() 143 private ColorStateList tintList = null; 161 public void setTintListCompat(ColorStateList colors) { in setTintListCompat()
|
/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | ColorStateListTest.java | 19 import android.content.res.ColorStateList; 45 ColorStateList colorStateList = mResources.getColorStateList(R.color.color1); in testStateIsInList() 53 ColorStateList colorStateList = mResources.getColorStateList(R.color.color1); in testEmptyState()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | EmphasizedNotificationButton.java | 20 import android.content.res.ColorStateList; 65 public void setRippleColor(ColorStateList color) { in setRippleColor() 71 public void setButtonBackground(ColorStateList color) { in setButtonBackground()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | StatusBarMobileView.java | 26 import android.content.res.ColorStateList; 213 ColorStateList.valueOf(mDualToneHandler.getSingleColor(intensity))); in onDarkChanged() 214 ColorStateList color = ColorStateList.valueOf(getTint(area, this, tint)); in onDarkChanged() 234 ColorStateList list = ColorStateList.valueOf(color); in setStaticDrawableColor() 239 ColorStateList.valueOf(mDualToneHandler.getSingleColor(intensity))); in setStaticDrawableColor()
|
D | StatusBarWifiView.java | 26 import android.content.res.ColorStateList; 93 ColorStateList list = ColorStateList.valueOf(color); in setStaticDrawableColor() 240 ColorStateList color = ColorStateList.valueOf(areaTint); in onDarkChanged()
|
/frameworks/base/core/java/android/widget/ |
D | DayPickerPagerAdapter.java | 24 import android.content.res.ColorStateList; 57 private ColorStateList mCalendarTextColor; 58 private ColorStateList mDaySelectorColor; 59 private ColorStateList mDayHighlightColor; 160 void setCalendarTextColor(ColorStateList calendarTextColor) { in setCalendarTextColor() 165 void setDaySelectorColor(ColorStateList selectorColor) { in setDaySelectorColor()
|
/frameworks/layoutlib/bridge/src/android/content/res/ |
D | ComplexColor_Accessor.java | 41 public static ColorStateList createColorStateListFromXmlInner(@NonNull Resources r, in createColorStateListFromXmlInner() 44 return ColorStateList.createFromXmlInner(r, parser, attrs, theme); in createColorStateListFromXmlInner()
|
/frameworks/base/apct-tests/perftests/core/src/android/text/ |
D | TextPerfUtils.java | 19 import android.content.res.ColorStateList; 47 private static final ColorStateList TEXT_COLOR = ColorStateList.valueOf(0x00000000);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/ |
D | TileColorPicker.java | 19 import android.content.res.ColorStateList; 33 private ColorStateList mColorStateList;
|