/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | MediaNotificationProcessor.java | 29 import androidx.palette.graphics.Palette; 124 Palette palette = paletteBuilder.generate(); in processNotification() local 125 Palette.Swatch backgroundSwatch = findBackgroundSwatch(palette); in processNotification() 142 palette = paletteBuilder.generate(); in processNotification() 143 int foregroundColor = selectForegroundColor(backgroundColor, palette); in processNotification() 161 public static int selectForegroundColor(int backgroundColor, Palette palette) { in selectForegroundColor() argument 163 return selectForegroundColorForSwatches(palette.getDarkVibrantSwatch(), in selectForegroundColor() 164 palette.getVibrantSwatch(), in selectForegroundColor() 165 palette.getDarkMutedSwatch(), in selectForegroundColor() 166 palette.getMutedSwatch(), in selectForegroundColor() [all …]
|
/frameworks/base/libs/hwui/ |
D | CanvasTransform.cpp | 116 static BitmapPalette filterPalette(const SkPaint* paint, BitmapPalette palette) { in filterPalette() argument 117 if (palette == BitmapPalette::Unknown || !paint || !paint->getColorFilter()) { in filterPalette() 118 return palette; in filterPalette() 121 SkColor color = palette == BitmapPalette::Light ? SK_ColorWHITE : SK_ColorBLACK; in filterPalette() 132 bool transformPaint(ColorTransform transform, SkPaint* paint, BitmapPalette palette) { in transformPaint() argument 133 palette = filterPalette(paint, palette); in transformPaint() 135 if (palette == BitmapPalette::Light && transform == ColorTransform::Dark) { in transformPaint() 138 if (palette == BitmapPalette::Dark && transform == ColorTransform::Light) { in transformPaint()
|
D | RecordingCanvas.cpp | 321 BitmapPalette palette) in DrawImage() 322 : image(std::move(image)), x(x), y(y), palette(palette) { in DrawImage() 330 BitmapPalette palette; member 354 BitmapPalette palette) in DrawImageRect() 355 : image(std::move(image)), dst(dst), constraint(constraint), palette(palette) { in DrawImageRect() 365 BitmapPalette palette; member 373 const SkRect& dst, const SkPaint* paint, BitmapPalette palette) in DrawImageLattice() 380 , palette(palette) { in DrawImageLattice() 390 BitmapPalette palette; member 500 , palette(tree->computePalette()) { in DrawVectorDrawable() [all …]
|
D | RecordingCanvas.h | 113 void drawImage(sk_sp<const SkImage>, SkScalar, SkScalar, const SkPaint*, BitmapPalette palette); 116 SkCanvas::SrcRectConstraint, BitmapPalette palette); 196 const SkPaint* paint, SrcRectConstraint constraint, BitmapPalette palette); 198 const SkPaint* paint, BitmapPalette palette);
|
D | CanvasTransform.h | 43 bool transformPaint(ColorTransform transform, SkPaint* paint, BitmapPalette palette);
|
/frameworks/base/tests/Internal/src/com/android/internal/colorextraction/types/ |
D | TonalTest.java | 135 for (Tonal.TonalPalette palette : config.getTonalPalettes()) { in tonal_rangeTest() 136 assertTrue("minHue should be >= to 0.", palette.minHue >= 0); in tonal_rangeTest() 137 assertTrue("maxHue should be <= to 360.", palette.maxHue <= 360); in tonal_rangeTest() 139 assertTrue("S should be >= to 0.", palette.s[0] >= 0); in tonal_rangeTest() 140 assertTrue("S should be <= to 1.", palette.s[1] <= 1); in tonal_rangeTest() 142 assertTrue("L should be >= to 0.", palette.l[0] >= 0); in tonal_rangeTest() 143 assertTrue("L should be <= to 1.", palette.l[1] <= 1); in tonal_rangeTest()
|
/frameworks/base/core/java/com/android/internal/colorextraction/types/ |
D | Tonal.java | 138 TonalPalette palette = findTonalPalette(hsl[0], hsl[1]); in runTonalExtraction() local 139 if (palette == null) { in runTonalExtraction() 145 int fitIndex = bestFit(palette, hsl[0], hsl[1], hsl[2]); in runTonalExtraction() 152 float[] h = fit(palette.h, hsl[0], fitIndex, in runTonalExtraction() 154 float[] s = fit(palette.s, hsl[1], fitIndex, 0.0f, 1.0f); in runTonalExtraction() 155 float[] l = fit(palette.l, hsl[2], fitIndex, 0.0f, 1.0f); in runTonalExtraction() 292 private int[] getColorPalette(TonalPalette palette) { in getColorPalette() argument 293 return getColorPalette(palette.h, palette.s, palette.l); in getColorPalette() 326 private static int bestFit(@NonNull TonalPalette palette, float h, float s, float l) { in bestFit() argument 330 for (int i = 0; i < palette.h.length; i++) { in bestFit() [all …]
|
/frameworks/base/libs/hwui/hwui/ |
D | Bitmap.h | 81 BitmapPalette palette = BitmapPalette::Unknown); 87 BitmapPalette palette); 135 BitmapPalette palette() { in palette() function 171 BitmapPalette palette); 177 const AHardwareBuffer_Desc& bufferDesc, BitmapPalette palette);
|
D | Bitmap.cpp | 149 BitmapPalette palette) { in createFrom() argument 153 return createFrom(hardwareBuffer, info, bufferDesc, palette); in createFrom() 158 BitmapPalette palette) { in createFrom() argument 163 return createFrom(hardwareBuffer, info, bufferDesc, palette); in createFrom() 167 const AHardwareBuffer_Desc& bufferDesc, BitmapPalette palette) { in createFrom() argument 171 return sk_sp<Bitmap>(new Bitmap(hardwareBuffer, info, rowBytes, palette)); in createFrom() 257 BitmapPalette palette) in Bitmap() argument 261 , mPalette(palette) in Bitmap()
|
/frameworks/base/core/java/android/app/ |
D | WallpaperColors.java | 33 import com.android.internal.graphics.palette.Palette; 34 import com.android.internal.graphics.palette.VariationalKMeansQuantizer; 168 final Palette palette = Palette in fromBitmap() local 177 final ArrayList<Palette.Swatch> swatches = new ArrayList<>(palette.getSwatches()); in fromBitmap()
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | SkiaRecordingCanvas.cpp | 228 mRecorder.drawImage(image, left + x, top + y, &p, bitmap.palette()); in drawBitmap() 246 mRecorder.drawImage(image, x, y, &p, bitmap.palette()); in drawBitmap() 264 SkCanvas::kFast_SrcRectConstraint, bitmap.palette()); in drawBitmap() 305 mRecorder.drawImageLattice(image, lattice, dst.makeOffset(x, y), &p, bitmap.palette()); in drawNinePatch()
|
/frameworks/base/core/java/com/android/internal/graphics/palette/ |
D | Quantizer.java | 17 package com.android.internal.graphics.palette;
|
D | ColorCutQuantizer.java | 17 package com.android.internal.graphics.palette; 46 import com.android.internal.graphics.palette.Palette.Swatch;
|
D | VariationalKMeansQuantizer.java | 17 package com.android.internal.graphics.palette;
|
D | Target.java | 17 package com.android.internal.graphics.palette;
|
D | Palette.java | 17 package com.android.internal.graphics.palette; 88 void onGenerated(Palette palette); in onGenerated() argument
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/ |
D | MediaNotificationProcessorTest.java | 38 import androidx.palette.graphics.Palette;
|
/frameworks/base/ |
D | ApiDocs.bp | 44 "android-support-v7-palette",
|