Home
last modified time | relevance | path

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

1234567

/aosp14/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 …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/keyguard/
H A DBouncerKeyguardMessageArea.kt24 import android.content.res.ColorStateList
35 private var mDefaultColorState: ColorStateList? = null
36 private var mNextMessageColorState: ColorStateList? = ColorStateList.valueOf(DEFAULT_COLOR)
47 private fun getColorInStyle(): ColorStateList? {
50 var colorStateList: ColorStateList? = null
63 mNextMessageColorState = mDefaultColorState ?: ColorStateList.valueOf(DEFAULT_COLOR)
69 override fun setNextMessageColor(colorState: ColorStateList?) {
H A DSecurityMessageDisplay.java19 import android.content.res.ColorStateList;
24 default void setNextMessageColor(ColorStateList colorState) {} in setNextMessageColor()
H A DAuthKeyguardMessageArea.kt20 import android.content.res.ColorStateList
31 setTextColor(ColorStateList.valueOf(Color.WHITE))
/aosp14/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()
/aosp14/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()
/aosp14/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()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DAlphaControlledSignalTileView.java21 import android.content.res.ColorStateList;
48 public void setFinalImageTintList(ColorStateList tint) { in setFinalImageTintList()
77 protected void setDrawableTintList(@Nullable ColorStateList tint) { in setDrawableTintList()
83 public void setFinalTintList(ColorStateList tint) { in setFinalTintList()
/aosp14/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;
H A DGradientDrawable.java27 import android.content.res.ColorStateList;
1125 public ColorStateList getColor() {
1134 final ColorStateList solidColors = s.mSolidColors;
1754 ColorStateList startCSL = a.getColorStateList(
1756 ColorStateList centerCSL = a.getColorStateList(
1758 ColorStateList endCSL = a.getColorStateList(
1787 st.mGradientColors = new ColorStateList[3];
1801 st.mGradientColors = new ColorStateList[2];
2016 public ColorStateList mSolidColors;
2017 public ColorStateList mStrokeColors;
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/
H A DColorSchemeTransition.kt23 import android.content.res.ColorStateList
125 val colorList = ColorStateList.valueOf(surfaceColor)
137 val accentColorList = ColorStateList.valueOf(accentPrimary)
149 val colorList = ColorStateList.valueOf(accentSecondary)
169 val accentColorList = ColorStateList.valueOf(seamlessColor)
180 val textColorList = ColorStateList.valueOf(textPrimary)
197 ColorStateList.valueOf(textPrimaryInverse)
214 ColorStateList.valueOf(textTertiary)
/aosp14/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()
/aosp14/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()
/aosp14/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
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/media/dialog/
H A DMediaOutputBaseAdapter.java26 import android.content.res.ColorStateList;
196 ColorStateList.valueOf(mController.getColorSeekbarProgress())); in onBind()
226 ColorStateList.valueOf(showSeekBar ? mController.getColorSeekbarProgress() in setSingleLineLayout()
244 ColorStateList.valueOf(mController.getColorItemContent())); in setSingleLineLayout()
266 mItemLayout.setBackgroundTintList(ColorStateList.valueOf( in setTwoLineLayout()
271 ColorStateList.valueOf(showProgressBar || isFakeActive in setTwoLineLayout()
422 mTitleIcon.setImageTintList(ColorStateList.valueOf(color)); in updateTitleIcon()
424 ColorStateList.valueOf(mController.getColorSeekbarProgress())); in updateTitleIcon()
440 ColorStateList.valueOf(mController.getColorConnectedItemBackground())); in initFakeActiveDevice()
442 ColorStateList.valueOf(mController.getColorConnectedItemBackground())); in initFakeActiveDevice()
[all …]
H A DMediaOutputAdapter.java25 import android.content.res.ColorStateList;
337 ColorStateList(states, colors)); in setCheckBoxColor()
358 ColorStateList.valueOf(mController.getColorItemContent())); in updateEndClickAreaAsSessionEditing()
371 ColorStateList.valueOf(color)); in updateEndClickAreaColor()
385 ColorStateList.valueOf(mController.getColorItemContent())); in updateConnectionFailedStatusIcon()
391 ColorStateList.valueOf(mController.getColorItemContent())); in updateDeviceStatusIcon()
399 ColorStateList.valueOf(mController.getColorItemContent())); in updateProgressBarColor()
409 ColorStateList.valueOf(mController.getColorItemBackground())); in updateEndClickArea()
438 ColorStateList.valueOf(mController.getColorItemContent())); in onBind()
440 ColorStateList.valueOf(mController.getColorItemBackground())); in onBind()
/aosp14/frameworks/base/core/java/android/widget/
H A DAnalogClock.java26 import android.content.res.ColorStateList;
134 ColorStateList dialTintList = a.getColorStateList( in AnalogClock()
156 ColorStateList hourHandTintList = a.getColorStateList( in AnalogClock()
178 ColorStateList minuteHandTintList = a.getColorStateList( in AnalogClock()
197 ColorStateList secondHandTintList = a.getColorStateList( in AnalogClock()
251 public void setDialTintList(@Nullable ColorStateList tint) { in setDialTintList()
265 public ColorStateList getDialTintList() { in getDialTintList()
341 public ColorStateList getHourHandTintList() { in getHourHandTintList()
418 public ColorStateList getMinuteHandTintList() { in getMinuteHandTintList()
501 public ColorStateList getSecondHandTintList() { in getSecondHandTintList()
[all …]
H A DDayPickerPagerAdapter.java24 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()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/bouncer/shared/model/
H A DBouncerShowMessageModel.kt19 import android.content.res.ColorStateList
22 data class BouncerShowMessageModel(val message: String?, val colorStateList: ColorStateList?)
H A DBouncerMessageModel.kt19 import android.content.res.ColorStateList
34 val colorState: ColorStateList? = null,
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/viewholder/
H A DDesktopModeAppControlsWindowDecorationViewHolder.kt4 import android.content.res.ColorStateList
54 closeWindowButton.imageTintList = ColorStateList.valueOf(
56 maximizeWindowButton.imageTintList = ColorStateList.valueOf(
58 expandMenuButton.imageTintList = ColorStateList.valueOf(
/aosp14/frameworks/base/core/tests/coretests/src/android/graphics/
H A 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()
/aosp14/frameworks/base/core/java/android/service/controls/
H A DControl.java25 import android.content.res.ColorStateList;
119 private final @Nullable ColorStateList mCustomColor;
152 @Nullable ColorStateList customColor, in Control()
218 mCustomColor = ColorStateList.CREATOR.createFromParcel(in); in Control()
314 public ColorStateList getCustomColor() { in getCustomColor()
440 private @Nullable ColorStateList mCustomColor;
582 public StatelessBuilder setCustomColor(@Nullable ColorStateList customColor) { in setCustomColor()
639 private @Nullable ColorStateList mCustomColor;
789 public StatefulBuilder setCustomColor(@Nullable ColorStateList customColor) { in setCustomColor()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/ui/
H A DControlViewHolderTest.kt21 import android.content.res.ColorStateList
96 assertThat(cvh.icon.imageTintList).isEqualTo(ColorStateList.valueOf(TINT_COLOR))
101 val customIconTintList = ColorStateList.valueOf(TINT_COLOR)
139 private val COLOR = ColorStateList.valueOf(0xffff00)
/aosp14/frameworks/base/packages/SystemUI/accessibility/accessibilitymenu/src/com/android/systemui/accessibility/accessibilitymenu/utils/
H A DShortcutDrawableUtils.java19 import android.content.res.ColorStateList;
49 private final ColorStateList mRippleColorStateList;
58 mRippleColorStateList = ColorStateList.valueOf(rippleColor); in ShortcutDrawableUtils()

1234567