Home
last modified time | relevance | path

Searched refs:textColor (Results 1 – 25 of 34) sorted by relevance

12

/frameworks/rs/tests/java_api/RSUnitTests/gui/com/android/rs/unittest/
DRSListActivity.java48 int textColor = Color.BLACK; in onCreate()
55 textColor = Color.GREEN; in onCreate()
59 textColor = Color.RED; in onCreate()
64 textView.setTextColor(textColor); in onCreate()
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
DAppCompatTextHelper.java116 ColorStateList textColor = null; in loadFromAttributes() local
133 textColor = a.getColorStateList(R.styleable.TextAppearance_android_textColor); in loadFromAttributes()
158 textColor = a.getColorStateList(R.styleable.TextAppearance_android_textColor); in loadFromAttributes()
173 if (textColor != null) { in loadFromAttributes()
174 mView.setTextColor(textColor); in loadFromAttributes()
319 final ColorStateList textColor in onSetTextAppearance() local
321 if (textColor != null) { in onSetTextAppearance()
322 mView.setTextColor(textColor); in onSetTextAppearance()
DThemeUtils.java42 public static ColorStateList createDisabledStateList(int textColor, int disabledTextColor) { in createDisabledStateList() argument
56 colors[i] = textColor; in createDisabledStateList()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DCustomBar.java207 ResourceValue textColor = res.findItemInStyle(textStyle, "textColor", in setStyle() local
209 textColor = res.resolveResValue(textColor); in setStyle()
210 if (textColor != null) { in setStyle()
212 textColor, bridgeContext, null); in setStyle()
/frameworks/base/core/java/android/text/style/
DTextAppearanceSpan.java59 ColorStateList textColor; in TextAppearanceSpan() local
65 textColor = a.getColorStateList(com.android.internal.R.styleable. in TextAppearanceSpan()
113 textColor = a.getColorStateList(colorList); in TextAppearanceSpan()
117 mTextColor = textColor; in TextAppearanceSpan()
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/
DRadialTextsView.java148 int textColor; in setTheme() local
150 textColor = res.getColor(android.R.color.white); in setTheme()
152 textColor = res.getColor(R.color.numbers_text_color); in setTheme()
154 mPaint.setColor(textColor); in setTheme()
/frameworks/support/viewpager/src/main/java/androidx/viewpager/widget/
DPagerTitleStrip.java76 android.R.attr.textColor,
131 final int textColor = a.getColor(2, 0); in PagerTitleStrip() local
132 mPrevText.setTextColor(textColor); in PagerTitleStrip()
133 mCurrText.setTextColor(textColor); in PagerTitleStrip()
134 mNextText.setTextColor(textColor); in PagerTitleStrip()
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/
DAssistVisualizer.java41 final int textColor; field in AssistVisualizer.TextEntry
56 this.textColor = node.getTextColor(); in TextEntry()
121 + " size=" + te.textSize + " color=#" + Integer.toHexString(te.textColor) in logText()
/frameworks/base/core/java/android/widget/
DSimpleMonthView.java222 final ColorStateList textColor = ta.getColorStateList(R.styleable.TextAppearance_textColor); in applyTextAppearance() local
223 if (textColor != null) { in applyTextAppearance()
224 final int enabledColor = textColor.getColorForState(ENABLED_STATE_SET, 0); in applyTextAppearance()
230 return textColor; in applyTextAppearance()
253 final ColorStateList textColor = applyTextAppearance(mDayPaint, resId); in setDayTextAppearance() local
254 if (textColor != null) { in setDayTextAppearance()
255 mDayTextColor = textColor; in setDayTextAppearance()
DRemoteViews.java264 public void overrideTextColors(int textColor) { in overrideTextColors() argument
265 addAction(new OverrideTextColorsAction(textColor)); in overrideTextColors()
2135 private final int textColor;
2137 public OverrideTextColorsAction(int textColor) {
2138 this.textColor = textColor;
2142 textColor = parcel.readInt();
2146 dest.writeInt(textColor);
2159 textView.setTextColor(textColor);
DDayPickerView.java45 private static final int[] ATTRS_TEXT_COLOR = new int[] { R.attr.textColor };
DRadialTimePickerView.java893 ColorStateList textColor, String[] texts, float[] textX, float[] textY, Paint paint, in drawTextElements() argument
911 final int color = textColor.getColorForState(StateSet.get(stateMask), 0); in drawTextElements()
DDatePickerCalendarDelegate.java60 com.android.internal.R.attr.textColor};
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSmartReplyView.java579 int textColor = NotificationColorUtil.ensureTextContrast( in setBackgroundTintColor() local
589 setColors(child, backgroundColor, strokeColor, textColor, rippleColor); in setBackgroundTintColor()
593 private void setColors(Button button, int backgroundColor, int strokeColor, int textColor, in setColors() argument
612 button.setTextColor(textColor); in setColors()
/frameworks/base/core/java/com/android/internal/widget/
DMessagingMessage.java142 default void setColor(int textColor) {} in setColor() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardStatusBarView.java437 @ColorInt int textColor = Utils.getColorAttr(mContext, R.attr.wallpaperTextColor); in onThemeChanged() local
438 @ColorInt int iconColor = Utils.getDefaultColor(mContext, Color.luminance(textColor) < 0.5 ? in onThemeChanged()
441 float intensity = textColor == Color.WHITE ? 0 : 1; in onThemeChanged()
DScrimController.java502 int textColor = currentScrimColors.supportsDarkText() ? Color.BLACK : Color.WHITE; in updateScrims() local
504 float minOpacity = ColorUtils.calculateMinimumBackgroundAlpha(textColor, mainColor, in updateScrims()
DStatusBarWindowView.java588 public void setTitleColor(@ColorInt int textColor) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DRecentsView.java201 int textColor = Utils.getColorAttr(mContext, R.attr.wallpaperTextColor); in reevaluateStyles() local
202 boolean usingDarkText = Color.luminance(textColor) < 0.5f; in reevaluateStyles()
204 mEmptyView.setTextColor(textColor); in reevaluateStyles()
206 {android.R.attr.state_enabled}}, new int[]{textColor})); in reevaluateStyles()
209 mStackActionButton.setTextColor(textColor); in reevaluateStyles()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DKeyguardIndicationController.java264 public void showTransientIndication(CharSequence transientIndication, int textColor) { in showTransientIndication() argument
266 mTransientTextColor = textColor; in showTransientIndication()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardSliceView.java374 void setTextColor(@ColorInt int textColor) { in setTextColor() argument
375 mTextColor = textColor; in setTextColor()
DPasswordTextView.java132 int textColor = a.getColor(R.styleable.PasswordTextView_android_textColor, Color.WHITE); in PasswordTextView() local
133 mDrawPaint.setColor(textColor); in PasswordTextView()
/frameworks/base/core/java/com/android/internal/util/
DNotificationColorUtil.java443 public static int ensureTextBackgroundColor(int color, int textColor, int hintColor) { in ensureTextBackgroundColor() argument
445 return findContrastColor(color, textColor, false, 4.5); in ensureTextBackgroundColor()
/frameworks/base/core/java/android/app/
DNotification.java5262 int textColor = NotificationColorUtil.resolvePrimaryColor(mContext, in generateActionButton() local
5264 button.setTextColor(R.id.action0, textColor); in generateActionButton()
5265 rippleColor = textColor; in generateActionButton()
5318 ColorStateList textColor = originalSpan.getTextColor(); in ensureColorSpanContrast() local
5319 if (textColor != null) { in ensureColorSpanContrast()
5320 int[] colors = textColor.getColors(); in ensureColorSpanContrast()
5326 textColor = new ColorStateList(textColor.getStates().clone(), in ensureColorSpanContrast()
5329 outResultColor[0] = textColor; in ensureColorSpanContrast()
5331 textColor = null; in ensureColorSpanContrast()
5337 textColor, in ensureColorSpanContrast()
/frameworks/base/core/java/android/view/
DWindow.java1459 public abstract void setTitleColor(@ColorInt int textColor); in setTitleColor() argument

12