/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/graphics/ |
D | PaletteDetailActivity.java | 66 mGridView = findViewById(R.id.palette); in onCreate() 132 public void onGenerated(Palette palette) { in loadImage() 133 populatePalette(palette); in loadImage() 159 void setSwatches(List<Palette.Swatch> palette) { in setSwatches() argument 160 mSwatches = palette; in setSwatches() 174 private void populatePalette(Palette palette) { in populatePalette() argument 175 mSwatchesPalette.setSwatches(palette.getSwatches()); in populatePalette() 177 setBackgroundColor(findViewById(R.id.text_vibrant), palette.getVibrantSwatch()); in populatePalette() 178 setBackgroundColor(findViewById(R.id.text_muted), palette.getMutedSwatch()); in populatePalette() 179 setBackgroundColor(findViewById(R.id.text_light_vibrant), palette.getLightVibrantSwatch()); in populatePalette() [all …]
|
D | PaletteActivity.java | 210 public void onGenerated(Palette palette) { in bindView() 213 palette.getVibrantSwatch()); in bindView() 216 palette.getMutedSwatch()); in bindView() 219 palette.getLightVibrantSwatch()); in bindView() 222 palette.getLightMutedSwatch()); in bindView() 225 palette.getDarkVibrantSwatch()); in bindView() 228 palette.getDarkMutedSwatch()); in bindView()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | MediaNotificationProcessor.java | 130 Palette palette = paletteBuilder.generate(); in processNotification() local 131 backgroundColor = findBackgroundColorAndFilter(palette); in processNotification() 145 palette = paletteBuilder.generate(); in processNotification() 146 int foregroundColor = selectForegroundColor(backgroundColor, palette); in processNotification() 161 private 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() 167 palette.getDominantSwatch(), in selectForegroundColor() [all …]
|
/frameworks/support/v7/palette/tests/java/android/support/v7/graphics/ |
D | BucketTests.java | 126 final Palette palette = Palette.from(bitmap).generate(); in testBlueBitmapReturnsBlueSwatch() local 128 assertEquals(1, palette.getSwatches().size()); in testBlueBitmapReturnsBlueSwatch() 130 final Palette.Swatch swatch = palette.getSwatches().get(0); in testBlueBitmapReturnsBlueSwatch() 141 final Palette palette = Palette.from(bitmap) in testBlueBitmapWithRegionReturnsBlueSwatch() local 145 assertEquals(1, palette.getSwatches().size()); in testBlueBitmapWithRegionReturnsBlueSwatch() 147 final Palette.Swatch swatch = palette.getSwatches().get(0); in testBlueBitmapWithRegionReturnsBlueSwatch() 170 final Palette palette = Palette.from(bitmap).generate(); in testDominantSwatch() local 173 assertEquals(3, palette.getSwatches().size()); in testDominantSwatch() 176 final Palette.Swatch swatch = palette.getDominantSwatch(); in testDominantSwatch()
|
D | TestUtils.java | 25 import android.support.v7.palette.test.R;
|
/frameworks/native/opengl/libagl/ |
D | texture.cpp | 489 uint8_t const* const palette = (uint8_t*)data; in decodePalette4() local 495 *p++ = palette[index + 0]; in decodePalette4() 496 *p++ = palette[index + 1]; in decodePalette4() 502 *p++ = palette[index + 0]; in decodePalette4() 503 *p++ = palette[index + 1]; in decodePalette4() 506 *p++ = palette[index + 0]; in decodePalette4() 507 *p++ = palette[index + 1]; in decodePalette4() 513 uint8_t const* const palette = (uint8_t*)data; in decodePalette4() local 519 *p++ = palette[index + 0]; in decodePalette4() 520 *p++ = palette[index + 1]; in decodePalette4() [all …]
|
/frameworks/support/v7/palette/ |
D | build.gradle | 2 archivesBaseName = 'palette-v7'
|
D | Android.mk | 28 LOCAL_MODULE := android-support-v7-palette
|
/frameworks/support/v7/mediarouter/ |
D | build.gradle | 6 compile project(":support-palette-v7")
|
D | Android.mk | 40 android-support-v7-palette \
|
/frameworks/support/samples/Support7Demos/ |
D | build.gradle | 8 compile project(':support-palette-v7')
|
/frameworks/support/samples/SupportLeanbackShowcase/app/ |
D | build.gradle | 35 compile "com.android.support:palette-v7:${supportLibVersion}"
|
/frameworks/support/scripts/ |
D | support-deps-license.sh | 43 rundeps frameworks/support/v7/palette
|
/frameworks/support/ |
D | settings.gradle | 37 include ':support-palette-v7' 38 project(':support-palette-v7').projectDir = new File(rootDir, 'v7/palette')
|
D | pathmap.mk | 38 v7/palette \
|
/frameworks/base/packages/SystemUI/ |
D | Android.mk | 39 android-support-v7-palette \
|
/frameworks/base/packages/SystemUI/tests/ |
D | Android.mk | 46 android-support-v7-palette \
|
/frameworks/base/core/java/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 | 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/support/buildSrc/ |
D | init.gradle | 275 // e.g. palette-v7-debug-androidTest.apk becomes 276 // support-palette-v7_palette-v7-debug-androidTest.apk
|
/frameworks/support/v7/mediarouter/src/android/support/v7/app/ |
D | MediaRouteControllerDialog.java | 1433 Palette palette = new Palette.Builder(art).maximumColorCount(1).generate(); in doInBackground() local 1434 mBackgroundColor = palette.getSwatches().isEmpty() in doInBackground() 1435 ? 0 : palette.getSwatches().get(0).getRgb(); in doInBackground()
|
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/ |
D | Palette.java | 83 void onGenerated(Palette palette); in onGenerated() argument
|