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/
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.java289 final int foregroundColor = attrs.hasForegroundColor() ? attrs.foregroundColor in updateAllPreferences() local
291 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()