Home
last modified time | relevance | path

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

/packages/apps/Car/Notification/src/com/android/car/notification/
DNotificationUtils.java215 @ColorInt int foregroundColor, @ColorInt int backgroundColor, double minContrastRatio) { in findContrastColorAgainstLightBackground()
216 if (ColorUtils.calculateContrast(foregroundColor, backgroundColor) >= minContrastRatio) { in findContrastColorAgainstLightBackground()
217 return foregroundColor; in findContrastColorAgainstLightBackground()
221 ColorUtils.colorToLAB(foregroundColor, lab); in findContrastColorAgainstLightBackground()
229 foregroundColor = ColorUtils.LABToColor(l, a, b); in findContrastColorAgainstLightBackground()
230 if (ColorUtils.calculateContrast(foregroundColor, backgroundColor) > minContrastRatio) { in findContrastColorAgainstLightBackground()
250 @ColorInt int foregroundColor, @ColorInt int backgroundColor, double minContrastRatio) { in findContrastColorAgainstDarkBackground()
251 if (ColorUtils.calculateContrast(foregroundColor, backgroundColor) >= minContrastRatio) { in findContrastColorAgainstDarkBackground()
252 return foregroundColor; in findContrastColorAgainstDarkBackground()
256 ColorUtils.colorToHSL(foregroundColor, hsl); in findContrastColorAgainstDarkBackground()
[all …]
/packages/apps/Settings/src/com/android/settings/accessibility/
DCaptioningForegroundOpacityController.java54 final int foregroundColor = mCaptionHelper.getForegroundColor(); in displayPreference() local
55 final int opacity = CaptionUtils.parseOpacity(foregroundColor); in displayPreference()
62 final int foregroundColor = mCaptionHelper.getForegroundColor(); in onValueChanged() local
63 final int color = CaptionUtils.parseColor(foregroundColor); in onValueChanged()
DCaptioningForegroundColorController.java56 final int foregroundColor = mCaptionHelper.getForegroundColor(); in displayPreference() local
57 final int color = CaptionUtils.parseColor(foregroundColor); in displayPreference()
72 final int foregroundColor = mCaptionHelper.getForegroundColor(); in getNonDefaultOpacity() local
73 final int opacity = CaptionUtils.parseOpacity(foregroundColor); in getNonDefaultOpacity()
DCaptionHelper.java139 return attrs.hasForegroundColor() ? attrs.foregroundColor : CaptionStyle.COLOR_UNSPECIFIED; in getForegroundColor()
/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/tests/robotests/src/com/android/settings/accessibility/
DCaptionHelperTest.java149 final int foregroundColor = mCaptionHelper.getForegroundColor(); in setForegroundColor_shouldReturnSpecificColor() local
150 assertThat(foregroundColor).isEqualTo(0xFFFF0000); in setForegroundColor_shouldReturnSpecificColor()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/text/
DSubtitleView.java173 mForegroundColor = style.foregroundColor; in setStyle()