Home
last modified time | relevance | path

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

/aosp12/packages/apps/Car/Notification/src/com/android/car/notification/
H A DNotificationUtils.java200 return foregroundColor; in findContrastColorAgainstLightBackground()
204 ColorUtils.colorToLAB(foregroundColor, lab); in findContrastColorAgainstLightBackground()
212 foregroundColor = ColorUtils.LABToColor(l, a, b); in findContrastColorAgainstLightBackground()
235 return foregroundColor; in findContrastColorAgainstDarkBackground()
239 ColorUtils.colorToHSL(foregroundColor, hsl); in findContrastColorAgainstDarkBackground()
246 foregroundColor = ColorUtils.HSLToColor(hsl); in findContrastColorAgainstDarkBackground()
247 if (ColorUtils.calculateContrast(foregroundColor, backgroundColor) in findContrastColorAgainstDarkBackground()
254 return foregroundColor; in findContrastColorAgainstDarkBackground()
268 Color.luminance(foregroundColor) > Color.luminance(backgroundColor); in getContrastedForegroundColor()
271 foregroundColor, backgroundColor, minContrastRatio) in getContrastedForegroundColor()
[all …]
/aosp12/frameworks/base/core/java/android/view/accessibility/
H A DCaptioningManager.java315 public final int foregroundColor; field in CaptioningManager.CaptionStyle
356 private CaptionStyle(int foregroundColor, int backgroundColor, int edgeType, int edgeColor, in CaptionStyle() argument
358 mHasForegroundColor = hasColor(foregroundColor); in CaptionStyle()
366 this.foregroundColor = mHasForegroundColor ? foregroundColor : Color.WHITE; in CaptionStyle()
400 overlay.foregroundColor : foregroundColor; in applyStyle()
478 final int foregroundColor = Secure.getInt( in getCustomStyle() local
479 cr, Secure.ACCESSIBILITY_CAPTIONING_FOREGROUND_COLOR, defStyle.foregroundColor); in getCustomStyle()
494 return new CaptionStyle(foregroundColor, backgroundColor, edgeType, edgeColor, in getCustomStyle()
/aosp12/packages/apps/TV/tuner/src/com/android/tv/tuner/data/
H A DCea708Data.java214 public final CaptionColor foregroundColor; field in Cea708Data.CaptionPenColor
219 CaptionColor foregroundColor, in CaptionPenColor() argument
222 this.foregroundColor = foregroundColor; in CaptionPenColor()
H A 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()
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/
H A DEmojiCategoryPageIndicatorView.java41 public void setColors(final int foregroundColor, final int backgroundColor) { in setColors() argument
42 mPaint.setColor(foregroundColor); in setColors()
/aosp12/frameworks/base/core/java/com/android/internal/util/
H A DContrastColorUtil.java204 int foregroundColor = originalSpan.getForegroundColor(); in invertCharSequenceColors() local
205 resultSpan = new ForegroundColorSpan(processColor(foregroundColor)); in invertCharSequenceColors()
609 public static double calculateContrast(int foregroundColor, int backgroundColor) { in calculateContrast() argument
610 return ColorUtilsFromCompat.calculateContrast(foregroundColor, backgroundColor); in calculateContrast()
613 public static boolean satisfiesTextContrast(int backgroundColor, int foregroundColor) { in satisfiesTextContrast() argument
614 return ContrastColorUtil.calculateContrast(foregroundColor, backgroundColor) >= 4.5; in satisfiesTextContrast()
/aosp12/frameworks/base/media/java/android/media/
H A DCea708CaptionRenderer.java501 CaptionColor foregroundColor = new CaptionColor(opacity, red, green, blue); in parseC1() local
516 new CaptionPenColor(foregroundColor, backgroundColor, edgeColor))); in parseC1()
520 foregroundColor, backgroundColor, edgeColor)); in parseC1()
917 public final CaptionColor foregroundColor; field in Cea708CCParser.CaptionPenColor
921 public CaptionPenColor(CaptionColor foregroundColor, CaptionColor backgroundColor, in CaptionPenColor() argument
923 this.foregroundColor = foregroundColor; in CaptionPenColor()
2141 ? style.foregroundColor : DEFAULT_CAPTION_STYLE.foregroundColor); in setCaptionStyle()
H A DTtmlRenderer.java698 mTextView.setTextColor(captionManager.getUserStyle().foregroundColor); in TtmlRenderingWidget()
H A DClosedCaptionRenderer.java1294 mTextColor = captionStyle.foregroundColor; in setCaptionStyle()
H A DWebVttRenderer.java1861 setForegroundColor(captionStyle.foregroundColor); in setCaptionStyle()
/aosp12/packages/apps/Settings/src/com/android/settings/accessibility/
H A DCaptionAppearanceFragment.java300 final int foregroundColor = attrs.hasForegroundColor() ? attrs.foregroundColor in updateAllPreferences() local
302 parseColorOpacity(mForegroundColor, mForegroundOpacity, foregroundColor); in updateAllPreferences()
/aosp12/frameworks/base/core/java/com/android/internal/widget/
H A DSubtitleView.java280 style.foregroundColor : defStyle.foregroundColor; in setStyle()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DRemoteInputView.java207 final int foregroundColor = dark ? Color.WHITE : Color.BLACK; in setBackgroundTintColor() local
210 deleteBgColor = foregroundColor; in setBackgroundTintColor()
212 accentColor = colorStateListWithDisabledAlpha(foregroundColor, 0x4D); // 30% in setBackgroundTintColor()
213 textColor = colorStateListWithDisabledAlpha(foregroundColor, 0x99); // 60% in setBackgroundTintColor()
214 hintColor = ColorUtils.setAlphaComponent(foregroundColor, 0x99); in setBackgroundTintColor()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/battery/
H A DBatteryMeterView.java368 public void updateColors(int foregroundColor, int backgroundColor, int singleToneColor) { in updateColors() argument
369 mDrawable.setColors(foregroundColor, backgroundColor, singleToneColor); in updateColors()
/aosp12/packages/apps/ThemePicker/src/com/android/customization/model/theme/custom/
H A DThemeComponentOption.java508 int foregroundColor = in bindThumbnailTile() local
511 foreground.setTint(ColorUtils.blendARGB(primaryColor, foregroundColor, .05f)); in bindThumbnailTile()
/aosp12/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/text/
H A DSubtitleView.java173 mForegroundColor = style.foregroundColor; in setStyle()
/aosp12/frameworks/base/core/tests/coretests/src/android/app/
H A DNotificationTest.java443 int foregroundColor = ((ForegroundColorSpan) spans[0]).getForegroundColor(); in testBuilder_ensureColorSpanContrast_partialLength_adjusted() local
444 assertContrastIsWithinRange(foregroundColor, background, 3, 3.2); in testBuilder_ensureColorSpanContrast_partialLength_adjusted()
/aosp12/frameworks/ex/common/java/com/android/ex/editstyledtext/
H A DEditStyledText.java1220 int foregroundColor; in setTextComposingMask() local
1222 foregroundColor = mColorWaitInput; in setTextComposingMask()
1224 foregroundColor = mEST.getForegroundColor(min); in setTextComposingMask()
1229 "--- fg:" + Integer.toHexString(foregroundColor) + ",bg:" in setTextComposingMask()
1233 if (foregroundColor == backgroundColor) { in setTextComposingMask()
/aosp12/frameworks/base/core/java/android/text/
H A DHtml.java1317 public Foreground(int foregroundColor) { in Foreground() argument
1318 mForegroundColor = foregroundColor; in Foreground()
/aosp12/frameworks/base/core/java/android/app/
H A DNotification.java6275 int foregroundColor = originalSpan.getForegroundColor(); in ensureColorSpanContrast() local
6277 foregroundColor = ContrastColorUtil.ensureLargeTextContrast( in ensureColorSpanContrast()
6278 foregroundColor, background, isBgDark); in ensureColorSpanContrast()
6279 resultSpan = new ForegroundColorSpan(foregroundColor); in ensureColorSpanContrast()
/aosp12/frameworks/base/tools/aapt2/integration-tests/CommandTests/
H A Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...
/aosp12/frameworks/base/core/api/
H A Dcurrent.txt51231 field public final int foregroundColor;
/aosp12/frameworks/opt/setupwizard/tools/docs/
H A Dandroid-22.txt35213 field public final int foregroundColor;
/aosp12/frameworks/base/boot/hiddenapi/
H A Dhiddenapi-max-target-o.txt28177 Landroid/media/Cea708CCParser$CaptionPenColor;->foregroundColor:Landroid/media/Cea708CCParser$Capti…