Home
last modified time | relevance | path

Searched refs:calculateContrast (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/core/java/com/android/internal/util/
DContrastColorUtil.java303 if (ColorUtilsFromCompat.calculateContrast(fg, bg) >= minRatio) { in findContrastColor()
319 if (ColorUtilsFromCompat.calculateContrast(fg, bg) > minRatio) { in findContrastColor()
339 if (ColorUtilsFromCompat.calculateContrast(fg, bg) >= minRatio) { in findAlphaToMeetContrast()
351 if (ColorUtilsFromCompat.calculateContrast(fg, bg) > minRatio) { in findAlphaToMeetContrast()
374 if (ColorUtilsFromCompat.calculateContrast(fg, bg) >= minRatio) { in findContrastColorAgainstDark()
390 if (ColorUtilsFromCompat.calculateContrast(fg, bg) > minRatio) { in findContrastColorAgainstDark()
450 ColorUtilsFromCompat.calculateContrast(colorOld, bg), in contrastChange()
451 ColorUtilsFromCompat.calculateContrast(colorNew, bg)); in contrastChange()
606 public static double calculateContrast(int foregroundColor, int backgroundColor) { in calculateContrast() method in ContrastColorUtil
607 return ColorUtilsFromCompat.calculateContrast(foregroundColor, backgroundColor); in calculateContrast()
[all …]
/frameworks/base/core/java/com/android/internal/graphics/
DColorUtils.java91 public static double calculateContrast(@ColorInt int foreground, @ColorInt int background) { in calculateContrast() method in ColorUtils
129 return calculateContrast(fg, testBackground); in calculateMinimumBackgroundAlpha()
152 return calculateContrast(testForeground, bg); in calculateMinimumAlpha()
156 double testRatio = contrastCalculator.calculateContrast(foreground, background, 255); in calculateMinimumAlpha()
186 final double testRatio = calculator.calculateContrast(foreground, background, in binaryAlphaSearch()
662 double calculateContrast(int foreground, int background, int alpha); in calculateContrast() method
/frameworks/base/tests/Internal/src/com/android/internal/graphics/
DColorUtilsTest.java38 double contrast = ColorUtils.calculateContrast(Color.WHITE, worstCase); in calculateMinimumBackgroundAlpha_satisfiestContrast()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/
DNotificationViewWrapper.java164 if (ColorUtils.calculateContrast(foreground, backgroundColor) < 3) { in childrenNeedInversion()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/
DBubbleView.java299 double contrastRatio = ColorUtils.calculateContrast(Color.WHITE, backgroundColor); in checkTint()
/frameworks/base/core/java/android/app/
DWallpaperColors.java396 .calculateContrast(pixels[i], Color.BLACK) > DARK_PIXEL_CONTRAST; in calculateDarkHints()
DNotification.java4798 double contrast = ContrastColorUtil.calculateContrast(mForegroundColor, in ensureColors()
4830 if (ContrastColorUtil.calculateContrast(mSecondaryTextColor, in ensureColors()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSmartReplyView.java137 mMinStrokeContrast = ContrastColorUtil.calculateContrast(mDefaultStrokeColor, in SmartReplyView()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt99678 Lcom/android/internal/util/NotificationColorUtil$ColorUtilsFromCompat;->calculateContrast(II)D
99707 Lcom/android/internal/util/NotificationColorUtil;->calculateContrast(II)D