Home
last modified time | relevance | path

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

/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
H A DMediaNotificationProcessor.java51 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()
/aosp14/frameworks/base/core/java/com/android/internal/graphics/palette/
H A DPalette.java88 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
172 Swatch swatch = (Swatch) o; in equals()
[all …]
H A 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()
H A 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()
H A DCelebiQuantizer.java37 private List<Palette.Swatch> mSwatches;
53 public List<Palette.Swatch> getQuantizedColors() { in getQuantizedColors()
H A 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()
H A DQuantizer.java35 List<Palette.Swatch> getQuantizedColors(); in getQuantizedColors()
H A 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()
H A 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()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
H A DMediaNotificationProcessorTest.java65 Palette.Swatch swatch = MediaNotificationProcessor.findBackgroundSwatch(mArtwork); in findBackgroundSwatch_white()
77 Palette.Swatch swatch = MediaNotificationProcessor.findBackgroundSwatch(mArtwork); in findBackgroundSwatch_red()
/aosp14/frameworks/base/core/java/android/app/
H A DWallpaperColors.java234 final ArrayList<Palette.Swatch> swatches = new ArrayList<>(palette.getSwatches()); in fromBitmap()
241 Palette.Swatch swatch = swatches.get(i); in fromBitmap()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/
H A DSplashscreenContentDrawer.java961 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()