Searched refs:ensureTextContrast (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
D | ContrastColorUtilTest.java | 56 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/ |
D | StackEducationView.kt | 111 textColor = ContrastColorUtil.ensureTextContrast(textColor, bgColor, true) in setTextColor()
|
D | BubbleOverflowContainerView.java | 234 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/ |
D | ContrastColorUtil.java | 510 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/ |
D | SmartReplyView.java | 731 mCurrentTextColor = ContrastColorUtil.ensureTextContrast( in setBackgroundTintColor()
|
/frameworks/base/boot/hiddenapi/ |
D | hiddenapi-max-target-o.txt | 84641 Lcom/android/internal/util/NotificationColorUtil;->ensureTextContrast(IIZ)I
|