Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/util/
DContrastColorUtil.java368 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 ContrastColorUtil
693 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.ColorUtilsFromCompat
802 final double luminance1 = calculateLuminance(foreground) + 0.05; in calculateContrast()
803 final double luminance2 = calculateLuminance(background) + 0.05; in calculateContrast()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/back/
DBackAnimationBackground.java66 mBackgroundIsDark = ColorUtils.calculateLuminance(color) < 0.5f; in ensureBackground()
/frameworks/base/core/java/com/android/internal/widget/
DPeopleHelper.java125 boolean needDarkText = ColorUtils.calculateLuminance(color) > 0.5f; in createAvatarSymbol()
135 double luminance = ContrastColorUtil.calculateLuminance(layoutColor); in findColor()
DMessagingLayout.java402 double luminance = ContrastColorUtil.calculateLuminance(layoutColor); in findColor()
/frameworks/base/core/java/com/android/internal/graphics/
DColorUtils.java82 public static double calculateLuminance(@ColorInt int color) { in calculateLuminance() method in ColorUtils
106 final double luminance1 = calculateLuminance(foreground) + 0.05; in calculateContrast()
107 final double luminance2 = calculateLuminance(background) + 0.05; in calculateContrast()
/frameworks/base/core/tests/coretests/src/android/app/
DNotificationTest.java513 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()
/frameworks/base/core/java/android/app/
DWallpaperColors.java579 double adjustedLuminance = ColorUtils.calculateLuminance(compositeColors); in calculateDarkHints()
DNotification.java7065 return ContrastColorUtil.calculateLuminance(color) <= 0.17912878474; in isColorDark()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt84603 Lcom/android/internal/util/NotificationColorUtil$ColorUtilsFromCompat;->calculateLuminance(I)D
84632 Lcom/android/internal/util/NotificationColorUtil;->calculateLuminance(I)D