Searched refs:calculateContrast (Results 1 - 7 of 7) sorted by relevance
/frameworks/base/tests/Internal/src/com/android/internal/graphics/ |
H A D | ColorUtilsTest.java | 37 double contrast = ColorUtils.calculateContrast(Color.WHITE, worstCase);
|
/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 | 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) { method in class:NotificationColorUtil 596 return ColorUtilsFromCompat.calculateContrast(foregroundColo 677 public static double calculateContrast(@ColorInt int foreground, @ColorInt int background) { method in class:NotificationColorUtil.ColorUtilsFromCompat [all...] |
/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 // raising an exception in calculateContrast. 129 return calculateContrast(fg, testBackground); 152 return calculateContrast(testForeground, bg); 156 double testRatio = contrastCalculator.calculateContrast(foreground, background, 255); 186 final double testRatio = calculator.calculateContrast(foreground, background, 662 double calculateContrast(int foreground, int background, int alpha); method in interface:ColorUtils.ContrastCalculator
|
/frameworks/support/v7/mediarouter/src/android/support/v7/app/ |
H A D | MediaRouterThemeHelper.java | 88 if (ColorUtils.calculateContrast(COLOR_WHITE_ON_DARK_BACKGROUND, primaryColor) 100 if (ColorUtils.calculateContrast(primaryColor, backgroundColor) < MIN_CONTRAST) {
|
/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 | 3996 double contrast = NotificationColorUtil.calculateContrast(mForegroundColor, 4028 if (NotificationColorUtil.calculateContrast(mSecondaryTextColor,
|
Completed in 213 milliseconds