Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/util/
DNotificationColorUtil.java300 public static int findContrastColor(int color, int other, boolean findFg, double minRatio) { in findContrastColor() argument
303 if (ColorUtilsFromCompat.calculateContrast(fg, bg) >= minRatio) { in findContrastColor()
319 if (ColorUtilsFromCompat.calculateContrast(fg, bg) > minRatio) { in findContrastColor()
336 public static int findAlphaToMeetContrast(int color, int backgroundColor, double minRatio) { in findAlphaToMeetContrast() argument
339 if (ColorUtilsFromCompat.calculateContrast(fg, bg) >= minRatio) { in findAlphaToMeetContrast()
351 if (ColorUtilsFromCompat.calculateContrast(fg, bg) > minRatio) { in findAlphaToMeetContrast()
371 double minRatio) { in findContrastColorAgainstDark() argument
374 if (ColorUtilsFromCompat.calculateContrast(fg, bg) >= minRatio) { in findContrastColorAgainstDark()
390 if (ColorUtilsFromCompat.calculateContrast(fg, bg) > minRatio) { in findContrastColorAgainstDark()