/aosp12/packages/apps/Car/Notification/src/com/android/car/notification/ |
H A D | NotificationUtils.java | 200 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 D | CaptioningManager.java | 315 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 D | Cea708Data.java | 214 public final CaptionColor foregroundColor; field in Cea708Data.CaptionPenColor 219 CaptionColor foregroundColor, in CaptionPenColor() argument 222 this.foregroundColor = foregroundColor; in CaptionPenColor()
|
H A 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()
|
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/ |
H A D | EmojiCategoryPageIndicatorView.java | 41 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 D | ContrastColorUtil.java | 204 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 D | Cea708CaptionRenderer.java | 501 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 D | TtmlRenderer.java | 698 mTextView.setTextColor(captionManager.getUserStyle().foregroundColor); in TtmlRenderingWidget()
|
H A D | ClosedCaptionRenderer.java | 1294 mTextColor = captionStyle.foregroundColor; in setCaptionStyle()
|
H A D | WebVttRenderer.java | 1861 setForegroundColor(captionStyle.foregroundColor); in setCaptionStyle()
|
/aosp12/packages/apps/Settings/src/com/android/settings/accessibility/ |
H A D | CaptionAppearanceFragment.java | 300 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 D | SubtitleView.java | 280 style.foregroundColor : defStyle.foregroundColor; in setStyle()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | RemoteInputView.java | 207 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 D | BatteryMeterView.java | 368 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 D | ThemeComponentOption.java | 508 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 D | SubtitleView.java | 173 mForegroundColor = style.foregroundColor; in setStyle()
|
/aosp12/frameworks/base/core/tests/coretests/src/android/app/ |
H A D | NotificationTest.java | 443 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 D | EditStyledText.java | 1220 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 D | Html.java | 1317 public Foreground(int foregroundColor) { in Foreground() argument 1318 mForegroundColor = foregroundColor; in Foreground()
|
/aosp12/frameworks/base/core/java/android/app/ |
H A D | Notification.java | 6275 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 D | android-28.jar | META-INF/
META-INF/MANIFEST.MF
javax/
javax/net/
javax/ ... |
/aosp12/frameworks/base/core/api/ |
H A D | current.txt | 51231 field public final int foregroundColor;
|
/aosp12/frameworks/opt/setupwizard/tools/docs/ |
H A D | android-22.txt | 35213 field public final int foregroundColor;
|
/aosp12/frameworks/base/boot/hiddenapi/ |
H A D | hiddenapi-max-target-o.txt | 28177 Landroid/media/Cea708CCParser$CaptionPenColor;->foregroundColor:Landroid/media/Cea708CCParser$Capti…
|