Searched refs:getPopulation (Results 1 – 3 of 3) sorted by relevance
183 } else if ((float) coloredCandidate.getPopulation() / dominantSwatch.getPopulation() in selectForegroundColorForSwatches()204 float populationFraction = first.getPopulation() / (float) second.getPopulation(); in selectMutedCandidate()222 int firstPopulation = first.getPopulation(); in selectVibrantCandidate()223 int secondPopulation = second.getPopulation(); in selectVibrantCandidate()241 && (swatch.getPopulation() / (float) RESIZE_BITMAP_AREA > MINIMUM_IMAGE_FRACTION); in hasEnoughPopulation()276 && swatch.getPopulation() > highestNonWhitePopulation in findBackgroundSwatch()279 highestNonWhitePopulation = swatch.getPopulation(); in findBackgroundSwatch()285 if (dominantSwatch.getPopulation() / highestNonWhitePopulation in findBackgroundSwatch()
179 swatches.removeIf(s -> s.getPopulation() < minColorArea); in fromBitmap()180 swatches.sort((a, b) -> b.getPopulation() - a.getPopulation()); in fromBitmap()
405 final int maxPopulation = mDominantSwatch != null ? mDominantSwatch.getPopulation() : 1; in generateScore()417 * (swatch.getPopulation() / (float) maxPopulation); in generateScore()428 if (swatch.getPopulation() > maxPop) { in findDominantSwatch()430 maxPop = swatch.getPopulation(); in findDominantSwatch()503 public int getPopulation() { in getPopulation() method in Palette.Swatch