Home
last modified time | relevance | path

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

/frameworks/libs/systemui/monet/src/com/android/systemui/monet/
DColorScheme.java65 public ColorScheme(@ColorInt int seed, boolean isDark, Style style, double contrastLevel) { in ColorScheme() argument
80 case SPRITZ -> new SchemeNeutral(seedHct, isDark, contrastLevel); in ColorScheme()
81 case TONAL_SPOT -> new SchemeTonalSpot(seedHct, isDark, contrastLevel); in ColorScheme()
82 case VIBRANT -> new SchemeVibrant(seedHct, isDark, contrastLevel); in ColorScheme()
83 case EXPRESSIVE -> new SchemeExpressive(seedHct, isDark, contrastLevel); in ColorScheme()
84 case RAINBOW -> new SchemeRainbow(seedHct, isDark, contrastLevel); in ColorScheme()
85 case FRUIT_SALAD -> new SchemeFruitSalad(seedHct, isDark, contrastLevel); in ColorScheme()
86 case CONTENT -> new SchemeContent(seedHct, isDark, contrastLevel); in ColorScheme()
87 case MONOCHROMATIC -> new SchemeMonochrome(seedHct, isDark, contrastLevel); in ColorScheme()
89 case CLOCK -> new SchemeClock(seedHct, isDark, contrastLevel); in ColorScheme()
[all …]
DSchemeClockVibrant.java27 public SchemeClockVibrant(Hct sourceColorHct, boolean isDark, double contrastLevel) { in SchemeClockVibrant() argument
32 contrastLevel, in SchemeClockVibrant()
DSchemeClock.java29 public SchemeClock(Hct sourceColorHct, boolean isDark, double contrastLevel) { in SchemeClock() argument
34 contrastLevel, in SchemeClock()
/frameworks/base/core/java/android/app/
DUiModeManager.java507 return allContrastLevels().min(Comparator.comparingDouble(contrastLevel -> in toContrastLevel()
508 Math.abs(contrastLevel - 2 * contrast))).orElseThrow(); in toContrastLevel()
514 public static float fromContrastLevel(@ContrastLevel int contrastLevel) { in fromContrastLevel() argument
515 if (allContrastLevels().noneMatch(level -> level == contrastLevel)) { in fromContrastLevel()
516 throw new IllegalArgumentException("unrecognized contrast level: " + contrastLevel); in fromContrastLevel()
518 return contrastLevel / 2f; in fromContrastLevel()