Searched refs:calculateLuminance (Results 1 – 9 of 9) sorted by relevance
368 return calculateLuminance(color) <= 0.17912878474; in isColorDark()689 return ColorUtilsFromCompat.calculateLuminance(backgroundColor) > 0.17912878474; in shouldUseDark()692 public static double calculateLuminance(int backgroundColor) { in calculateLuminance() method in ContrastColorUtil693 return ColorUtilsFromCompat.calculateLuminance(backgroundColor); in calculateLuminance()714 return calculateLuminance(backgroundColor) > 0.5f; in isColorLight()778 public static double calculateLuminance(@ColorInt int color) { in calculateLuminance() method in ContrastColorUtil.ColorUtilsFromCompat802 final double luminance1 = calculateLuminance(foreground) + 0.05; in calculateContrast()803 final double luminance2 = calculateLuminance(background) + 0.05; in calculateContrast()
66 mBackgroundIsDark = ColorUtils.calculateLuminance(color) < 0.5f; in ensureBackground()
125 boolean needDarkText = ColorUtils.calculateLuminance(color) > 0.5f; in createAvatarSymbol()135 double luminance = ContrastColorUtil.calculateLuminance(layoutColor); in findColor()
402 double luminance = ContrastColorUtil.calculateLuminance(layoutColor); in findColor()
82 public static double calculateLuminance(@ColorInt int color) { in calculateLuminance() method in ColorUtils106 final double luminance1 = calculateLuminance(foreground) + 0.05; in calculateContrast()107 final double luminance2 = calculateLuminance(background) + 0.05; in calculateContrast()
513 assertThat(ContrastColorUtil.calculateLuminance(result)) in testBuilder_ensureButtonFillContrast_adjustsDarker()514 .isLessThan(ContrastColorUtil.calculateLuminance(background)); in testBuilder_ensureButtonFillContrast_adjustsDarker()523 assertThat(ContrastColorUtil.calculateLuminance(result)) in testBuilder_ensureButtonFillContrast_adjustsLighter()524 .isGreaterThan(ContrastColorUtil.calculateLuminance(background)); in testBuilder_ensureButtonFillContrast_adjustsLighter()
579 double adjustedLuminance = ColorUtils.calculateLuminance(compositeColors); in calculateDarkHints()
7065 return ContrastColorUtil.calculateLuminance(color) <= 0.17912878474; in isColorDark()
84603 Lcom/android/internal/util/NotificationColorUtil$ColorUtilsFromCompat;->calculateLuminance(I)D84632 Lcom/android/internal/util/NotificationColorUtil;->calculateLuminance(I)D