Home
last modified time | relevance | path

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

/aosp14/frameworks/base/core/java/com/android/internal/util/
H A DContrastColorUtil.java391 if (ColorUtilsFromCompat.calculateContrast(fg, bg) >= minRatio) { in findContrastColor()
407 if (ColorUtilsFromCompat.calculateContrast(fg, bg) > minRatio) { in findContrastColor()
427 if (ColorUtilsFromCompat.calculateContrast(fg, bg) >= minRatio) { in findAlphaToMeetContrast()
439 if (ColorUtilsFromCompat.calculateContrast(fg, bg) > minRatio) { in findAlphaToMeetContrast()
462 if (ColorUtilsFromCompat.calculateContrast(fg, bg) >= minRatio) { in findContrastColorAgainstDark()
478 if (ColorUtilsFromCompat.calculateContrast(fg, bg) > minRatio) { in findContrastColorAgainstDark()
539 ColorUtilsFromCompat.calculateContrast(colorOld, bg), in contrastChange()
540 ColorUtilsFromCompat.calculateContrast(colorNew, bg)); in contrastChange()
697 public static double calculateContrast(int foregroundColor, int backgroundColor) { in calculateContrast() method in ContrastColorUtil
698 return ColorUtilsFromCompat.calculateContrast(foregroundColor, backgroundColor); in calculateContrast()
[all …]
/aosp14/frameworks/base/core/java/com/android/internal/graphics/
H A DColorUtils.java96 public static double calculateContrast(@ColorInt int foreground, @ColorInt int background) { in calculateContrast() method in ColorUtils
134 return calculateContrast(fg, testBackground); in calculateMinimumBackgroundAlpha()
157 return calculateContrast(testForeground, bg); in calculateMinimumAlpha()
161 double testRatio = contrastCalculator.calculateContrast(foreground, background, 255); in calculateMinimumAlpha()
191 final double testRatio = calculator.calculateContrast(foreground, background, in binaryAlphaSearch()
696 double calculateContrast(int foreground, int background, int alpha); in calculateContrast() method
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/util/
H A DContrastColorUtilTest.java19 import static androidx.core.graphics.ColorUtils.calculateContrast;
187 assertThat(calculateContrast(foreground, background)).isAtLeast(minContrast); in assertContrastIsAtLeast()
197 assertThat(calculateContrast(foreground, background)).isAtMost(maxContrast); in assertContrastIsAtMost()
/aosp14/frameworks/base/tests/Internal/src/com/android/internal/graphics/
H A DColorUtilsTest.java38 double contrast = ColorUtils.calculateContrast(Color.WHITE, worstCase); in calculateMinimumBackgroundAlpha_satisfiestContrast()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DLetterboxAppearanceCalculator.kt175 ContrastColorUtil.calculateContrast(
178 ContrastColorUtil.calculateContrast(
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/
H A DNotificationViewWrapper.java181 if (ColorUtils.calculateContrast(foreground, backgroundColor) < 3) { in childrenNeedInversion()
/aosp14/frameworks/base/core/java/android/app/
H A DWallpaperColors.java584 .calculateContrast(pixelColor, Color.BLACK) > DARK_PIXEL_CONTRAST; in calculateDarkHints()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DSmartReplyView.java117 mMinStrokeContrast = ContrastColorUtil.calculateContrast(mDefaultStrokeColor, in SmartReplyView()
/aosp14/frameworks/base/boot/hiddenapi/
H A Dhiddenapi-max-target-o.txt85245 Lcom/android/internal/util/NotificationColorUtil$ColorUtilsFromCompat;->calculateContrast(II)D
85274 Lcom/android/internal/util/NotificationColorUtil;->calculateContrast(II)D