/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
H A D | MediaNotificationProcessor.java | 130 Palette palette = paletteBuilder.generate(); 131 backgroundColor = findBackgroundColorAndFilter(palette); 145 palette = paletteBuilder.generate(); 146 int foregroundColor = selectForegroundColor(backgroundColor, palette); 161 private int selectForegroundColor(int backgroundColor, Palette palette) { argument 163 return selectForegroundColorForSwatches(palette.getDarkVibrantSwatch(), 164 palette.getVibrantSwatch(), 165 palette.getDarkMutedSwatch(), 166 palette.getMutedSwatch(), 167 palette 250 findBackgroundColorAndFilter(Palette palette) argument [all...] |
/frameworks/support/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/graphics/ |
H A D | PaletteDetailActivity.java | 42 * Displays the full generated palette of colors in a grid, which allows clicking on an palette item 45 * Also allows the customization of the number of colors used in the palette generation for 66 mGridView = findViewById(R.id.palette); 132 public void onGenerated(Palette palette) { 133 populatePalette(palette); 159 void setSwatches(List<Palette.Swatch> palette) { argument 160 mSwatches = palette; 174 private void populatePalette(Palette palette) { argument 175 mSwatchesPalette.setSwatches(palette [all...] |
H A D | PaletteActivity.java | 47 * Allows the customization of the number of colors used in the palette generation, to demonstrate 210 public void onGenerated(Palette palette) { 213 palette.getVibrantSwatch()); 216 palette.getMutedSwatch()); 219 palette.getLightVibrantSwatch()); 222 palette.getLightMutedSwatch()); 225 palette.getDarkVibrantSwatch()); 228 palette.getDarkMutedSwatch());
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/graphics/ |
H A D | PaletteDetailActivity.java | 42 * Displays the full generated palette of colors in a grid, which allows clicking on an palette item 45 * Also allows the customization of the number of colors used in the palette generation for 66 mGridView = findViewById(R.id.palette); 132 public void onGenerated(Palette palette) { 133 populatePalette(palette); 159 void setSwatches(List<Palette.Swatch> palette) { argument 160 mSwatches = palette; 174 private void populatePalette(Palette palette) { argument 175 mSwatchesPalette.setSwatches(palette [all...] |
H A D | PaletteActivity.java | 47 * Allows the customization of the number of colors used in the palette generation, to demonstrate 210 public void onGenerated(Palette palette) { 213 palette.getVibrantSwatch()); 216 palette.getMutedSwatch()); 219 palette.getLightVibrantSwatch()); 222 palette.getLightMutedSwatch()); 225 palette.getDarkVibrantSwatch()); 228 palette.getDarkMutedSwatch());
|
/frameworks/support/v7/palette/tests/java/android/support/v7/graphics/ |
H A D | BucketTests.java | 126 final Palette palette = Palette.from(bitmap).generate(); 128 assertEquals(1, palette.getSwatches().size()); 130 final Palette.Swatch swatch = palette.getSwatches().get(0); 141 final Palette palette = Palette.from(bitmap) 145 assertEquals(1, palette.getSwatches().size()); 147 final Palette.Swatch swatch = palette.getSwatches().get(0); 169 // Now generate a palette from the bitmap 170 final Palette palette = Palette.from(bitmap).generate(); 173 assertEquals(3, palette.getSwatches().size()); 176 final Palette.Swatch swatch = palette [all...] |
H A D | TestUtils.java | 25 import android.support.v7.palette.test.R;
|
/frameworks/native/opengl/libagl/ |
H A D | texture.cpp | 432 size_t size = (1 << indexBits) * entrySize; // palette size 489 uint8_t const* const palette = (uint8_t*)data; local 495 *p++ = palette[index + 0]; 496 *p++ = palette[index + 1]; 502 *p++ = palette[index + 0]; 503 *p++ = palette[index + 1]; 506 *p++ = palette[index + 0]; 507 *p++ = palette[index + 1]; 513 uint8_t const* const palette = (uint8_t*)data; local 519 *p++ = palette[inde 540 uint8_t const* const palette = (uint8_t*)data; local [all...] |
/frameworks/support/ |
H A D | pathmap.mk | 38 v7/palette \
|
/frameworks/support/scripts/ |
H A D | support-deps-license.sh | 43 rundeps frameworks/support/v7/palette
|
/frameworks/support/v7/mediarouter/ |
H A D | Android.mk | 23 # android-support-v7-palette \ 40 android-support-v7-palette \
|
/frameworks/support/v7/palette/ |
H A D | Android.mk | 21 # android-support-v7-palette \ 28 LOCAL_MODULE := android-support-v7-palette
|
/frameworks/base/packages/SystemUI/ |
H A D | Android.mk | 39 android-support-v7-palette \
|
/frameworks/base/core/java/com/android/internal/graphics/palette/ |
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
|
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...] |
/frameworks/base/packages/SystemUI/tests/ |
H A D | Android.mk | 46 android-support-v7-palette \
|
/frameworks/support/v7/mediarouter/src/android/support/v7/app/ |
H A D | MediaRouteControllerDialog.java | 1433 Palette palette = new Palette.Builder(art).maximumColorCount(1).generate(); 1434 mBackgroundColor = palette.getSwatches().isEmpty() 1435 ? 0 : palette.getSwatches().get(0).getRgb();
|
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/ |
H A D | Palette.java | 83 void onGenerated(Palette palette); argument 164 * Returns all of the swatches which make up the palette. 172 * Returns the targets used to generate this palette. 180 * Returns the most vibrant swatch in the palette. Might be null. 190 * Returns a light and vibrant swatch from the palette. Might be null. 200 * Returns a dark and vibrant swatch from the palette. Might be null. 210 * Returns a muted swatch from the palette. Might be null. 220 * Returns a muted and light swatch from the palette. Might be null. 230 * Returns a muted and dark swatch from the palette. Might be null. 240 * Returns the most vibrant color in the palette a [all...] |