Home
last modified time | relevance | path

Searched refs:Swatch (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/core/java/com/android/internal/graphics/palette/
DPalette.java84 public static Palette from(@NonNull List<Swatch> swatches) { in from()
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 Palette
[all …]
DColorCutQuantizer.java38 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()
DQuantizerMap.java46 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()
DCelebiQuantizer.java37 private List<Palette.Swatch> mSwatches;
53 public List<Palette.Swatch> getQuantizedColors() { in getQuantizedColors()
DVariationalKMeansQuantizer.java53 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()
DQuantizer.java35 List<Palette.Swatch> getQuantizedColors(); in getQuantizedColors()
DWSMeansQuantizer.java78 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()
DWuQuantizer.java65 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()
/frameworks/base/core/java/android/app/
DWallpaperColors.java234 final ArrayList<Palette.Swatch> swatches = new ArrayList<>(palette.getSwatches()); in fromBitmap()
241 Palette.Swatch swatch = swatches.get(i); in fromBitmap()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/
DSplashscreenContentDrawer.java968 final Palette.Swatch mainSwatch = mPalette.getDominantSwatch(); in getDominantColor()
977 final List<Palette.Swatch> swatches = mPalette.getSwatches(); in isGrayscale()
980 Palette.Swatch swatch = swatches.get(i); in isGrayscale()
1039 public List<Palette.Swatch> getQuantizedColors() { in getQuantizedColors()