Searched refs:calculateContrast (Results 1 – 11 of 11) sorted by relevance
/frameworks/support/v7/palette/src/androidTest/java/android/support/v7/graphics/ |
D | SwatchTests.java | 27 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/ |
D | NotificationColorUtil.java | 245 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/ |
D | MediaRouterThemeHelper.java | 89 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/ |
D | ColorUtils.java | 90 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/ |
D | 22.1.0.txt | 957 method public static double calculateContrast(int, int);
|
D | 22.2.1.txt | 1005 method public static double calculateContrast(int, int);
|
D | 22.2.0.txt | 1004 method public static double calculateContrast(int, int);
|
D | 23.0.0.txt | 1137 method public static double calculateContrast(int, int);
|
D | 23.1.0.txt | 1152 method public static double calculateContrast(int, int);
|
D | 23.1.1.txt | 1105 method public static double calculateContrast(int, int);
|
D | current.txt | 1189 method public static double calculateContrast(int, int);
|