Home
last modified time | relevance | path

Searched refs:ensureTextContrast (Results 1 – 7 of 7) sorted by relevance

/aosp12/frameworks/base/core/tests/coretests/src/com/android/internal/util/
H A DContrastColorUtilTest.java35 int blueContrastColor = ContrastColorUtil.ensureTextContrast(Color.BLUE, darkBg, true); in testEnsureTextContrastAgainstDark()
38 int redContrastColor = ContrastColorUtil.ensureTextContrast(Color.RED, darkBg, true); in testEnsureTextContrastAgainstDark()
42 int greenContrastColor = ContrastColorUtil.ensureTextContrast(darkGreen, darkBg, true); in testEnsureTextContrastAgainstDark()
45 int grayContrastColor = ContrastColorUtil.ensureTextContrast(Color.DKGRAY, darkBg, true); in testEnsureTextContrastAgainstDark()
48 int selfContrastColor = ContrastColorUtil.ensureTextContrast(darkBg, darkBg, true); in testEnsureTextContrastAgainstDark()
57 int blueContrastColor = ContrastColorUtil.ensureTextContrast(lightBlue, lightBg, false); in testEnsureTextContrastAgainstLight()
60 int redContrastColor = ContrastColorUtil.ensureTextContrast(Color.RED, lightBg, false); in testEnsureTextContrastAgainstLight()
63 int greenContrastColor = ContrastColorUtil.ensureTextContrast(Color.GREEN, lightBg, false); in testEnsureTextContrastAgainstLight()
66 int grayContrastColor = ContrastColorUtil.ensureTextContrast(Color.LTGRAY, lightBg, false); in testEnsureTextContrastAgainstLight()
69 int selfContrastColor = ContrastColorUtil.ensureTextContrast(lightBg, lightBg, false); in testEnsureTextContrastAgainstLight()
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/graphics/
H A DIconPalette.java71 int contrastingColor = ensureTextContrast(resolvedColor, background); in resolveContrastColor()
111 private static int ensureTextContrast(int color, int bg) { in ensureTextContrast() method in IconPalette
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
H A DBubbleOverflowContainerView.java205 textColor = ContrastColorUtil.ensureTextContrast(textColor, bgColor, isNightMode); in updateTheme()
296 textColor = ContrastColorUtil.ensureTextContrast(textColor, bgColor, true); in onCreateViewHolder()
H A DStackEducationView.kt109 textColor = ContrastColorUtil.ensureTextContrast(textColor, bgColor, true)
/aosp12/frameworks/base/core/java/com/android/internal/util/
H A DContrastColorUtil.java422 public static int ensureTextContrast(int color, int bg, boolean isBgDarker) { in ensureTextContrast() method in ContrastColorUtil
496 color = ContrastColorUtil.ensureTextContrast(color, backgroundColor, isDark); in resolveContrastColor()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DSmartReplyView.java717 mCurrentTextColor = ContrastColorUtil.ensureTextContrast( in setBackgroundTintColor()
/aosp12/frameworks/base/boot/hiddenapi/
H A Dhiddenapi-max-target-o.txt88607 Lcom/android/internal/util/NotificationColorUtil;->ensureTextContrast(IIZ)I