/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/support/v7/appcompat/src/android/support/v7/widget/ |
D | AppCompatTextHelper.java | 107 ColorStateList textColor = null; in loadFromAttributes() local 124 textColor = a.getColorStateList(R.styleable.TextAppearance_android_textColor); in loadFromAttributes() 149 textColor = a.getColorStateList(R.styleable.TextAppearance_android_textColor); in loadFromAttributes() 164 if (textColor != null) { in loadFromAttributes() 165 mView.setTextColor(textColor); in loadFromAttributes() 262 final ColorStateList textColor in onSetTextAppearance() local 264 if (textColor != null) { in onSetTextAppearance() 265 mView.setTextColor(textColor); in onSetTextAppearance()
|
D | ThemeUtils.java | 41 public static ColorStateList createDisabledStateList(int textColor, int disabledTextColor) { in createDisabledStateList() argument 55 colors[i] = textColor; in createDisabledStateList()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
D | CustomBar.java | 207 ResourceValue textColor = res.findItemInStyle(textStyle, "textColor", in setStyle() local 209 textColor = res.resolveResValue(textColor); in setStyle() 210 if (textColor != null) { in setStyle() 212 textColor, bridgeContext, null); in setStyle()
|
/frameworks/base/core/java/android/text/style/ |
D | TextAppearanceSpan.java | 59 ColorStateList textColor; in TextAppearanceSpan() local 65 textColor = a.getColorStateList(com.android.internal.R.styleable. in TextAppearanceSpan() 113 textColor = a.getColorStateList(colorList); in TextAppearanceSpan() 117 mTextColor = textColor; in TextAppearanceSpan()
|
/frameworks/support/design/tests/src/android/support/design/testutils/ |
D | TestUtilsMatchers.java | 127 public static Matcher withTextColor(final @ColorInt int textColor) { 139 if (ourTextColor != textColor) { 145 int expectedAlpha = Color.alpha(textColor); 146 int expectedRed = Color.red(textColor); 147 int expectedGreen = Color.green(textColor); 148 int expectedBlue = Color.blue(textColor);
|
D | NavigationViewActions.java | 69 public static ViewAction setItemTextColor(final ColorStateList textColor) { 86 navigationView.setItemTextColor(textColor);
|
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/ |
D | RadialTextsView.java | 148 int textColor; in setTheme() local 150 textColor = res.getColor(android.R.color.white); in setTheme() 152 textColor = res.getColor(R.color.numbers_text_color); in setTheme() 154 mPaint.setColor(textColor); in setTheme()
|
/frameworks/support/core-ui/java/android/support/v4/view/ |
D | PagerTitleStrip.java | 73 android.R.attr.textColor, 128 final int textColor = a.getColor(2, 0); in PagerTitleStrip() local 129 mPrevText.setTextColor(textColor); in PagerTitleStrip() 130 mCurrText.setTextColor(textColor); in PagerTitleStrip() 131 mNextText.setTextColor(textColor); in PagerTitleStrip()
|
/frameworks/support/design/src/android/support/design/widget/ |
D | CollapsingTextHelper.java | 144 void setCollapsedTextColor(ColorStateList textColor) { 145 if (mCollapsedTextColor != textColor) { 146 mCollapsedTextColor = textColor; 151 void setExpandedTextColor(ColorStateList textColor) { 152 if (mExpandedTextColor != textColor) { 153 mExpandedTextColor = textColor;
|
D | BottomNavigationView.java | 292 public void setItemTextColor(@Nullable ColorStateList textColor) { in setItemTextColor() argument 293 mMenuView.setItemTextColor(textColor); in setItemTextColor()
|
D | NavigationView.java | 350 public void setItemTextColor(@Nullable ColorStateList textColor) { in setItemTextColor() argument 351 mPresenter.setItemTextColor(textColor); in setItemTextColor()
|
D | TabLayout.java | 719 public void setTabTextColors(@Nullable ColorStateList textColor) { in setTabTextColors() argument 720 if (mTabTextColors != textColor) { in setTabTextColors() 721 mTabTextColors = textColor; in setTabTextColors()
|
/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 | 222 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()
|
D | RemoteViews.java | 233 public void overrideTextColors(int textColor) { in overrideTextColors() argument 234 addAction(new OverrideTextColorsAction(textColor)); in overrideTextColors() 2270 private final int textColor; 2272 public OverrideTextColorsAction(int textColor) { 2273 this.textColor = textColor; 2277 textColor = parcel.readInt(); 2282 dest.writeInt(textColor); 2295 textView.setTextColor(textColor);
|
D | DayPickerView.java | 45 private static final int[] ATTRS_TEXT_COLOR = new int[] { R.attr.textColor };
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | KeyguardStatusBarView.java | 337 @ColorInt int textColor = Utils.getColorAttr(mContext, R.attr.wallpaperTextColor); in onOverlayChanged() local 338 @ColorInt int iconColor = Utils.getDefaultColor(mContext, Color.luminance(textColor) < 0.5 ? in onOverlayChanged() 341 float intensity = textColor == Color.WHITE ? 0 : 1; in onOverlayChanged()
|
D | ScrimController.java | 370 int textColor = currentScrimColors.supportsDarkText() ? Color.BLACK : Color.WHITE; in updateScrims() local 372 float minOpacity = ColorUtils.calculateMinimumBackgroundAlpha(textColor, mainColor, in updateScrims()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
D | RecentsView.java | 189 int textColor = Utils.getColorAttr(mContext, R.attr.wallpaperTextColor); in reevaluateStyles() local 190 boolean usingDarkText = Color.luminance(textColor) < 0.5f; in reevaluateStyles() 192 mEmptyView.setTextColor(textColor); in reevaluateStyles() 194 {android.R.attr.state_enabled}}, new int[]{textColor})); in reevaluateStyles() 197 mStackActionButton.setTextColor(textColor); in reevaluateStyles()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | KeyguardIndicationController.java | 256 public void showTransientIndication(String transientIndication, int textColor) { in showTransientIndication() argument 258 mTransientTextColor = textColor; in showTransientIndication()
|
/frameworks/support/design/src/android/support/design/internal/ |
D | NavigationMenuPresenter.java | 252 public void setItemTextColor(@Nullable ColorStateList textColor) { in setItemTextColor() argument 253 mTextColor = textColor; in setItemTextColor()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | PasswordTextView.java | 129 int textColor = a.getColor(R.styleable.PasswordTextView_android_textColor, Color.WHITE); in PasswordTextView() local 130 mDrawPaint.setColor(textColor); in PasswordTextView()
|
/frameworks/support/design/tests/src/android/support/design/widget/ |
D | TextInputLayoutTest.java | 484 final int textColor = TestUtils.getThemeAttrColor(activity, R.attr.colorAccent); in testThemedColorStateListForErrorTextColor() local 492 .check(matches(withTextColor(textColor))); in testThemedColorStateListForErrorTextColor()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | NotificationColorUtil.java | 430 public static int ensureTextBackgroundColor(int color, int textColor, int hintColor) { in ensureTextBackgroundColor() argument 432 return findContrastColor(color, textColor, false, 4.5); in ensureTextBackgroundColor()
|