Home
last modified time | relevance | path

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

12345678

/frameworks/base/core/java/android/content/res/
DColorStateList.java141 public class ColorStateList extends ComplexColor implements Parcelable { class
148 private static final SparseArray<WeakReference<ColorStateList>> sCache = new SparseArray<>();
166 private ColorStateList() { in ColorStateList() method in ColorStateList
174 public ColorStateList(int[][] states, @ColorInt int[] colors) { in ColorStateList() method in ColorStateList
185 public static ColorStateList valueOf(@ColorInt int color) { in valueOf()
189 final ColorStateList cached = sCache.valueAt(index).get(); in valueOf()
206 final ColorStateList csl = new ColorStateList(EMPTY, new int[] { color }); in valueOf()
221 private ColorStateList(ColorStateList orig) { in ColorStateList() method in ColorStateList
245 public static ColorStateList createFromXml(Resources r, XmlPullParser parser) in createFromXml()
261 public static ColorStateList createFromXml(@NonNull Resources r, @NonNull XmlPullParser parser, in createFromXml()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DBouncerKeyguardMessageArea.kt24 import android.content.res.ColorStateList in <lambda>()
35 private var mDefaultColorState: ColorStateList? = null in <lambda>()
36 private var mNextMessageColorState: ColorStateList? = ColorStateList.valueOf(DEFAULT_COLOR) in <lambda>()
47 private fun getColorInStyle(): ColorStateList? { in <lambda>()
50 var colorStateList: ColorStateList? = null in <lambda>()
63 mNextMessageColorState = mDefaultColorState ?: ColorStateList.valueOf(DEFAULT_COLOR) in <lambda>()
69 override fun setNextMessageColor(colorState: ColorStateList?) { in <lambda>()
DSecurityMessageDisplay.java19 import android.content.res.ColorStateList;
24 default void setNextMessageColor(ColorStateList colorState) {} in setNextMessageColor()
DAuthKeyguardMessageArea.kt20 import android.content.res.ColorStateList
31 setTextColor(ColorStateList.valueOf(Color.WHITE)) in updateTextColor()
/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/partner/
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()
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()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
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()
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/template/
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()
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()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/
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 …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DDrawableDump.kt19 import android.content.res.ColorStateList in <lambda>()
40 private fun getSolidColors(drawable: Drawable?): ColorStateList? { in <lambda>()
43 return drawable.getStateField<ColorStateList>("mSolidColors") in <lambda>()
68 drawable.getStateField<ColorStateList>("mTint", fieldRequired = false)?.let { in StringBuilder()
87 drawable.getStateField<ColorStateList>("mColor")?.let { in StringBuilder()
111 drawable.getStateField<ColorStateList>("mSolidColors")?.let { in StringBuilder()
115 drawable.getStateField<ColorStateList>("mStrokeColors")?.let { in StringBuilder()
153 private fun Appendable.appendColors(colorStateList: ColorStateList?) { in Appendable()
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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardIndication.java21 import android.content.res.ColorStateList;
38 private final ColorStateList mTextColor;
50 ColorStateList textColor, in KeyguardIndication()
75 public @NonNull ColorStateList getTextColor() { in getTextColor()
137 private ColorStateList mTextColor;
155 public Builder setTextColor(@NonNull ColorStateList textColor) { in setTextColor()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/template/
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()
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()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/
DMaximizeButtonView.kt22 import android.content.res.ColorStateList
107 iconForegroundColor: ColorStateList? = null, in setAnimationTints()
117 progressBar.progressTintList = ColorStateList.valueOf(baseForegroundColor) in setAnimationTints()
119 progressBar.progressBackgroundTintList = ColorStateList.valueOf(Color.TRANSPARENT) in setAnimationTints()
122 progressBar.progressTintList = ColorStateList.valueOf( in setAnimationTints()
127 progressBar.progressTintList = ColorStateList.valueOf( in setAnimationTints()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/animation/
DColorSchemeTransition.kt23 import android.content.res.ColorStateList in <lambda>()
127 val colorList = ColorStateList.valueOf(surfaceColor) in surfaceColor()
138 val accentColorList = ColorStateList.valueOf(accentPrimary) in accentPrimary()
151 val colorList = ColorStateList.valueOf(accentSecondary) in accentSecondary()
171 val accentColorList = ColorStateList.valueOf(seamlessColor) in seamlessColor()
182 val textColorList = ColorStateList.valueOf(textPrimary) in textPrimary()
199 ColorStateList.valueOf(textPrimaryInverse) in textPrimaryInverse()
216 ColorStateList.valueOf(textTertiary) in textTertiary()
/frameworks/base/graphics/java/android/graphics/drawable/
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;
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/
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 …]
/frameworks/base/apct-tests/perftests/core/src/android/widget/
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
/frameworks/opt/setupwizard/library/gingerbread/src/com/android/setupwizardlib/view/
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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bouncer/shared/model/
DBouncerShowMessageModel.kt19 import android.content.res.ColorStateList
22 data class BouncerShowMessageModel(val message: String?, val colorStateList: ColorStateList?)
DBouncerMessageModel.kt19 import android.content.res.ColorStateList
37 val colorState: ColorStateList? = null,
/frameworks/base/core/java/android/text/style/
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()
/frameworks/base/core/tests/coretests/src/android/graphics/
DColorStateListTest.java19 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()

12345678