Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DContrastColorUtilTest.java56 int blueContrastColor = ContrastColorUtil.ensureTextContrast(Color.BLUE, darkBg, true); in testEnsureTextContrastAgainstDark()
59 int redContrastColor = ContrastColorUtil.ensureTextContrast(Color.RED, darkBg, true); in testEnsureTextContrastAgainstDark()
63 int greenContrastColor = ContrastColorUtil.ensureTextContrast(darkGreen, darkBg, true); in testEnsureTextContrastAgainstDark()
66 int grayContrastColor = ContrastColorUtil.ensureTextContrast(Color.DKGRAY, darkBg, true); in testEnsureTextContrastAgainstDark()
69 int selfContrastColor = ContrastColorUtil.ensureTextContrast(darkBg, darkBg, true); in testEnsureTextContrastAgainstDark()
79 int blueContrastColor = ContrastColorUtil.ensureTextContrast(lightBlue, lightBg, false); in testEnsureTextContrastAgainstLight()
82 int redContrastColor = ContrastColorUtil.ensureTextContrast(Color.RED, lightBg, false); in testEnsureTextContrastAgainstLight()
85 int greenContrastColor = ContrastColorUtil.ensureTextContrast(Color.GREEN, lightBg, false); in testEnsureTextContrastAgainstLight()
88 int grayContrastColor = ContrastColorUtil.ensureTextContrast(Color.LTGRAY, lightBg, false); in testEnsureTextContrastAgainstLight()
91 int selfContrastColor = ContrastColorUtil.ensureTextContrast(lightBg, lightBg, false); in testEnsureTextContrastAgainstLight()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DStackEducationView.kt111 textColor = ContrastColorUtil.ensureTextContrast(textColor, bgColor, true) in setTextColor()
DBubbleOverflowContainerView.java234 textColor = ContrastColorUtil.ensureTextContrast(textColor, bgColor, isNightMode); in updateTheme()
322 textColor = ContrastColorUtil.ensureTextContrast(textColor, bgColor, true); in onCreateViewHolder()
/frameworks/base/core/java/com/android/internal/util/
DContrastColorUtil.java510 public static int ensureTextContrast(int color, int bg, boolean isBgDarker) { in ensureTextContrast() method in ContrastColorUtil
584 color = ContrastColorUtil.ensureTextContrast(color, backgroundColor, isDark); in resolveContrastColor()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSmartReplyView.java731 mCurrentTextColor = ContrastColorUtil.ensureTextContrast( in setBackgroundTintColor()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt84641 Lcom/android/internal/util/NotificationColorUtil;->ensureTextContrast(IIZ)I