Searched refs:Palette (Results 1 – 9 of 9) sorted by relevance
/frameworks/base/core/java/com/android/internal/graphics/palette/ |
D | Palette.java | 77 public final class Palette { class 88 void onGenerated(Palette palette); in onGenerated() 103 public static Palette.Builder from(Bitmap bitmap) { in from() 104 return new Palette.Builder(bitmap); in from() 112 public static Palette from(List<Palette.Swatch> swatches) { in from() 113 return new Palette.Builder(swatches).generate(); in from() 120 public static Palette generate(Bitmap bitmap) { in generate() 128 public static Palette generate(Bitmap bitmap, int numColors) { in generate() 136 public static AsyncTask<Bitmap, Void, Palette> generateAsync( in generateAsync() 137 Bitmap bitmap, Palette.PaletteAsyncListener listener) { in generateAsync() [all …]
|
D | VariationalKMeansQuantizer.java | 53 private List<Palette.Swatch> mQuantizedColors; 76 public void quantize(int[] pixels, int maxColors, Palette.Filter[] filters) { in quantize() 119 mQuantizedColors.add(new Palette.Swatch(new float[]{ in quantize() 151 public List<Palette.Swatch> getQuantizedColors() { in getQuantizedColors()
|
D | Quantizer.java | 25 void quantize(final int[] pixels, final int maxColors, final Palette.Filter[] filters); in quantize() 26 List<Palette.Swatch> getQuantizedColors(); in getQuantizedColors()
|
D | ColorCutQuantizer.java | 46 import com.android.internal.graphics.palette.Palette.Swatch; 80 Palette.Filter[] mFilters; 91 public void quantize(final int[] pixels, final int maxColors, final Palette.Filter[] filters) { in quantize()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | MediaNotificationProcessor.java | 29 import androidx.palette.graphics.Palette; 72 private final Palette.Filter mBlackWhiteFilter = (rgb, hsl) -> !isWhiteOrBlack(hsl); 123 Palette.Builder paletteBuilder = generateArtworkPaletteBuilder(bitmap); in processNotification() 124 Palette palette = paletteBuilder.generate(); in processNotification() 125 Palette.Swatch backgroundSwatch = findBackgroundSwatch(palette); in processNotification() 155 private int selectForegroundColor(int backgroundColor, Palette palette) { in selectForegroundColor() 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() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/ |
D | MediaNotificationProcessorTest.java | 38 import androidx.palette.graphics.Palette; 134 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/ |
D | WallpaperColors.java | 33 import com.android.internal.graphics.palette.Palette; 168 final Palette palette = Palette in fromBitmap() 177 final ArrayList<Palette.Swatch> swatches = new ArrayList<>(palette.getSwatches()); in fromBitmap()
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/paint/ |
D | Palette.kt | 21 class Palette { class
|
D | PaintActivity.java | 256 final Palette pal = new Palette(NUM_COLORS); in refreshBrushAndColor()
|