Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/util/
DContrastColorUtil.java303 if (ColorUtilsFromCompat.calculateContrast(fg, bg) >= minRatio) { in findContrastColor()
319 if (ColorUtilsFromCompat.calculateContrast(fg, bg) > minRatio) { in findContrastColor()
339 if (ColorUtilsFromCompat.calculateContrast(fg, bg) >= minRatio) { in findAlphaToMeetContrast()
351 if (ColorUtilsFromCompat.calculateContrast(fg, bg) > minRatio) { in findAlphaToMeetContrast()
374 if (ColorUtilsFromCompat.calculateContrast(fg, bg) >= minRatio) { in findContrastColorAgainstDark()
390 if (ColorUtilsFromCompat.calculateContrast(fg, bg) > minRatio) { in findContrastColorAgainstDark()
450 ColorUtilsFromCompat.calculateContrast(colorOld, bg), in contrastChange()
451 ColorUtilsFromCompat.calculateContrast(colorNew, bg)); in contrastChange()
606 public static double calculateContrast(int foregroundColor, int backgroundColor) { in calculateContrast() method in ContrastColorUtil
607 return ColorUtilsFromCompat.calculateContrast(foregroundColor, backgroundColor); in calculateContrast()
[all …]
/frameworks/base/core/java/com/android/internal/graphics/
DColorUtils.java91 public static double calculateContrast(@ColorInt int foreground, @ColorInt int background) { in calculateContrast() method in ColorUtils
129 return calculateContrast(fg, testBackground); in calculateMinimumBackgroundAlpha()
152 return calculateContrast(testForeground, bg); in calculateMinimumAlpha()
156 double testRatio = contrastCalculator.calculateContrast(foreground, background, 255); in calculateMinimumAlpha()
186 final double testRatio = calculator.calculateContrast(foreground, background, in binaryAlphaSearch()
662 double calculateContrast(int foreground, int background, int alpha); in calculateContrast() method
/frameworks/base/tests/Internal/src/com/android/internal/graphics/
DColorUtilsTest.java38 double contrast = ColorUtils.calculateContrast(Color.WHITE, worstCase); in calculateMinimumBackgroundAlpha_satisfiestContrast()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/
DNotificationViewWrapper.java180 if (ColorUtils.calculateContrast(foreground, backgroundColor) < 3) { in childrenNeedInversion()
/frameworks/base/core/java/android/app/
DWallpaperColors.java404 .calculateContrast(pixels[i], Color.BLACK) > DARK_PIXEL_CONTRAST; in calculateDarkHints()
DNotification.java4928 double contrast = ContrastColorUtil.calculateContrast(mForegroundColor, in ensureColors()
4960 if (ContrastColorUtil.calculateContrast(mSecondaryTextColor, in ensureColors()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSmartReplyView.java137 mMinStrokeContrast = ContrastColorUtil.calculateContrast(mDefaultStrokeColor, in SmartReplyView()
/frameworks/base/config/
Dboot-image-profile.txt27897 …ndroid/internal/graphics/-$$Lambda$ColorUtils$zbDH-52c8D9XBeqmvTHi3Boxl14;->calculateContrast(III)D
27903 HSPLcom/android/internal/graphics/ColorUtils;->calculateContrast(II)D
29831 HSPLcom/android/internal/util/ContrastColorUtil$ColorUtilsFromCompat;->calculateContrast(II)D
29838 HSPLcom/android/internal/util/ContrastColorUtil;->calculateContrast(II)D