Searched refs:Swatch (Results 1 – 12 of 12) sorted by relevance
51 public static Palette.Swatch findBackgroundSwatch(Bitmap artwork) { in findBackgroundSwatch()61 public static Palette.Swatch findBackgroundSwatch(Palette palette) { in findBackgroundSwatch()63 Palette.Swatch dominantSwatch = palette.getDominantSwatch(); in findBackgroundSwatch()65 return new Palette.Swatch(Color.WHITE, 100); in findBackgroundSwatch()72 List<Palette.Swatch> swatches = palette.getSwatches(); in findBackgroundSwatch()74 Palette.Swatch second = null; in findBackgroundSwatch()75 for (Palette.Swatch swatch : swatches) { in findBackgroundSwatch()
88 private final List<Swatch> mSwatches;92 private final Swatch mDominantSwatch;94 Palette(List<Swatch> swatches) { in Palette()101 public List<Swatch> getSwatches() { in getSwatches()107 public Swatch getDominantSwatch() { in getDominantSwatch()112 private Swatch findDominantSwatch() { in findDominantSwatch()114 Swatch maxSwatch = null; in findDominantSwatch()116 Swatch swatch = mSwatches.get(i); in findDominantSwatch()130 public static class Swatch { class in Palette172 Swatch swatch = (Swatch) o; in equals()[all …]
38 import com.android.internal.graphics.palette.Palette.Swatch;77 List<Swatch> mQuantizedColors;134 mQuantizedColors.add(new Swatch(approximateToRgb888(color), hist[color])); in quantize()155 public List<Swatch> getQuantizedColors() { in getQuantizedColors()159 private List<Swatch> quantizePixels(int maxColors) { in quantizePixels()207 private List<Swatch> generateAverageColors(Collection<Vbox> vboxes) { in generateAverageColors()208 ArrayList<Swatch> colors = new ArrayList<>(vboxes.size()); in generateAverageColors()210 Swatch swatch = vbox.getAverageColor(); in generateAverageColors()379 final Swatch getAverageColor() { in getAverageColor()401 return new Swatch(approximateToRgb888(redMean, greenMean, blueMean), totalPopulation); in getAverageColor()
46 List<Palette.Swatch> swatches = new ArrayList<>(); in quantize()48 swatches.add(new Palette.Swatch(entry.getKey(), entry.getValue())); in quantize()54 public List<Palette.Swatch> getQuantizedColors() { in getQuantizedColors()
37 private List<Palette.Swatch> mSwatches;53 public List<Palette.Swatch> getQuantizedColors() { in getQuantizedColors()
53 private List<Palette.Swatch> mQuantizedColors;124 mQuantizedColors.add(new Palette.Swatch(color, mean.getItems().size())); in quantize()152 public List<Palette.Swatch> getQuantizedColors() { in getQuantizedColors()
35 List<Palette.Swatch> getQuantizedColors(); in getQuantizedColors()
78 public List<Palette.Swatch> getQuantizedColors() { in getQuantizedColors()117 List<Palette.Swatch> swatches = new ArrayList<>(); in quantize()121 swatches.add(new Palette.Swatch(colorInt, mClusterPopulations[i])); in quantize()
65 public List<Palette.Swatch> getQuantizedColors() { in getQuantizedColors()93 List<Palette.Swatch> swatches = new ArrayList<>(); in quantize()95 swatches.add(new Palette.Swatch(color, 0)); in quantize()
65 Palette.Swatch swatch = MediaNotificationProcessor.findBackgroundSwatch(mArtwork); in findBackgroundSwatch_white()77 Palette.Swatch swatch = MediaNotificationProcessor.findBackgroundSwatch(mArtwork); in findBackgroundSwatch_red()
234 final ArrayList<Palette.Swatch> swatches = new ArrayList<>(palette.getSwatches()); in fromBitmap()241 Palette.Swatch swatch = swatches.get(i); in fromBitmap()
961 final Palette.Swatch mainSwatch = mPalette.getDominantSwatch(); in getDominantColor()970 final List<Palette.Swatch> swatches = mPalette.getSwatches(); in isGrayscale()973 Palette.Swatch swatch = swatches.get(i); in isGrayscale()1032 public List<Palette.Swatch> getQuantizedColors() { in getQuantizedColors()