Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DMediaNotificationProcessor.java125 Palette.Swatch backgroundSwatch = findBackgroundSwatch(palette); in processNotification()
173 private int selectForegroundColorForSwatches(Palette.Swatch moreVibrant, in selectForegroundColorForSwatches()
174 Palette.Swatch vibrant, Palette.Swatch moreMutedSwatch, Palette.Swatch mutedSwatch, in selectForegroundColorForSwatches()
175 Palette.Swatch dominantSwatch, int fallbackColor) { in selectForegroundColorForSwatches()
176 Palette.Swatch coloredCandidate = selectVibrantCandidate(moreVibrant, vibrant); in selectForegroundColorForSwatches()
197 private Palette.Swatch selectMutedCandidate(Palette.Swatch first, in selectMutedCandidate()
198 Palette.Swatch second) { in selectMutedCandidate()
218 private Palette.Swatch selectVibrantCandidate(Palette.Swatch first, Palette.Swatch second) { in selectVibrantCandidate()
238 private boolean hasEnoughPopulation(Palette.Swatch swatch) { in hasEnoughPopulation()
250 public static Palette.Swatch findBackgroundSwatch(Bitmap artwork) { in findBackgroundSwatch()
[all …]
/frameworks/base/core/java/com/android/internal/graphics/palette/
DPalette.java112 public static Palette from(List<Palette.Swatch> swatches) { in from()
150 private final List<Palette.Swatch> mSwatches;
153 private final Map<Target, Palette.Swatch> mSelectedSwatches;
156 private final Palette.Swatch mDominantSwatch;
158 Palette(List<Palette.Swatch> swatches, List<Target> targets) { in Palette()
172 public List<Palette.Swatch> getSwatches() { in getSwatches()
190 public Palette.Swatch getVibrantSwatch() { in getVibrantSwatch()
200 public Palette.Swatch getLightVibrantSwatch() { in getLightVibrantSwatch()
210 public Palette.Swatch getDarkVibrantSwatch() { in getDarkVibrantSwatch()
220 public Palette.Swatch getMutedSwatch() { in getMutedSwatch()
[all …]
DColorCutQuantizer.java46 import com.android.internal.graphics.palette.Palette.Swatch;
78 List<Swatch> mQuantizedColors;
142 mQuantizedColors.add(new Swatch(approximateToRgb888(color), hist[color])); in quantize()
163 public List<Swatch> getQuantizedColors() { in getQuantizedColors()
167 private List<Swatch> quantizePixels(int maxColors) { in quantizePixels()
215 private List<Swatch> generateAverageColors(Collection<Vbox> vboxes) { in generateAverageColors()
216 ArrayList<Swatch> colors = new ArrayList<>(vboxes.size()); in generateAverageColors()
218 Swatch swatch = vbox.getAverageColor(); in generateAverageColors()
391 final Swatch getAverageColor() { in getAverageColor()
413 return new Swatch(approximateToRgb888(redMean, greenMean, blueMean), totalPopulation); in getAverageColor()
[all …]
DVariationalKMeansQuantizer.java53 private List<Palette.Swatch> mQuantizedColors;
119 mQuantizedColors.add(new Palette.Swatch(new float[]{ in quantize()
151 public List<Palette.Swatch> getQuantizedColors() { in getQuantizedColors()
DQuantizer.java26 List<Palette.Swatch> getQuantizedColors(); in getQuantizedColors()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
DMediaNotificationProcessorTest.java134 Palette.Swatch swatch = MediaNotificationProcessor.findBackgroundSwatch(mArtwork); in findBackgroundSwatch_white()
146 Palette.Swatch swatch = MediaNotificationProcessor.findBackgroundSwatch(mArtwork); in findBackgroundSwatch_red()
/frameworks/base/core/java/android/app/
DWallpaperColors.java177 final ArrayList<Palette.Swatch> swatches = new ArrayList<>(palette.getSwatches()); in fromBitmap()