Home
last modified time | relevance | path

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

12

/frameworks/support/v7/palette/tests/java/android/support/v7/graphics/
DSwatchTests.java20 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/
DNotificationColorUtil.java303 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/
DColorUtils.java91 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/
DColorUtilsTest.java37 double contrast = ColorUtils.calculateContrast(Color.WHITE, worstCase); in calculateMinimumBackgroundAlpha_satisfiestContrast()
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
DMediaRouterThemeHelper.java88 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/
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/core-utils/api/
Dcurrent.txt208 method public static double calculateContrast(int, int);
D26.0.0.txt208 method public static double calculateContrast(int, int);
/frameworks/base/core/java/android/app/
DNotification.java3996 double contrast = NotificationColorUtil.calculateContrast(mForegroundColor, in ensureColors()
4028 if (NotificationColorUtil.calculateContrast(mSecondaryTextColor, in ensureColors()
/frameworks/support/api/
D22.1.0.txt2541 method public static double calculateContrast(int, int);
D22.2.0.txt2927 method public static double calculateContrast(int, int);
D22.2.1.txt2956 method public static double calculateContrast(int, int);
D24.2.0.txt4818 method public static double calculateContrast(int, int);
D25.0.0.txt4874 method public static double calculateContrast(int, int);
D25.2.0.txt5256 method public static double calculateContrast(int, int);
D25.1.0.txt5256 method public static double calculateContrast(int, int);
D23.0.0.txt3567 method public static double calculateContrast(int, int);
D23.4.0.txt4173 method public static double calculateContrast(int, int);
D23.1.0.txt3846 method public static double calculateContrast(int, int);
D23.1.1.txt3802 method public static double calculateContrast(int, int);
D25.3.0.txt5637 method public static double calculateContrast(int, int);
D23.2.1.txt4161 method public static double calculateContrast(int, int);
D25.4.0.txt5689 method public static double calculateContrast(int, int);
D26.0.0-alpha1.txt6110 method public static double calculateContrast(int, int);
D23.2.0.txt4161 method public static double calculateContrast(int, int);

12