Home
last modified time | relevance | path

Searched refs:textColor (Results 1 – 25 of 38) 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/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardIndication.java48 ColorStateList textColor, in KeyguardIndication() argument
54 mTextColor = textColor; in KeyguardIndication()
140 public Builder setTextColor(@NonNull ColorStateList textColor) { in setTextColor() argument
141 this.mTextColor = textColor; in setTextColor()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DStackEducationView.kt107 var textColor = ta.getColor(1 /* index */, Color.WHITE) in setTextColor() variable
109 textColor = ContrastColorUtil.ensureTextContrast(textColor, bgColor, true) in setTextColor()
110 titleTextView.setTextColor(textColor) in setTextColor()
111 descTextView.setTextColor(textColor) in setTextColor()
DBubbleOverflowContainerView.java226 int textColor = typedArray.getColor(1, isNightMode ? Color.WHITE : Color.BLACK); in updateTheme() local
227 textColor = ContrastColorUtil.ensureTextContrast(textColor, bgColor, isNightMode); in updateTheme()
230 mEmptyStateTitle.setTextColor(textColor); in updateTheme()
231 mEmptyStateSubtitle.setTextColor(textColor); in updateTheme()
316 int textColor = ta.getColor(1, Color.BLACK); in onCreateViewHolder() local
317 textColor = ContrastColorUtil.ensureTextContrast(textColor, bgColor, true); in onCreateViewHolder()
321 viewName.setTextColor(textColor); in onCreateViewHolder()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DCustomBar.java192 ResourceValue textColor = res.findItemInStyle(textStyle, in setStyle() local
194 textColor = res.resolveResValue(textColor); in setStyle()
195 if (textColor != null) { in setStyle()
197 ResourceHelper.getColorStateList(textColor, bridgeContext, null); in setStyle()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DHybridNotificationView.java91 protected void applyTextColor(TextView textView, @ColorInt int textColor) { in applyTextColor() argument
92 if (textColor != COLOR_INVALID) { in applyTextColor()
93 textView.setTextColor(textColor); in applyTextColor()
DFooterView.java177 int textColor = getResources().getColor(R.color.notif_pill_text, theme); in updateColors() local
179 mClearAllButton.setTextColor(textColor); in updateColors()
181 mManageButton.setTextColor(textColor); in updateColors()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DTapAgainView.java52 int textColor = getResources().getColor(R.color.notif_pill_text, mContext.getTheme()); in updateColor() local
53 setTextColor(textColor); in updateColor()
DKeyguardStatusBarView.java458 @ColorInt int textColor = Utils.getColorAttrDefaultColor(mContext, in updateIconsAndTextColors() local
461 Color.luminance(textColor) < 0.5 ? R.color.dark_mode_icon_color_single_tone : in updateIconsAndTextColors()
463 float intensity = textColor == Color.WHITE ? 0 : 1; in updateIconsAndTextColors()
/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.java223 final ColorStateList textColor = ta.getColorStateList(R.styleable.TextAppearance_textColor); in applyTextAppearance() local
224 if (textColor != null) { in applyTextAppearance()
225 final int enabledColor = textColor.getColorForState(ENABLED_STATE_SET, 0); in applyTextAppearance()
231 return textColor; in applyTextAppearance()
254 final ColorStateList textColor = applyTextAppearance(mDayPaint, resId); in setDayTextAppearance() local
255 if (textColor != null) { in setDayTextAppearance()
256 mDayTextColor = textColor; in setDayTextAppearance()
DDayPickerView.java41 private static final int[] ATTRS_TEXT_COLOR = new int[] { R.attr.textColor };
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DNumPadKey.java153 int textColor = Utils.getColorAttr(getContext(), android.R.attr.textColorPrimary) in reloadColors() local
157 mDigitText.setTextColor(textColor); in reloadColors()
DKeyguardSliceView.java256 void setTextColor(@ColorInt int textColor) { in setTextColor() argument
257 mTextColor = textColor; in setTextColor()
DPasswordTextView.java205 int textColor = Utils.getColorAttr(getContext(), android.R.attr.textColorPrimary) in reloadColors() local
207 mDrawPaint.setColor(textColor); in reloadColors()
DKeyguardSimPinViewController.java316 new int[] { android.R.attr.textColor }); in setLockedSimMessage()
DKeyguardSimPukViewController.java200 new int[] { android.R.attr.textColor }); in showDefaultMessage()
/frameworks/base/core/java/com/android/internal/widget/
DMessagingMessage.java143 default void setColor(int textColor) {} in setColor() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/lockscreen/
DLockscreenSmartspaceController.kt503 val textColor = regionSamplers.get(it)?.currentForegroundColor() in <lambda>() constant
504 if (textColor != null) { in <lambda>()
505 it.setPrimaryTextColor(textColor) in <lambda>()
/frameworks/base/packages/EasterEgg/src/com/android/egg/widget/
DPaintChipsWidget.kt237 val textColor = if (SHADE_NUMBERS[j] > 500) in buildWidget() constant
240 cell.setTextColor(R.id.chip, context.getColor(textColor)) in buildWidget()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DRemoteInputView.java219 final ColorStateList textColor; in setBackgroundTintColor() local
231 textColor = colorStateListWithDisabledAlpha(foregroundColor, 0x99); // 60% in setBackgroundTintColor()
235 textColor = mContext.getColorStateList(R.color.remote_input_text); in setBackgroundTintColor()
237 deleteFgColor = textColor.getDefaultColor(); in setBackgroundTintColor()
247 mEditText.setTextColor(textColor); in setBackgroundTintColor()
/frameworks/base/tools/aapt2/cmd/
DLink_test.cpp191 <item name="android:textColor">#123</item> in TEST_F()
234 <item name="android:textColor">#123</item> in TEST_F()
/frameworks/base/core/java/android/app/
DNotification.java5489 int textColor = Colors.flattenAlpha(getPrimaryTextColor(p), pillColor); in bindExpandButton() local
5490 contentView.setInt(R.id.expand_button, "setDefaultTextColor", textColor); in bindExpandButton()
5495 textColor = Colors.flattenAlpha(getColors(p).getOnAccentTextColor(), pillColor); in bindExpandButton()
5497 contentView.setInt(R.id.expand_button, "setHighlightTextColor", textColor); in bindExpandButton()
6247 int textColor = ContrastColorUtil.resolvePrimaryColor(mContext, in generateActionButton() local
6250 textColor = setAlphaComponentByFloatDimen(mContext, in generateActionButton()
6255 button.setTextColor(R.id.action0, textColor); in generateActionButton()
6257 final int rippleColor = (textColor & 0x00ffffff) | 0x33000000; in generateActionButton()
6332 ColorStateList textColor = originalSpan.getTextColor(); in getFullLengthSpanColor() local
6333 if (textColor != null) { in getFullLengthSpanColor()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DContrastColorUtil.java444 public static int ensureTextBackgroundColor(int color, int textColor, int hintColor) { in ensureTextBackgroundColor() argument
446 return findContrastColor(color, textColor, false, 4.5); in ensureTextBackgroundColor()

12