Home
last modified time | relevance | path

Searched refs:textColor (Results 1 – 25 of 29) 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/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DCustomBar.java194 ResourceValue textColor = res.findItemInStyle(textStyle, in setStyle() local
196 textColor = res.resolveResValue(textColor); in setStyle()
197 if (textColor != null) { in setStyle()
199 ResourceHelper.getColorStateList(textColor, bridgeContext, null); in setStyle()
/frameworks/base/core/java/android/text/style/
DTextAppearanceSpan.java103 ColorStateList textColor; in TextAppearanceSpan() local
109 textColor = a.getColorStateList(com.android.internal.R.styleable. in TextAppearanceSpan()
198 textColor = a.getColorStateList(colorList); in TextAppearanceSpan()
202 mTextColor = textColor; in TextAppearanceSpan()
/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.java304 public void overrideTextColors(int textColor) { in overrideTextColors() argument
305 addAction(new OverrideTextColorsAction(textColor)); in overrideTextColors()
2126 private final int textColor;
2128 public OverrideTextColorsAction(int textColor) {
2129 this.textColor = textColor;
2133 textColor = parcel.readInt();
2137 dest.writeInt(textColor);
2150 textView.setTextColor(textColor);
DDayPickerView.java41 private static final int[] ATTRS_TEXT_COLOR = new int[] { R.attr.textColor };
DRadialTimePickerView.java895 ColorStateList textColor, String[] texts, float[] textX, float[] textY, Paint paint, in drawTextElements() argument
913 final int color = textColor.getColorForState(StateSet.get(stateMask), 0); in drawTextElements()
DDatePickerCalendarDelegate.java60 com.android.internal.R.attr.textColor};
DTimePickerClockDelegate.java80 private static final int[] ATTRS_TEXT_COLOR = new int[] {R.attr.textColor};
/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.java467 @ColorInt int textColor = Utils.getColorAttrDefaultColor(mContext, in updateIconsAndTextColors() local
470 Color.luminance(textColor) < 0.5 ? R.color.dark_mode_icon_color_single_tone : in updateIconsAndTextColors()
472 float intensity = textColor == Color.WHITE ? 0 : 1; in updateIconsAndTextColors()
DScrimController.java568 int textColor = mColors.supportsDarkText() ? Color.BLACK : Color.WHITE; in updateScrims() local
570 float minOpacity = ColorUtils.calculateMinimumBackgroundAlpha(textColor, mainColor, in updateScrims()
DStatusBarWindowView.java715 public void setTitleColor(@ColorInt int textColor) {
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/views/
DRecentsView.java200 int textColor = Utils.getColorAttrDefaultColor(mContext, R.attr.wallpaperTextColor); in reevaluateStyles() local
201 boolean usingDarkText = Color.luminance(textColor) < 0.5f; in reevaluateStyles()
203 mEmptyView.setTextColor(textColor); in reevaluateStyles()
205 {android.R.attr.state_enabled}}, new int[]{textColor})); in reevaluateStyles()
208 mStackActionButton.setTextColor(textColor); in reevaluateStyles()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSmartReplyView.java836 int textColor = ContrastColorUtil.ensureTextContrast( in setBackgroundTintColor() local
846 setButtonColors(child, backgroundColor, strokeColor, textColor, rippleColor, in setBackgroundTintColor()
852 int textColor, int rippleColor, int strokeWidth) { in setButtonColors() argument
870 button.setTextColor(textColor); in setButtonColors()
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DGlobalActionsDialog.java514 int textColor; in create() local
516 textColor = v.getResources().getColor( in create()
519 textColor = v.getResources().getColor( in create()
523 messageView.setTextColor(textColor); in create()
526 icon.getDrawable().setTint(textColor); in create()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DPasswordTextView.java134 int textColor = a.getColor(R.styleable.PasswordTextView_android_textColor, Color.WHITE); in PasswordTextView() local
135 mDrawPaint.setColor(textColor); in PasswordTextView()
DKeyguardSliceView.java375 void setTextColor(@ColorInt int textColor) { in setTextColor() argument
376 mTextColor = textColor; in setTextColor()
/frameworks/base/core/java/com/android/internal/util/
DContrastColorUtil.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.java5574 int textColor = ContrastColorUtil.resolvePrimaryColor(mContext, in generateActionButton() local
5576 button.setTextColor(R.id.action0, textColor); in generateActionButton()
5577 rippleColor = textColor; in generateActionButton()
5632 ColorStateList textColor = originalSpan.getTextColor(); in ensureColorSpanContrast() local
5633 if (textColor != null) { in ensureColorSpanContrast()
5634 int[] colors = textColor.getColors(); in ensureColorSpanContrast()
5640 textColor = new ColorStateList(textColor.getStates().clone(), in ensureColorSpanContrast()
5643 outResultColor[0] = textColor; in ensureColorSpanContrast()
5645 textColor = null; in ensureColorSpanContrast()
5651 textColor, in ensureColorSpanContrast()
DActivity.java6703 public void setTitleColor(int textColor) { in setTitleColor() argument
6704 mTitleColor = textColor; in setTitleColor()
6705 onTitleChanged(mTitle, textColor); in setTitleColor()
/frameworks/base/core/java/android/view/
DWindow.java1501 public abstract void setTitleColor(@ColorInt int textColor); in setTitleColor() argument
/frameworks/base/core/java/com/android/internal/policy/
DPhoneWindow.java583 public void setTitleColor(int textColor) { in setTitleColor() argument
585 mTitleView.setTextColor(textColor); in setTitleColor()
587 mTitleColor = textColor; in setTitleColor()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DNotificationStackScrollLayout.java4719 final int textColor = Utils.getColorAttrDefaultColor(context, R.attr.wallpaperTextColor);
4720 mFooterView.setTextColor(textColor);
4721 mEmptyShadeView.setTextColor(textColor);

12