Home
last modified time | relevance | path

Searched refs:ColorStateList (Results 1 – 25 of 221) sorted by relevance

123456789

/aosp12/frameworks/base/core/java/android/content/res/
H A DColorStateList.java166 private ColorStateList() { in ColorStateList() method in ColorStateList
206 final ColorStateList csl = new ColorStateList(EMPTY, new int[] { color }); in valueOf()
221 private ColorStateList(ColorStateList orig) { in ColorStateList() method in ColorStateList
295 final ColorStateList colorStateList = new ColorStateList(); in createFromXmlInner()
308 public ColorStateList withAlpha(int alpha) { in withAlpha()
326 public ColorStateList withLStar(float lStar) { in withLStar()
526 public ColorStateList obtainForTheme(Theme t) { in obtainForTheme()
531 final ColorStateList clone = new ColorStateList(this); in obtainForTheme()
737 private final ColorStateList mSrc;
750 public ColorStateList newInstance() { in newInstance()
[all …]
/aosp12/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/partner/
H A DPartnerConfigHelperTest.java23 import android.content.res.ColorStateList;
93 ColorStateList grayColorStateList = ColorStateList.valueOf(android.R.color.darker_gray); in getColor_shouldReturnExpectedColor()
108 ColorStateList grayColorStateList = ColorStateList.valueOf(android.R.color.darker_gray); in getColor_whenCacheHasColorStateList_shouldReturnExpectedColor()
127 ColorStateList grayColorStateList = ColorStateList.valueOf(android.R.color.darker_gray); in getColorStateList_shouldReturnExpectedColorStateList()
133 ColorStateList colorStateList = helper.getColorStateList( in getColorStateList_shouldReturnExpectedColorStateList()
146 ColorStateList grayColorStateList = ColorStateList.valueOf(android.R.color.darker_gray); in getColorStateList_whenCacheHasColorValue_shouldReturnExpectedColorStateList()
156 ColorStateList colorStateList = helper.getColorStateList( in getColorStateList_whenCacheHasColorValue_shouldReturnExpectedColorStateList()
H A DExternalResources.java25 import android.content.res.ColorStateList;
168 public ColorStateList getColorStateList(int id) throws NotFoundException { in getColorStateList()
169 return (ColorStateList) get(id, ResType.COLOR_STATE_LIST); in getColorStateList()
174 public ColorStateList getColorStateList(int id, @Nullable Theme theme) { in getColorStateList()
175 return (ColorStateList) get(id, ResType.COLOR_STATE_LIST); in getColorStateList()
178 public void putColorStateList(String name, ColorStateList value) { in putColorStateList()
256 return ColorStateList.valueOf((Integer) override.getData()); in get()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/keyguard/
H A DKeyguardMessageArea.java20 import android.content.res.ColorStateList;
56 private ColorStateList mDefaultColorState;
58 private ColorStateList mNextMessageColorState = ColorStateList.valueOf(DEFAULT_COLOR);
104 public void setNextMessageColor(ColorStateList colorState) { in setNextMessageColor()
112 ColorStateList newTextColors = ColorStateList.valueOf(array.getColor(0, Color.RED)); in onThemeChanged()
187 ColorStateList colorState = mDefaultColorState; in update()
190 mNextMessageColorState = ColorStateList.valueOf(DEFAULT_COLOR); in update()
194 colorState = ColorStateList.valueOf(Color.WHITE); in update()
/aosp12/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/
H A DGlifLayout.java21 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 …]
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
H A DKeyguardIndicationTest.java23 import android.content.res.ColorStateList;
45 .setTextColor(ColorStateList.valueOf(WHITE)) in testCannotCreateIndicationWithoutMessageOrIcon()
60 .setTextColor(ColorStateList.valueOf(WHITE)) in testCannotCreateIndicationWithEmptyMessage()
69 .setTextColor(ColorStateList.valueOf(WHITE)) in testCreateIndicationWithMessage()
78 .setTextColor(ColorStateList.valueOf(WHITE)) in testCreateIndicationWithIcon()
89 .setTextColor(ColorStateList.valueOf(WHITE)) in testCreateIndicationWithMessageAndIcon()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
H A DKeyguardIndication.java21 import android.content.res.ColorStateList;
36 private final ColorStateList mTextColor;
48 ColorStateList textColor, in KeyguardIndication()
71 public @NonNull ColorStateList getTextColor() { in getTextColor()
123 private ColorStateList mTextColor;
140 public Builder setTextColor(@NonNull ColorStateList textColor) { in setTextColor()
/aosp12/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/template/
H A DColoredHeaderMixinTest.java25 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()
H A DProgressBarMixinTest.java27 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()
/aosp12/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/
H A DGlifLayoutTest.java24 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 …]
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
H A DAlphaControlledSignalTileViewTest.java29 import android.content.res.ColorStateList;
64 ColorStateList list = ColorStateList.valueOf(0xffffff); in testSlashDrawable_doesNotSetTintList()
73 ColorStateList list = ColorStateList.valueOf(0xffffff); in testSlashDrawable_setsFinalTintList()
/aosp12/frameworks/base/graphics/java/android/graphics/drawable/
H A DColorStateListDrawable.java22 import android.content.res.ColorStateList;
45 public ColorStateListDrawable(@NonNull ColorStateList colorStateList) { in ColorStateListDrawable()
117 public void setTintList(@Nullable ColorStateList tint) { in setTintList()
206 public @NonNull ColorStateList getColorStateList() { in getColorStateList()
208 return ColorStateList.valueOf(mColorDrawable.getColor()); in getColorStateList()
243 public void setColorStateList(@NonNull ColorStateList colorStateList) { in setColorStateList()
249 ColorStateList mColor = null;
250 ColorStateList mTint = null;
/aosp12/packages/apps/Messaging/src/com/android/messaging/util/
H A DSwitchCompatUtils.java20 import android.content.res.ColorStateList;
54 final ColorStateList colorStateList, final PorterDuff.Mode mode) { in getColorTintedDrawable()
66 private static ColorStateList getSwitchThumbColorStateList(final Context context, in getSwitchThumbColorStateList()
83 return new ColorStateList(states, colors); in getSwitchThumbColorStateList()
86 private static ColorStateList getSwitchTrackColorStateList(final Context context, in getSwitchTrackColorStateList()
102 return new ColorStateList(states, colors); in getSwitchTrackColorStateList()
H A DTintDrawableWrapper.java19 import android.content.res.ColorStateList;
33 private final ColorStateList mTintStateList;
36 public TintDrawableWrapper(Drawable drawable, ColorStateList tintStateList) { in TintDrawableWrapper()
39 public TintDrawableWrapper(Drawable drawable, ColorStateList tintStateList, in TintDrawableWrapper()
/aosp12/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/template/
H A DColoredHeaderMixin.java19 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()
H A DProgressBarMixin.java19 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()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DAlphaControlledSignalTileView.java20 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()
/aosp12/frameworks/base/core/java/android/text/style/
H A DTextAppearanceSpan.java21 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()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
H A DAlphaTintDrawableWrapper.java19 import android.content.res.ColorStateList;
52 private ColorStateList mTint;
113 public void setTintList(ColorStateList tint) { in setTintList()
135 private ColorStateList mColorStateList;
141 ColorStateList colorStateList in AlphaTintState()
/aosp12/frameworks/opt/setupwizard/library/gingerbread/src/com/android/setupwizardlib/view/
H A DNavigationBarButton.java21 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()
/aosp12/frameworks/base/apct-tests/perftests/core/src/android/widget/
H A DTextViewOnMeasurePerfTest.java24 import android.content.res.ColorStateList;
68 final ColorStateList[] COLORS = {
69 ColorStateList.valueOf(0xFFFF0000), // RED
70 ColorStateList.valueOf(0xFF00FF00), // GREEN
71 ColorStateList.valueOf(0xFF0000FF), // BLUE
/aosp12/frameworks/base/core/java/android/widget/
H A DAnalogClock.java27 import android.content.res.ColorStateList;
128 ColorStateList dialTintList = a.getColorStateList( in AnalogClock()
150 ColorStateList hourHandTintList = a.getColorStateList( in AnalogClock()
172 ColorStateList minuteHandTintList = a.getColorStateList( in AnalogClock()
191 ColorStateList secondHandTintList = a.getColorStateList( in AnalogClock()
245 public void setDialTintList(@Nullable ColorStateList tint) { in setDialTintList()
259 public ColorStateList getDialTintList() { in getDialTintList()
335 public ColorStateList getHourHandTintList() { in getHourHandTintList()
412 public ColorStateList getMinuteHandTintList() { in getMinuteHandTintList()
495 public ColorStateList getSecondHandTintList() { in getSecondHandTintList()
[all …]
/aosp12/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/util/
H A DThemes.java19 import android.content.res.ColorStateList;
48 public static ColorStateList getAttrColorStateList(Context context, int attr) { in getAttrColorStateList()
57 public static ColorStateList getAttrColorStateList(Context context, @StyleRes int styleResId, in getAttrColorStateList()
60 ColorStateList colorStateList = ta.getColorStateList(0); in getAttrColorStateList()
/aosp12/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/
H A DIconUtil.java20 import android.content.res.ColorStateList;
45 ColorStateList colorStateList = ColorStateList in getCompoundIcon()
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/
H A DWidgetsListDrawableFactory.java26 import android.content.res.ColorStateList;
41 private final ColorStateList mSurfaceColor;
42 private final ColorStateList mRippleColor;
49 mRippleColor = ColorStateList.valueOf( in WidgetsListDrawableFactory()

123456789