Searched refs:foregroundColor (Results 1 – 9 of 9) sorted by relevance
/packages/apps/Car/Notification/src/com/android/car/notification/ |
D | NotificationUtils.java | 215 @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/ |
D | CaptioningForegroundOpacityController.java | 54 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()
|
D | CaptioningForegroundColorController.java | 56 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()
|
D | CaptionHelper.java | 139 return attrs.hasForegroundColor() ? attrs.foregroundColor : CaptionStyle.COLOR_UNSPECIFIED; in getForegroundColor()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/data/ |
D | Cea708Data.java | 214 public final CaptionColor foregroundColor; field in Cea708Data.CaptionPenColor 219 CaptionColor foregroundColor, in CaptionPenColor() argument 222 this.foregroundColor = foregroundColor; in CaptionPenColor()
|
D | Cea708Parser.java | 641 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/ |
D | EmojiCategoryPageIndicatorView.java | 41 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/ |
D | CaptionHelperTest.java | 149 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/ |
D | SubtitleView.java | 173 mForegroundColor = style.foregroundColor; in setStyle()
|