Home
last modified time | relevance | path

Searched refs:foregroundColor (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Car/Notification/src/com/android/car/notification/template/
DNotificationColorUtil.java70 @ColorInt int foregroundColor, @ColorInt int backgroundColor, double minContrastRatio) { in findContrastColorAgainstLightBackground()
71 if (ColorUtils.calculateContrast(foregroundColor, backgroundColor) >= minContrastRatio) { in findContrastColorAgainstLightBackground()
72 return foregroundColor; in findContrastColorAgainstLightBackground()
76 ColorUtils.colorToLAB(foregroundColor, lab); in findContrastColorAgainstLightBackground()
84 foregroundColor = ColorUtils.LABToColor(l, a, b); in findContrastColorAgainstLightBackground()
85 if (ColorUtils.calculateContrast(foregroundColor, backgroundColor) > minContrastRatio) { in findContrastColorAgainstLightBackground()
105 @ColorInt int foregroundColor, @ColorInt int backgroundColor, double minContrastRatio) { in findContrastColorAgainstDarkBackground()
106 if (ColorUtils.calculateContrast(foregroundColor, backgroundColor) >= minContrastRatio) { in findContrastColorAgainstDarkBackground()
107 return foregroundColor; in findContrastColorAgainstDarkBackground()
111 ColorUtils.colorToHSL(foregroundColor, hsl); in findContrastColorAgainstDarkBackground()
[all …]
/packages/apps/TV/tuner/src/com/android/tv/tuner/data/
DCea708Data.java214 public final CaptionColor foregroundColor; field in Cea708Data.CaptionPenColor
219 CaptionColor foregroundColor, in CaptionPenColor() argument
222 this.foregroundColor = foregroundColor; in CaptionPenColor()
DCea708Parser.java641 CaptionColor foregroundColor = new CaptionColor(opacity, red, green, blue); in parseC1() local
659 foregroundColor, backgroundColor, edgeColor))); in parseC1()
665 foregroundColor, backgroundColor, edgeColor)); in parseC1()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/
DEmojiCategoryPageIndicatorView.java41 public void setColors(final int foregroundColor, final int backgroundColor) { in setColors() argument
42 mPaint.setColor(foregroundColor); in setColors()
/packages/apps/Settings/src/com/android/settings/accessibility/
DCaptionPropertiesFragment.java302 final int foregroundColor = attrs.hasForegroundColor() ? in updateAllPreferences() local
303 attrs.foregroundColor : CaptionStyle.COLOR_UNSPECIFIED; in updateAllPreferences()
304 parseColorOpacity(mForegroundColor, mForegroundOpacity, foregroundColor); in updateAllPreferences()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accessibility/
DCaptionPropertiesFragment.java351 final int foregroundColor = attrs.hasForegroundColor() ? in updateAllPreferences() local
352 attrs.foregroundColor : CaptionStyle.COLOR_UNSPECIFIED; in updateAllPreferences()
353 parseColorOpacity(mForegroundColor, mForegroundOpacity, foregroundColor); in updateAllPreferences()
/packages/apps/ThemePicker/src/com/android/customization/model/theme/custom/
DThemeComponentOption.java461 int foregroundColor = res.getColor(R.color.shape_option_tile_foreground_color, theme); in bindThumbnailTile() local
463 foreground.setTint(ColorUtils.blendARGB(primaryColor, foregroundColor, .05f)); in bindThumbnailTile()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/text/
DSubtitleView.java173 mForegroundColor = style.foregroundColor; in setStyle()