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

/frameworks/base/core/java/com/android/internal/util/
H A DNotificationColorUtil.java597 useDark = ColorUtilsFromCompat.calculateLuminance(backgroundColor) > 0.5;
602 public static double calculateLuminance(int backgroundColor) { method in class:NotificationColorUtil
603 return ColorUtilsFromCompat.calculateLuminance(backgroundColor);
623 return calculateLuminance(backgroundColor) > 0.5f;
675 public static double calculateLuminance(@ColorInt int color) { method in class:NotificationColorUtil.ColorUtilsFromCompat
699 final double luminance1 = calculateLuminance(foreground) + 0.05;
700 final double luminance2 = calculateLuminance(background) + 0.05;
/frameworks/base/core/java/com/android/internal/graphics/
H A DColorUtils.java77 public static double calculateLuminance(@ColorInt int color) { method in class:ColorUtils
101 final double luminance1 = calculateLuminance(foreground) + 0.05;
102 final double luminance2 = calculateLuminance(background) + 0.05;
/frameworks/support/compat/src/main/java/androidx/core/graphics/
H A DColorUtils.java144 public static double calculateLuminance(@ColorInt int color) { method in class:ColorUtils
168 final double luminance1 = calculateLuminance(foreground) + 0.05;
169 final double luminance2 = calculateLuminance(background) + 0.05;
/frameworks/base/core/java/com/android/internal/widget/
H A DMessagingLayout.java308 boolean needDarkText = ColorUtils.calculateLuminance(color) > 0.5f;
318 double luminance = NotificationColorUtil.calculateLuminance(layoutColor);
/frameworks/base/core/java/android/app/
H A DNotification.java4486 double backLum = NotificationColorUtil.calculateLuminance(backgroundColor);
4487 double textLum = NotificationColorUtil.calculateLuminance(mForegroundColor);

Completed in 240 milliseconds