Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/graphics/palette/
DColorCutQuantizer.java385 int totalPopulation = 0; in getAverageColor() local
391 totalPopulation += colorPopulation; in getAverageColor()
397 final int redMean = Math.round(redSum / (float) totalPopulation); in getAverageColor()
398 final int greenMean = Math.round(greenSum / (float) totalPopulation); in getAverageColor()
399 final int blueMean = Math.round(blueSum / (float) totalPopulation); in getAverageColor()
401 return new Swatch(approximateToRgb888(redMean, greenMean, blueMean), totalPopulation); in getAverageColor()
/frameworks/libs/systemui/monet/src/com/android/systemui/monet/
DColorScheme.java211 double totalPopulation = wallpaperColors.getAllColors().values().stream().mapToInt( in getSeedColors() local
213 boolean totalPopulationMeaningless = (totalPopulation == 0.0); in getSeedColors()
234 entry -> entry.getValue().doubleValue() / totalPopulation)); in getSeedColors()
/frameworks/base/core/java/android/app/
DWallpaperColors.java410 double totalPopulation = 0; in hueProportions() local
412 totalPopulation += entry.getValue(); in hueProportions()
420 proportions[hue] = proportions[hue] + ((double) population / totalPopulation); in hueProportions()