/frameworks/support/v7/palette/tests/java/android/support/v7/graphics/ |
D | SwatchTests.java | 20 import static android.support.v4.graphics.ColorUtils.calculateContrast; 73 assertTrue(calculateContrast(bodyTextColor, swatch.getRgb()) >= MIN_CONTRAST_BODY_TEXT); in testSwatchTextColorContrasts() 76 assertTrue(calculateContrast(titleTextColor, swatch.getRgb()) >= MIN_CONTRAST_TITLE_TEXT); in testSwatchTextColorContrasts()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | NotificationColorUtil.java | 303 if (ColorUtilsFromCompat.calculateContrast(fg, bg) >= minRatio) { in findContrastColor() 319 if (ColorUtilsFromCompat.calculateContrast(fg, bg) > minRatio) { in findContrastColor() 339 if (ColorUtilsFromCompat.calculateContrast(fg, bg) >= minRatio) { in findAlphaToMeetContrast() 351 if (ColorUtilsFromCompat.calculateContrast(fg, bg) > minRatio) { in findAlphaToMeetContrast() 374 if (ColorUtilsFromCompat.calculateContrast(fg, bg) >= minRatio) { in findContrastColorAgainstDark() 390 if (ColorUtilsFromCompat.calculateContrast(fg, bg) > minRatio) { in findContrastColorAgainstDark() 437 ColorUtilsFromCompat.calculateContrast(colorOld, bg), in contrastChange() 438 ColorUtilsFromCompat.calculateContrast(colorNew, bg)); in contrastChange() 595 public static double calculateContrast(int foregroundColor, int backgroundColor) { in calculateContrast() method in NotificationColorUtil 596 return ColorUtilsFromCompat.calculateContrast(foregroundColor, backgroundColor); in calculateContrast() [all …]
|
/frameworks/base/core/java/com/android/internal/graphics/ |
D | ColorUtils.java | 91 public static double calculateContrast(@ColorInt int foreground, @ColorInt int background) { in calculateContrast() method in ColorUtils 129 return calculateContrast(fg, testBackground); in calculateMinimumBackgroundAlpha() 152 return calculateContrast(testForeground, bg); in calculateMinimumAlpha() 156 double testRatio = contrastCalculator.calculateContrast(foreground, background, 255); in calculateMinimumAlpha() 186 final double testRatio = calculator.calculateContrast(foreground, background, in binaryAlphaSearch() 662 double calculateContrast(int foreground, int background, int alpha); in calculateContrast() method
|
/frameworks/base/tests/Internal/src/com/android/internal/graphics/ |
D | ColorUtilsTest.java | 37 double contrast = ColorUtils.calculateContrast(Color.WHITE, worstCase); in calculateMinimumBackgroundAlpha_satisfiestContrast()
|
/frameworks/support/v7/mediarouter/src/android/support/v7/app/ |
D | MediaRouterThemeHelper.java | 88 if (ColorUtils.calculateContrast(COLOR_WHITE_ON_DARK_BACKGROUND, primaryColor) in getControllerColor() 100 if (ColorUtils.calculateContrast(primaryColor, backgroundColor) < MIN_CONTRAST) { in getButtonTextColor()
|
/frameworks/support/core-utils/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/core-utils/api/ |
D | current.txt | 208 method public static double calculateContrast(int, int);
|
D | 26.0.0.txt | 208 method public static double calculateContrast(int, int);
|
/frameworks/base/core/java/android/app/ |
D | Notification.java | 3996 double contrast = NotificationColorUtil.calculateContrast(mForegroundColor, in ensureColors() 4028 if (NotificationColorUtil.calculateContrast(mSecondaryTextColor, in ensureColors()
|
/frameworks/support/api/ |
D | 22.1.0.txt | 2541 method public static double calculateContrast(int, int);
|
D | 22.2.0.txt | 2927 method public static double calculateContrast(int, int);
|
D | 22.2.1.txt | 2956 method public static double calculateContrast(int, int);
|
D | 24.2.0.txt | 4818 method public static double calculateContrast(int, int);
|
D | 25.0.0.txt | 4874 method public static double calculateContrast(int, int);
|
D | 25.2.0.txt | 5256 method public static double calculateContrast(int, int);
|
D | 25.1.0.txt | 5256 method public static double calculateContrast(int, int);
|
D | 23.0.0.txt | 3567 method public static double calculateContrast(int, int);
|
D | 23.4.0.txt | 4173 method public static double calculateContrast(int, int);
|
D | 23.1.0.txt | 3846 method public static double calculateContrast(int, int);
|
D | 23.1.1.txt | 3802 method public static double calculateContrast(int, int);
|
D | 25.3.0.txt | 5637 method public static double calculateContrast(int, int);
|
D | 23.2.1.txt | 4161 method public static double calculateContrast(int, int);
|
D | 25.4.0.txt | 5689 method public static double calculateContrast(int, int);
|
D | 26.0.0-alpha1.txt | 6110 method public static double calculateContrast(int, int);
|
D | 23.2.0.txt | 4161 method public static double calculateContrast(int, int);
|