Home
last modified time | relevance | path

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

/packages/apps/Car/Notification/src/com/android/car/notification/
DNotificationUtils.java198 @ColorInt int foregroundColor, @ColorInt int backgroundColor, double minContrastRatio) { in findContrastColorAgainstLightBackground()
199 if (ColorUtils.calculateContrast(foregroundColor, backgroundColor) >= minContrastRatio) { in findContrastColorAgainstLightBackground()
200 return foregroundColor; in findContrastColorAgainstLightBackground()
204 ColorUtils.colorToLAB(foregroundColor, lab); in findContrastColorAgainstLightBackground()
212 foregroundColor = ColorUtils.LABToColor(l, a, b); in findContrastColorAgainstLightBackground()
213 if (ColorUtils.calculateContrast(foregroundColor, backgroundColor) > minContrastRatio) { in findContrastColorAgainstLightBackground()
233 @ColorInt int foregroundColor, @ColorInt int backgroundColor, double minContrastRatio) { in findContrastColorAgainstDarkBackground()
234 if (ColorUtils.calculateContrast(foregroundColor, backgroundColor) >= minContrastRatio) { in findContrastColorAgainstDarkBackground()
235 return foregroundColor; in findContrastColorAgainstDarkBackground()
239 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/
DCaptionAppearanceFragment.java305 final int foregroundColor = attrs.hasForegroundColor() ? attrs.foregroundColor in updateAllPreferences() local
307 parseColorOpacity(mForegroundColor, mForegroundOpacity, foregroundColor); in updateAllPreferences()
/packages/apps/ThemePicker/src/com/android/customization/model/theme/custom/
DThemeComponentOption.java508 int foregroundColor = in bindThumbnailTile() local
511 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()