Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/colorextraction/types/
DTonal.java359 if (h >= candidate.minHue && h <= candidate.maxHue) { in findTonalPalette()
364 if (candidate.maxHue > 1.0f && h >= 0.0f && h <= fract(candidate.maxHue)) { in findTonalPalette()
377 } else if (h >= candidate.maxHue && h - candidate.maxHue < error) { in findTonalPalette()
379 error = h - candidate.maxHue; in findTonalPalette()
380 } else if (candidate.maxHue > 1.0f && h >= fract(candidate.maxHue) in findTonalPalette()
381 && h - fract(candidate.maxHue) < error) { in findTonalPalette()
383 error = h - fract(candidate.maxHue); in findTonalPalette()
404 public final float maxHue; field in Tonal.TonalPalette
417 float maxHue = Float.NEGATIVE_INFINITY; in TonalPalette() local
421 maxHue = Math.max(v, maxHue); in TonalPalette()
[all …]
/frameworks/base/tests/Internal/src/com/android/internal/colorextraction/types/
DTonalTest.java137 assertTrue("maxHue should be <= to 360.", palette.maxHue <= 360); in tonal_rangeTest()