Searched defs:calculateContrast (Results 1 - 3 of 3) sorted by relevance
/frameworks/support/compat/src/main/java/androidx/core/graphics/ |
H A D | ColorUtils.java | 158 public static double calculateContrast(@ColorInt int foreground, @ColorInt int background) { method in class:ColorUtils 194 double testRatio = calculateContrast(testForeground, background); 210 testRatio = calculateContrast(testForeground, background);
|
/frameworks/base/core/java/com/android/internal/graphics/ |
H A D | ColorUtils.java | 91 public static double calculateContrast(@ColorInt int foreground, @ColorInt int background) { method in class:ColorUtils 127 // raising an exception in calculateContrast. 129 return calculateContrast(fg, testBackground); 152 return calculateContrast(testForeground, bg); 156 double testRatio = contrastCalculator.calculateContrast(foreground, background, 255); 186 final double testRatio = calculator.calculateContrast(foreground, background, 662 double calculateContrast(int foreground, int background, int alpha); method in interface:ColorUtils.ContrastCalculator
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | NotificationColorUtil.java | 303 if (ColorUtilsFromCompat.calculateContrast(fg, bg) >= minRatio) { 319 if (ColorUtilsFromCompat.calculateContrast(fg, bg) > minRatio) { 339 if (ColorUtilsFromCompat.calculateContrast(fg, bg) >= minRatio) { 351 if (ColorUtilsFromCompat.calculateContrast(fg, bg) > minRatio) { 374 if (ColorUtilsFromCompat.calculateContrast(fg, bg) >= minRatio) { 390 if (ColorUtilsFromCompat.calculateContrast(fg, bg) > minRatio) { 450 ColorUtilsFromCompat.calculateContrast(colorOld, bg), 451 ColorUtilsFromCompat.calculateContrast(colorNew, bg)); 607 public static double calculateContrast(int foregroundColor, int backgroundColor) { method in class:NotificationColorUtil 608 return ColorUtilsFromCompat.calculateContrast(foregroundColo 689 public static double calculateContrast(@ColorInt int foreground, @ColorInt int background) { method in class:NotificationColorUtil.ColorUtilsFromCompat [all...] |
Completed in 90 milliseconds