Searched refs:textColor (Results 1 - 25 of 30) sorted by relevance

12

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

Completed in 713 milliseconds

12