Searched refs:calculateContrast (Results 1 – 9 of 9) sorted by relevance
/frameworks/base/core/java/com/android/internal/util/ |
D | ContrastColorUtil.java | 303 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/ |
D | ColorUtils.java | 91 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/ |
D | ColorUtilsTest.java | 38 double contrast = ColorUtils.calculateContrast(Color.WHITE, worstCase); in calculateMinimumBackgroundAlpha_satisfiestContrast()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/ |
D | NotificationViewWrapper.java | 164 if (ColorUtils.calculateContrast(foreground, backgroundColor) < 3) { in childrenNeedInversion()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/ |
D | BubbleView.java | 299 double contrastRatio = ColorUtils.calculateContrast(Color.WHITE, backgroundColor); in checkTint()
|
/frameworks/base/core/java/android/app/ |
D | WallpaperColors.java | 396 .calculateContrast(pixels[i], Color.BLACK) > DARK_PIXEL_CONTRAST; in calculateDarkHints()
|
D | Notification.java | 4798 double contrast = ContrastColorUtil.calculateContrast(mForegroundColor, in ensureColors() 4830 if (ContrastColorUtil.calculateContrast(mSecondaryTextColor, in ensureColors()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | SmartReplyView.java | 137 mMinStrokeContrast = ContrastColorUtil.calculateContrast(mDefaultStrokeColor, in SmartReplyView()
|
/frameworks/base/config/ |
D | hiddenapi-greylist-max-o.txt | 99678 Lcom/android/internal/util/NotificationColorUtil$ColorUtilsFromCompat;->calculateContrast(II)D 99707 Lcom/android/internal/util/NotificationColorUtil;->calculateContrast(II)D
|