Home
last modified time | relevance | path

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

/aosp14/frameworks/base/core/java/android/view/accessibility/
H A DCaptioningManager.java419 public final int foregroundColor; field in CaptioningManager.CaptionStyle
460 private CaptionStyle(int foregroundColor, int backgroundColor, int edgeType, int edgeColor, in CaptionStyle() argument
462 mHasForegroundColor = hasColor(foregroundColor); in CaptionStyle()
470 this.foregroundColor = mHasForegroundColor ? foregroundColor : Color.WHITE; in CaptionStyle()
504 overlay.foregroundColor : foregroundColor; in applyStyle()
582 final int foregroundColor = Secure.getInt( in getCustomStyle() local
583 cr, Secure.ACCESSIBILITY_CAPTIONING_FOREGROUND_COLOR, defStyle.foregroundColor); in getCustomStyle()
598 return new CaptionStyle(foregroundColor, backgroundColor, edgeType, edgeColor, in getCustomStyle()
/aosp14/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/bouncer/ui/composable/
H A DPinBouncer.kt164 foregroundColor = MaterialTheme.colorScheme.onSurfaceVariant,
194 val foregroundColor = regex
210 foregroundColor = foregroundColor,
231 foregroundColor: Color,
277 else -> foregroundColor
/aosp14/frameworks/base/core/java/com/android/internal/util/
H A DContrastColorUtil.java206 int foregroundColor = originalSpan.getForegroundColor(); in invertCharSequenceColors() local
207 resultSpan = new ForegroundColorSpan(processColor(foregroundColor)); in invertCharSequenceColors()
340 int foregroundColor = originalSpan.getForegroundColor(); in ensureColorSpanContrast() local
342 foregroundColor = ContrastColorUtil.ensureLargeTextContrast( in ensureColorSpanContrast()
343 foregroundColor, background, isBgDark); in ensureColorSpanContrast()
344 resultSpan = new ForegroundColorSpan(foregroundColor); in ensureColorSpanContrast()
697 public static double calculateContrast(int foregroundColor, int backgroundColor) { in calculateContrast() argument
698 return ColorUtilsFromCompat.calculateContrast(foregroundColor, backgroundColor); in calculateContrast()
701 public static boolean satisfiesTextContrast(int backgroundColor, int foregroundColor) { in satisfiesTextContrast() argument
702 return ContrastColorUtil.calculateContrast(foregroundColor, backgroundColor) >= 4.5; in satisfiesTextContrast()
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/util/
H A DContrastColorUtilTest.java137 int foregroundColor = ((ForegroundColorSpan) spans[0]).getForegroundColor(); in testBuilder_ensureColorSpanContrast_partialLength_adjusted() local
138 assertContrastIsWithinRange(foregroundColor, background, 3, 3.2); in testBuilder_ensureColorSpanContrast_partialLength_adjusted()
/aosp14/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()
/aosp14/frameworks/base/core/java/com/android/internal/widget/
H A DSubtitleView.java281 style.foregroundColor : defStyle.foregroundColor; in setStyle()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DRemoteInputView.java226 final int foregroundColor = dark ? Color.WHITE : Color.BLACK; in setBackgroundTintColor() local
229 deleteBgColor = foregroundColor; in setBackgroundTintColor()
231 accentColor = colorStateListWithDisabledAlpha(foregroundColor, 0x4D); // 30% in setBackgroundTintColor()
232 textColor = colorStateListWithDisabledAlpha(foregroundColor, 0x99); // 60% in setBackgroundTintColor()
233 hintColor = ColorUtils.setAlphaComponent(foregroundColor, 0x99); in setBackgroundTintColor()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/battery/
H A DBatteryMeterView.java465 public void updateColors(int foregroundColor, int backgroundColor, int singleToneColor) { in updateColors() argument
466 mDrawable.setColors(foregroundColor, backgroundColor, singleToneColor); in updateColors()
/aosp14/frameworks/base/core/java/android/text/
H A DHtml.java1328 public Foreground(int foregroundColor) { in Foreground() argument
1329 mForegroundColor = foregroundColor; in Foreground()
/aosp14/frameworks/base/tools/aapt2/integration-tests/CommandTests/
H A Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...
/aosp14/frameworks/base/core/api/
H A Dcurrent.txt54753 field public final int foregroundColor;
/aosp14/frameworks/base/boot/hiddenapi/
H A Dhiddenapi-max-target-o.txt25299 Landroid/media/Cea708CCParser$CaptionPenColor;->foregroundColor:Landroid/media/Cea708CCParser$Capti…