/frameworks/support/palette/src/androidTest/java/androidx/palette/graphics/ |
H A D | ConsistencyTest.java | 17 package androidx.palette.graphics;
|
H A D | MaxColorsTest.java | 17 package androidx.palette.graphics;
|
H A D | TestUtils.java | 17 package androidx.palette.graphics; 26 import androidx.palette.test.R;
|
H A D | BucketTests.java | 17 package androidx.palette.graphics; 123 final Palette palette = Palette.from(bitmap).generate(); 125 assertEquals(1, palette.getSwatches().size()); 127 final Palette.Swatch swatch = palette.getSwatches().get(0); 138 final Palette palette = Palette.from(bitmap) 142 assertEquals(1, palette.getSwatches().size()); 144 final Palette.Swatch swatch = palette.getSwatches().get(0); 166 // Now generate a palette from the bitmap 167 final Palette palette = Palette.from(bitmap).generate(); 170 assertEquals(3, palette [all...] |
H A D | SwatchTests.java | 17 package androidx.palette.graphics;
|
/frameworks/base/core/java/com/android/internal/graphics/palette/ |
H A D | Quantizer.java | 17 package com.android.internal.graphics.palette;
|
H A D | VariationalKMeansQuantizer.java | 17 package com.android.internal.graphics.palette;
|
H A D | Palette.java | 17 package com.android.internal.graphics.palette; 41 * Copied from: /frameworks/support/v7/palette/src/main/java/android/support/v7/ 88 void onGenerated(Palette palette); argument 169 * Returns all of the swatches which make up the palette. 177 * Returns the targets used to generate this palette. 185 * Returns the most vibrant swatch in the palette. Might be null. 195 * Returns a light and vibrant swatch from the palette. Might be null. 205 * Returns a dark and vibrant swatch from the palette. Might be null. 215 * Returns a muted swatch from the palette. Might be null. 225 * Returns a muted and light swatch from the palette [all...] |
H A D | ColorCutQuantizer.java | 17 package com.android.internal.graphics.palette; 46 import com.android.internal.graphics.palette.Palette.Swatch; 49 * Copied from: frameworks/support/v7/palette/src/main/java/android/support/v7/ 88 * @param maxColors The maximum number of colors that should be in the result palette.
|
H A D | Target.java | 17 package com.android.internal.graphics.palette; 38 * Copied from: frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/Target.java
|
/frameworks/base/core/java/com/android/internal/app/ |
H A D | PlatLogoActivity.java | 41 private int[] palette; field in class:PlatLogoActivity.PBackground 80 * create a random evenly-spaced color palette 86 palette = new int[slots]; 89 palette[i] = Color.HSVToColor(color); 91 if (lum(palette[i]) < lum(palette[darkest])) darkest = i; 95 for (int c : palette) { 98 Log.v("PlatLogoActivity", "color palette: " + str); 127 paint.setColor(0xFF000000 | palette[i % palette [all...] |
/frameworks/support/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/graphics/ |
H A D | PaletteDetailActivity.java | 33 import androidx.palette.graphics.Palette; 43 * Displays the full generated palette of colors in a grid, which allows clicking on an palette item 46 * Also allows the customization of the number of colors used in the palette generation for 67 mGridView = findViewById(R.id.palette); 133 public void onGenerated(Palette palette) { 134 populatePalette(palette); 160 void setSwatches(List<Palette.Swatch> palette) { argument 161 mSwatches = palette; 175 private void populatePalette(Palette palette) { argument [all...] |
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/graphics/ |
H A D | PaletteDetailActivity.java | 33 import androidx.palette.graphics.Palette; 43 * Displays the full generated palette of colors in a grid, which allows clicking on an palette item 46 * Also allows the customization of the number of colors used in the palette generation for 67 mGridView = findViewById(R.id.palette); 133 public void onGenerated(Palette palette) { 134 populatePalette(palette); 160 void setSwatches(List<Palette.Swatch> palette) { argument 161 mSwatches = palette; 175 private void populatePalette(Palette palette) { argument [all...] |
/frameworks/support/palette/src/main/java/androidx/palette/graphics/ |
H A D | Palette.java | 17 package androidx.palette.graphics; 86 void onGenerated(@Nullable Palette palette); argument 169 * Returns all of the swatches which make up the palette. 177 * Returns the targets used to generate this palette. 185 * Returns the most vibrant swatch in the palette. Might be null. 195 * Returns a light and vibrant swatch from the palette. Might be null. 205 * Returns a dark and vibrant swatch from the palette. Might be null. 215 * Returns a muted swatch from the palette. Might be null. 225 * Returns a muted and light swatch from the palette. Might be null. 235 * Returns a muted and dark swatch from the palette [all...] |
H A D | ColorCutQuantizer.java | 17 package androidx.palette.graphics; 69 * @param maxColors The maximum number of colors that should be in the result palette.
|
H A D | Target.java | 17 package androidx.palette.graphics;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
H A D | MediaNotificationProcessor.java | 129 Palette palette = paletteBuilder.generate(); 130 backgroundColor = findBackgroundColorAndFilter(palette); 144 palette = paletteBuilder.generate(); 145 int foregroundColor = selectForegroundColor(backgroundColor, palette); 157 private int selectForegroundColor(int backgroundColor, Palette palette) { argument 159 return selectForegroundColorForSwatches(palette.getDarkVibrantSwatch(), 160 palette.getVibrantSwatch(), 161 palette.getDarkMutedSwatch(), 162 palette.getMutedSwatch(), 163 palette 246 findBackgroundColorAndFilter(Palette palette) argument [all...] |
/frameworks/base/core/java/com/android/internal/colorextraction/types/ |
H A D | Tonal.java | 47 // Used for tonal palette fitting 125 // • Filter out blacklisted colors. This is useful when palette is generated 148 // palette and finds a best fit amongst a collection of pre-defined 150 // and replaces the original palette. 159 // Find the palette that contains the closest color 160 TonalPalette palette = findTonalPalette(hsl[0], hsl[1]); 161 if (palette == null) { 162 Log.w(TAG, "Could not find a tonal palette!"); 166 // Figure out what's the main color index in the optimal palette 167 int fitIndex = bestFit(palette, hs 331 bestFit(@onNull TonalPalette palette, float h, float s, float l) argument [all...] |
/frameworks/native/opengl/libagl/ |
H A D | texture.cpp | 428 size_t size = (1 << indexBits) * entrySize; // palette size 485 uint8_t const* const palette = (uint8_t*)data; local 491 *p++ = palette[index + 0]; 492 *p++ = palette[index + 1]; 498 *p++ = palette[index + 0]; 499 *p++ = palette[index + 1]; 502 *p++ = palette[index + 0]; 503 *p++ = palette[index + 1]; 509 uint8_t const* const palette = (uint8_t*)data; local 515 *p++ = palette[inde 536 uint8_t const* const palette = (uint8_t*)data; local [all...] |