Searched refs:palette (Results 1 - 14 of 14) sorted by last modified time

/frameworks/support/scripts/
H A Dsupport-deps-license.sh43 rundeps frameworks/support/v7/palette
/frameworks/support/v7/mediarouter/
H A DAndroid.mk72 # android-support-v7-palette \
86 android-support-v7-palette \
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
H A DMediaRouteControllerDialog.java1386 Palette palette = new Palette.Builder(art).maximumColorCount(1).generate();
1387 mBackgroundColor = palette.getSwatches().isEmpty()
1388 ? 0 : palette.getSwatches().get(0).getRgb();
/frameworks/support/v7/palette/
H A DAndroid.mk21 # android-support-v7-palette \
28 LOCAL_MODULE := android-support-v7-palette
/frameworks/support/v7/palette/src/androidTest/java/android/support/v7/graphics/
H A DBucketTests.java126 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 DTestUtils.java25 import android.support.v7.palette.test.R;
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/
H A DPalette.java84 void onGenerated(Palette palette); argument
165 * Returns all of the swatches which make up the palette.
173 * Returns the targets used to generate this palette.
181 * Returns the most vibrant swatch in the palette. Might be null.
191 * Returns a light and vibrant swatch from the palette. Might be null.
201 * Returns a dark and vibrant swatch from the palette. Might be null.
211 * Returns a muted swatch from the palette. Might be null.
221 * Returns a muted and light swatch from the palette. Might be null.
231 * Returns a muted and dark swatch from the palette. Might be null.
241 * Returns the most vibrant color in the palette a
[all...]
/frameworks/support/frameworks/support/samples/Support7Demos/
H A DAndroid.mk33 android-support-v7-palette \
/frameworks/support/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/graphics/
H A DPaletteActivity.java47 * 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());
H A DPaletteDetailActivity.java42 * 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 = (GridView) 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...]
/frameworks/support/samples/Support7Demos/
H A DAndroid.mk33 android-support-v7-palette \
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/graphics/
H A DPaletteActivity.java47 * 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());
H A DPaletteDetailActivity.java42 * 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 = (GridView) 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...]
/frameworks/native/opengl/libagl/
H A Dtexture.cpp432 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...]

Completed in 308 milliseconds