Searched refs:calculateLuminance (Results 1 – 5 of 5) sorted by relevance
598 return ColorUtilsFromCompat.calculateLuminance(backgroundColor) > 0.5; in shouldUseDark()601 public static double calculateLuminance(int backgroundColor) { in calculateLuminance() method in ContrastColorUtil602 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.ColorUtilsFromCompat710 final double luminance1 = calculateLuminance(foreground) + 0.05; in calculateContrast()711 final double luminance2 = calculateLuminance(background) + 0.05; in calculateContrast()
77 public static double calculateLuminance(@ColorInt int color) { in calculateLuminance() method in ColorUtils101 final double luminance1 = calculateLuminance(foreground) + 0.05; in calculateContrast()102 final double luminance2 = calculateLuminance(background) + 0.05; in calculateContrast()
324 boolean needDarkText = ColorUtils.calculateLuminance(color) > 0.5f; in createAvatarSymbol()334 double luminance = ContrastColorUtil.calculateLuminance(layoutColor); in findColor()
4788 double backLum = ContrastColorUtil.calculateLuminance(backgroundColor); in ensureColors()4789 double textLum = ContrastColorUtil.calculateLuminance(mForegroundColor); in ensureColors()
106270 Lcom/android/internal/util/NotificationColorUtil$ColorUtilsFromCompat;->calculateLuminance(I)D106300 Lcom/android/internal/util/NotificationColorUtil;->calculateLuminance(I)D