Home
last modified time | relevance | path

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

/frameworks/support/v7/palette/src/androidTest/java/android/support/v7/graphics/
DSwatchTests.java27 import static android.support.v4.graphics.ColorUtils.calculateContrast;
72 assertTrue(calculateContrast(bodyTextColor, swatch.getRgb()) >= MIN_CONTRAST_BODY_TEXT); in testSwatchTextColorContrasts()
75 assertTrue(calculateContrast(titleTextColor, swatch.getRgb()) >= MIN_CONTRAST_TITLE_TEXT); in testSwatchTextColorContrasts()
/frameworks/base/core/java/com/android/internal/util/
DNotificationColorUtil.java245 if (ColorUtilsFromCompat.calculateContrast(fg, bg) >= minRatio) { in findContrastColor()
261 if (ColorUtilsFromCompat.calculateContrast(fg, bg) > minRatio) { in findContrastColor()
296 ColorUtilsFromCompat.calculateContrast(colorOld, bg), in contrastChange()
297 ColorUtilsFromCompat.calculateContrast(colorNew, bg)); in contrastChange()
406 public static double calculateContrast(@ColorInt int foreground, @ColorInt int background) { in calculateContrast() method in NotificationColorUtil.ColorUtilsFromCompat
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
DMediaRouterThemeHelper.java89 if (ColorUtils.calculateContrast(COLOR_WHITE_ON_DARK_BACKGROUND, primaryColor) in getControllerColor()
101 if (ColorUtils.calculateContrast(primaryColor, backgroundColor) < MIN_CONTRAST) { in getButtonTextColor()
/frameworks/support/v4/java/android/support/v4/graphics/
DColorUtils.java90 public static double calculateContrast(@ColorInt int foreground, @ColorInt int background) { in calculateContrast() method in ColorUtils
126 double testRatio = calculateContrast(testForeground, background); in calculateMinimumAlpha()
142 testRatio = calculateContrast(testForeground, background); in calculateMinimumAlpha()
/frameworks/support/v4/api/
D22.1.0.txt957 method public static double calculateContrast(int, int);
D22.2.1.txt1005 method public static double calculateContrast(int, int);
D22.2.0.txt1004 method public static double calculateContrast(int, int);
D23.0.0.txt1137 method public static double calculateContrast(int, int);
D23.1.0.txt1152 method public static double calculateContrast(int, int);
D23.1.1.txt1105 method public static double calculateContrast(int, int);
Dcurrent.txt1189 method public static double calculateContrast(int, int);