Lines Matching defs:calculateContrast
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) {
437 ColorUtilsFromCompat.calculateContrast(colorOld, bg),
438 ColorUtilsFromCompat.calculateContrast(colorNew, bg));
595 public static double calculateContrast(int foregroundColor, int backgroundColor) {
596 return ColorUtilsFromCompat.calculateContrast(foregroundColor, backgroundColor);
600 return NotificationColorUtil.calculateContrast(foregroundColor, backgroundColor) >= 4.5;
677 public static double calculateContrast(@ColorInt int foreground, @ColorInt int background) {