/frameworks/rs/tests/java_api/RSUnitTests/gui/com/android/rs/unittest/ |
D | RSListActivity.java | 48 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/ |
D | KeyguardIndication.java | 48 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/ |
D | StackEducationView.kt | 107 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()
|
D | BubbleOverflowContainerView.java | 226 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/ |
D | CustomBar.java | 192 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/ |
D | HybridNotificationView.java | 91 protected void applyTextColor(TextView textView, @ColorInt int textColor) { in applyTextColor() argument 92 if (textColor != COLOR_INVALID) { in applyTextColor() 93 textView.setTextColor(textColor); in applyTextColor()
|
D | FooterView.java | 177 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/ |
D | TapAgainView.java | 52 int textColor = getResources().getColor(R.color.notif_pill_text, mContext.getTheme()); in updateColor() local 53 setTextColor(textColor); in updateColor()
|
D | KeyguardStatusBarView.java | 458 @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/ |
D | TextAppearanceSpan.java | 103 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/ |
D | AssistVisualizer.java | 41 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/ |
D | SimpleMonthView.java | 223 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()
|
D | DayPickerView.java | 41 private static final int[] ATTRS_TEXT_COLOR = new int[] { R.attr.textColor };
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | NumPadKey.java | 153 int textColor = Utils.getColorAttr(getContext(), android.R.attr.textColorPrimary) in reloadColors() local 157 mDigitText.setTextColor(textColor); in reloadColors()
|
D | KeyguardSliceView.java | 256 void setTextColor(@ColorInt int textColor) { in setTextColor() argument 257 mTextColor = textColor; in setTextColor()
|
D | PasswordTextView.java | 205 int textColor = Utils.getColorAttr(getContext(), android.R.attr.textColorPrimary) in reloadColors() local 207 mDrawPaint.setColor(textColor); in reloadColors()
|
D | KeyguardSimPinViewController.java | 316 new int[] { android.R.attr.textColor }); in setLockedSimMessage()
|
D | KeyguardSimPukViewController.java | 200 new int[] { android.R.attr.textColor }); in showDefaultMessage()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | MessagingMessage.java | 143 default void setColor(int textColor) {} in setColor() argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/lockscreen/ |
D | LockscreenSmartspaceController.kt | 503 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/ |
D | PaintChipsWidget.kt | 237 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/ |
D | RemoteInputView.java | 219 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/ |
D | Link_test.cpp | 191 <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/ |
D | Notification.java | 5489 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/ |
D | ContrastColorUtil.java | 444 public static int ensureTextBackgroundColor(int color, int textColor, int hintColor) { in ensureTextBackgroundColor() argument 446 return findContrastColor(color, textColor, false, 4.5); in ensureTextBackgroundColor()
|