Home
last modified time | relevance | path

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

12

/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
H A 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()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
H A DStackEducationView.kt107 var textColor = ta.getColor(1 /* index */, Color.WHITE) regex
109 textColor = ContrastColorUtil.ensureTextContrast(textColor, bgColor, true)
110 titleTextView.setTextColor(textColor)
111 descTextView.setTextColor(textColor)
H A 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()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
H A DHybridNotificationView.java92 protected void applyTextColor(TextView textView, @ColorInt int textColor) { in applyTextColor() argument
93 if (textColor != COLOR_INVALID) { in applyTextColor()
94 textView.setTextColor(textColor); in applyTextColor()
H A DFooterView.java164 final @ColorInt int textColor = getResources().getColor(R.color.notif_pill_text, theme); in updateColors() local
176 mClearAllButton.setTextColor(textColor); in updateColors()
178 mManageButton.setTextColor(textColor); in updateColors()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DTapAgainView.java52 int textColor = getResources().getColor(R.color.notif_pill_text, mContext.getTheme()); in updateColor() local
53 setTextColor(textColor); in updateColor()
H A DKeyguardStatusBarView.java430 @ColorInt int textColor = Utils.getColorAttrDefaultColor(mContext, in updateIconsAndTextColors() local
433 Color.luminance(textColor) < 0.5 ? R.color.dark_mode_icon_color_single_tone : in updateIconsAndTextColors()
435 float intensity = textColor == Color.WHITE ? 0 : 1; in updateIconsAndTextColors()
/aosp14/frameworks/base/core/java/com/android/internal/util/
H A DContrastColorUtil.java312 ColorStateList textColor = originalSpan.getTextColor(); in ensureColorSpanContrast() local
313 if (textColor != null) { in ensureColorSpanContrast()
316 textColor = null; in ensureColorSpanContrast()
318 int[] colors = textColor.getColors(); in ensureColorSpanContrast()
325 textColor = new ColorStateList(textColor.getStates().clone(), in ensureColorSpanContrast()
332 textColor, in ensureColorSpanContrast()
532 public static int ensureTextBackgroundColor(int color, int textColor, int hintColor) { in ensureTextBackgroundColor() argument
534 return findContrastColor(color, textColor, false, 4.5); in ensureTextBackgroundColor()
/aosp14/frameworks/base/core/java/android/text/style/
H A 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()
/aosp14/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/
H A 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()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
H A DMenuMessageView.java159 final int textColor = res.getColor(R.color.accessibility_floating_menu_message_text); in updateResources() local
164 mTextView.setTextColor(textColor); in updateResources()
/aosp14/frameworks/base/core/java/android/widget/
H A DSimpleMonthView.java228 final ColorStateList textColor = ta.getColorStateList(R.styleable.TextAppearance_textColor); in applyTextAppearance() local
229 if (textColor != null) { in applyTextAppearance()
230 final int enabledColor = textColor.getColorForState(ENABLED_STATE_SET, 0); in applyTextAppearance()
236 return textColor; in applyTextAppearance()
259 final ColorStateList textColor = applyTextAppearance(mDayPaint, resId); in setDayTextAppearance() local
260 if (textColor != null) { in setDayTextAppearance()
261 mDayTextColor = textColor; in setDayTextAppearance()
/aosp14/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/chart/
H A DBarChart.kt145 this.xAxis.textColor = labelTextColor
152 this.axisRight.textColor = labelTextColor
H A DLineChart.kt153 this.xAxis.textColor = labelTextColor
161 this.axisRight.textColor = labelTextColor
/aosp14/frameworks/base/packages/SystemUI/src/com/android/keyguard/
H A DNumPadKey.java155 int textColor = Utils.getColorAttr(getContext(), NUM_PAD_KEY) in reloadColors() local
159 mDigitText.setTextColor(textColor); in reloadColors()
H A DBouncerKeyguardMessageArea.kt49 context.obtainStyledAttributes(styleResId, intArrayOf(android.R.attr.textColor))
H A DKeyguardSliceView.java256 void setTextColor(@ColorInt int textColor) { in setTextColor() argument
257 mTextColor = textColor; in setTextColor()
H A DKeyguardSimPinViewController.java319 new int[] { android.R.attr.textColor }); in setLockedSimMessage()
/aosp14/frameworks/base/core/java/com/android/internal/widget/
H A DMessagingMessage.java150 default void setColor(int textColor) {} in setColor() argument
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/lockscreen/
H A DLockscreenSmartspaceController.kt537 val textColor = region.currentForegroundColor() regex
538 if (textColor != null) {
539 view.setPrimaryTextColor(textColor)
/aosp14/frameworks/base/packages/EasterEgg/src/com/android/egg/widget/
H A DPaintChipsWidget.kt237 val textColor = if (SHADE_NUMBERS[j] > 500) regex
240 cell.setTextColor(R.id.chip, context.getColor(textColor))
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DRemoteInputView.java220 final ColorStateList textColor; in setBackgroundTintColor() local
232 textColor = colorStateListWithDisabledAlpha(foregroundColor, 0x99); // 60% in setBackgroundTintColor()
236 textColor = mContext.getColorStateList(R.color.remote_input_text); in setBackgroundTintColor()
238 deleteFgColor = textColor.getDefaultColor(); in setBackgroundTintColor()
248 mEditText.setTextColor(textColor); in setBackgroundTintColor()
/aosp14/frameworks/base/core/java/android/view/inputmethod/
H A DTextAppearanceInfo.java832 public Builder setTextColor(@ColorInt int textColor) { in setTextColor() argument
833 mTextColor = textColor; in setTextColor()
/aosp14/frameworks/base/tools/aapt2/cmd/
H A DLink_test.cpp193 <item name="android:textColor">#123</item> in TEST_F()
236 <item name="android:textColor">#123</item> in TEST_F()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/
H A DNotificationShadeWindowView.java362 public void setTitleColor(@ColorInt int textColor) {

12