Home
last modified time | relevance | path

Searched refs:textColor (Results 1 – 25 of 39) 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/support/v7/appcompat/src/android/support/v7/widget/
DAppCompatTextHelper.java107 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()
DThemeUtils.java41 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/
DCustomBar.java207 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/
DTextAppearanceSpan.java59 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/
DTestUtilsMatchers.java127 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);
DNavigationViewActions.java69 public static ViewAction setItemTextColor(final ColorStateList textColor) {
86 navigationView.setItemTextColor(textColor);
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/
DRadialTextsView.java148 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/
DPagerTitleStrip.java73 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/
DCollapsingTextHelper.java144 void setCollapsedTextColor(ColorStateList textColor) {
145 if (mCollapsedTextColor != textColor) {
146 mCollapsedTextColor = textColor;
151 void setExpandedTextColor(ColorStateList textColor) {
152 if (mExpandedTextColor != textColor) {
153 mExpandedTextColor = textColor;
DBottomNavigationView.java292 public void setItemTextColor(@Nullable ColorStateList textColor) { in setItemTextColor() argument
293 mMenuView.setItemTextColor(textColor); in setItemTextColor()
DNavigationView.java350 public void setItemTextColor(@Nullable ColorStateList textColor) { in setItemTextColor() argument
351 mPresenter.setItemTextColor(textColor); in setItemTextColor()
DTabLayout.java719 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/
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.java222 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()
DRemoteViews.java233 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);
DDayPickerView.java45 private static final int[] ATTRS_TEXT_COLOR = new int[] { R.attr.textColor };
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardStatusBarView.java337 @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()
DScrimController.java370 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/
DRecentsView.java189 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/
DKeyguardIndicationController.java256 public void showTransientIndication(String transientIndication, int textColor) { in showTransientIndication() argument
258 mTransientTextColor = textColor; in showTransientIndication()
/frameworks/support/design/src/android/support/design/internal/
DNavigationMenuPresenter.java252 public void setItemTextColor(@Nullable ColorStateList textColor) { in setItemTextColor() argument
253 mTextColor = textColor; in setItemTextColor()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DPasswordTextView.java129 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/
DTextInputLayoutTest.java484 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/
DNotificationColorUtil.java430 public static int ensureTextBackgroundColor(int color, int textColor, int hintColor) { in ensureTextBackgroundColor() argument
432 return findContrastColor(color, textColor, false, 4.5); in ensureTextBackgroundColor()

12