Home
last modified time | relevance | path

Searched refs:minContrastRatio (Results 1 – 1 of 1) sorted by relevance

/frameworks/base/core/java/com/android/internal/graphics/
DColorUtils.java119 @ColorInt int background, float minContrastRatio) { in calculateMinimumBackgroundAlpha() argument
124 return binaryAlphaSearch(foreground, background, minContrastRatio, (fg, bg, alpha) -> { in calculateMinimumBackgroundAlpha()
144 float minContrastRatio) { in calculateMinimumAlpha() argument
157 if (testRatio < minContrastRatio) { in calculateMinimumAlpha()
162 return binaryAlphaSearch(foreground, background, minContrastRatio, contrastCalculator); in calculateMinimumAlpha()
176 float minContrastRatio, ContrastCalculator calculator) { in binaryAlphaSearch() argument
188 if (testRatio < minContrastRatio) { in binaryAlphaSearch()