Home
last modified time | relevance | path

Searched refs:calculateLuminance (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/core/java/com/android/internal/util/
DContrastColorUtil.java598 return ColorUtilsFromCompat.calculateLuminance(backgroundColor) > 0.5; in shouldUseDark()
601 public static double calculateLuminance(int backgroundColor) { in calculateLuminance() method in ContrastColorUtil
602 return ColorUtilsFromCompat.calculateLuminance(backgroundColor); in calculateLuminance()
622 return calculateLuminance(backgroundColor) > 0.5f; in isColorLight()
686 public static double calculateLuminance(@ColorInt int color) { in calculateLuminance() method in ContrastColorUtil.ColorUtilsFromCompat
710 final double luminance1 = calculateLuminance(foreground) + 0.05; in calculateContrast()
711 final double luminance2 = calculateLuminance(background) + 0.05; in calculateContrast()
/frameworks/base/core/java/com/android/internal/graphics/
DColorUtils.java77 public static double calculateLuminance(@ColorInt int color) { in calculateLuminance() method in ColorUtils
101 final double luminance1 = calculateLuminance(foreground) + 0.05; in calculateContrast()
102 final double luminance2 = calculateLuminance(background) + 0.05; in calculateContrast()
/frameworks/base/core/java/com/android/internal/widget/
DMessagingLayout.java324 boolean needDarkText = ColorUtils.calculateLuminance(color) > 0.5f; in createAvatarSymbol()
334 double luminance = ContrastColorUtil.calculateLuminance(layoutColor); in findColor()
/frameworks/base/core/java/android/app/
DNotification.java4788 double backLum = ContrastColorUtil.calculateLuminance(backgroundColor); in ensureColors()
4789 double textLum = ContrastColorUtil.calculateLuminance(mForegroundColor); in ensureColors()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt106270 Lcom/android/internal/util/NotificationColorUtil$ColorUtilsFromCompat;->calculateLuminance(I)D
106300 Lcom/android/internal/util/NotificationColorUtil;->calculateLuminance(I)D