Searched refs:calculateContrast (Results 1 - 6 of 6) sorted by relevance
/frameworks/support/v7/palette/tests/java/android/support/v7/graphics/ |
H A D | SwatchTests.java | 20 import static android.support.v4.graphics.ColorUtils.calculateContrast; 73 assertTrue(calculateContrast(bodyTextColor, swatch.getRgb()) >= MIN_CONTRAST_BODY_TEXT); 76 assertTrue(calculateContrast(titleTextColor, swatch.getRgb()) >= MIN_CONTRAST_TITLE_TEXT);
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | NotificationColorUtil.java | 263 if (ColorUtilsFromCompat.calculateContrast(fg, bg) >= minRatio) { 279 if (ColorUtilsFromCompat.calculateContrast(fg, bg) > minRatio) { 299 if (ColorUtilsFromCompat.calculateContrast(fg, bg) >= minRatio) { 311 if (ColorUtilsFromCompat.calculateContrast(fg, bg) > minRatio) { 334 if (ColorUtilsFromCompat.calculateContrast(fg, bg) >= minRatio) { 350 if (ColorUtilsFromCompat.calculateContrast(fg, bg) > minRatio) { 389 ColorUtilsFromCompat.calculateContrast(colorOld, bg), 390 ColorUtilsFromCompat.calculateContrast(colorNew, bg)); 532 public static double calculateContrast(int foregroundColor, int backgroundColor) { method in class:NotificationColorUtil 533 return ColorUtilsFromCompat.calculateContrast(foregroundColo 614 public static double calculateContrast(@ColorInt int foreground, @ColorInt int background) { method in class:NotificationColorUtil.ColorUtilsFromCompat [all...] |
/frameworks/support/v7/mediarouter/src/android/support/v7/app/ |
H A D | MediaRouterThemeHelper.java | 96 if (ColorUtils.calculateContrast(COLOR_WHITE_ON_DARK_BACKGROUND, primaryColor) 108 if (ColorUtils.calculateContrast(primaryColor, backgroundColor) < MIN_CONTRAST) {
|
/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 double testRatio = calculateContrast(testForeground, background); 143 testRatio = calculateContrast(testForeground, background);
|
/frameworks/support/core-utils/java/android/support/v4/graphics/ |
H A D | ColorUtils.java | 90 public static double calculateContrast(@ColorInt int foreground, @ColorInt int background) { method in class:ColorUtils 126 double testRatio = calculateContrast(testForeground, background); 142 testRatio = calculateContrast(testForeground, background);
|
/frameworks/base/core/java/android/app/ |
H A D | Notification.java | 3938 double contrast = NotificationColorUtil.calculateContrast(mForegroundColor, 3970 if (NotificationColorUtil.calculateContrast(mSecondaryTextColor,
|
Completed in 1542 milliseconds