Home
last modified time | relevance | path

Searched refs:swatches (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/java/com/android/internal/graphics/palette/
DPalette.java84 public static Palette from(@NonNull List<Swatch> swatches) { in from() argument
85 return new Builder(swatches).generate(); in from()
94 Palette(List<Swatch> swatches) { in Palette() argument
95 mSwatches = swatches; in Palette()
214 public Builder(@NonNull List<Swatch> swatches) { in Builder() argument
215 if (swatches == null || swatches.isEmpty()) { in Builder()
218 mSwatches = swatches; in Builder()
321 List<Swatch> swatches; in generate() local
351 swatches = mQuantizer.getQuantizedColors(); in generate()
354 swatches = mSwatches; in generate()
[all …]
DQuantizerMap.java46 List<Palette.Swatch> swatches = new ArrayList<>(); in quantize() local
48 swatches.add(new Palette.Swatch(entry.getKey(), entry.getValue())); in quantize()
50 mPalette = Palette.from(swatches); in quantize()
DWSMeansQuantizer.java117 List<Palette.Swatch> swatches = new ArrayList<>(); in quantize() local
121 swatches.add(new Palette.Swatch(colorInt, mClusterPopulations[i])); in quantize()
123 mPalette = Palette.from(swatches); in quantize()
DWuQuantizer.java93 List<Palette.Swatch> swatches = new ArrayList<>(); in quantize() local
95 swatches.add(new Palette.Swatch(color, 0)); in quantize()
97 mPalette = Palette.from(swatches); in quantize()
/frameworks/base/core/java/android/app/
DWallpaperColors.java234 final ArrayList<Palette.Swatch> swatches = new ArrayList<>(palette.getSwatches()); in fromBitmap() local
235 swatches.sort((a, b) -> b.getPopulation() - a.getPopulation()); in fromBitmap()
237 final int swatchesSize = swatches.size(); in fromBitmap()
241 Palette.Swatch swatch = swatches.get(i); in fromBitmap()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/
DSplashscreenContentDrawer.java977 final List<Palette.Swatch> swatches = mPalette.getSwatches(); in isGrayscale() local
978 if (swatches != null) { in isGrayscale()
979 for (int i = swatches.size() - 1; i >= 0; i--) { in isGrayscale()
980 Palette.Swatch swatch = swatches.get(i); in isGrayscale()