/frameworks/libs/systemui/monet/src/com/android/systemui/monet/ |
D | ColorScheme.java | 109 public ColorScheme(WallpaperColors wallpaperColors, boolean darkTheme, Style style) { in ColorScheme() argument 110 this(getSeedColor(wallpaperColors, style != Style.CONTENT), darkTheme, style); in ColorScheme() 113 public ColorScheme(WallpaperColors wallpaperColors, boolean darkTheme) { in ColorScheme() argument 114 this(wallpaperColors, darkTheme, Style.TONAL_SPOT); in ColorScheme() 188 public static int getSeedColor(WallpaperColors wallpaperColors, boolean filter) { in getSeedColor() argument 189 return getSeedColors(wallpaperColors, filter).get(0); in getSeedColor() 198 public static int getSeedColor(WallpaperColors wallpaperColors) { in getSeedColor() argument 199 return getSeedColor(wallpaperColors, true); in getSeedColor() 210 public static List<Integer> getSeedColors(WallpaperColors wallpaperColors, boolean filter) { in getSeedColors() argument 211 double totalPopulation = wallpaperColors.getAllColors().values().stream().mapToInt( in getSeedColors() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/theme/ |
D | ThemeOverlayController.java | 192 public void onColorsChanged(WallpaperColors wallpaperColors, int which) { 198 public void onColorsChanged(WallpaperColors wallpaperColors, int which, int userId) { 200 if (wallpaperColors != null && wallpaperColors.equals(currentColors)) { 210 mDeferredWallpaperColors.put(userId, wallpaperColors); 213 + wallpaperColors + " user: " + userId); 217 if (currentUser && wallpaperColors != null) { 224 handleWallpaperColors(wallpaperColors, which, userId); 276 private void handleWallpaperColors(WallpaperColors wallpaperColors, int flags, int userId) { in handleWallpaperColors() argument 282 mCurrentColors.put(userId, wallpaperColors); in handleWallpaperColors() 283 if (DEBUG) Log.d(TAG, "got new colors: " + wallpaperColors + " where: " + flags); in handleWallpaperColors() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/regionsampling/ |
D | RegionSamplerTest.kt | 200 val wallpaperColors = in setBlackWallpaper() constant 204 wallpaperColors in setBlackWallpaper() 208 val wallpaperColors = in setWhiteWallpaper() constant 217 wallpaperColors in setWhiteWallpaper()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | DynamicRenderResources.java | 166 WallpaperColors wallpaperColors = WallpaperColors.fromBitmap(wallpaper); in createDynamicColorMap() local 167 int seed = ColorScheme.getSeedColor(wallpaperColors); in createDynamicColorMap()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/viewmodel/ |
D | MediaControlViewModel.kt | 88 val wallpaperColors = in <lambda>() constant 96 wallpaperColors?.let { ColorScheme(it, true, Style.CONTENT) } in <lambda>() 136 shouldAddGradient = wallpaperColors != null, in <lambda>()
|
D | MediaRecommendationsViewModel.kt | 255 ?.let { wallpaperColors -> in <lambda>() method 258 ColorScheme(wallpaperColors, true, Style.CONTENT), in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/dialog/ |
D | MediaOutputBaseDialog.java | 354 WallpaperColors wallpaperColors = WallpaperColors.fromBitmap(icon.getBitmap()); in refresh() local 355 colorSetUpdated = !wallpaperColors.equals(mWallpaperColors); in refresh() 357 mAdapter.updateColorScheme(wallpaperColors, isDarkThemeOn); in refresh()
|
D | MediaOutputBaseAdapter.java | 98 void updateColorScheme(WallpaperColors wallpaperColors, boolean isDarkTheme) { in updateColorScheme() argument 99 mController.setCurrentColorScheme(wallpaperColors, isDarkTheme); in updateColorScheme()
|
D | MediaOutputController.java | 559 void setCurrentColorScheme(WallpaperColors wallpaperColors, boolean isDarkTheme) { in setCurrentColorScheme() argument 560 ColorScheme mCurrentColorScheme = new ColorScheme(wallpaperColors, in setCurrentColorScheme()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/controller/ |
D | MediaControlPanel.java | 903 WallpaperColors wallpaperColors = getWallpaperColor(artworkIcon); in bindArtworkAndColors() local 904 if (wallpaperColors != null) { in bindArtworkAndColors() 905 mutableColorScheme = new ColorScheme(wallpaperColors, true, Style.CONTENT); in bindArtworkAndColors() 1008 WallpaperColors wallpaperColors = getWallpaperColor(artworkIcon); in bindRecommendationArtwork() local 1009 if (wallpaperColors != null) { in bindRecommendationArtwork() 1010 mutableColorScheme = new ColorScheme(wallpaperColors, true, Style.CONTENT); in bindRecommendationArtwork()
|
/frameworks/base/services/core/java/com/android/server/wallpaper/ |
D | WallpaperManagerService.java | 482 private void notifyColorListeners(@NonNull WallpaperColors wallpaperColors, int which, in notifyColorListeners() argument 511 colorListeners.get(i).onWallpaperColorsChanged(wallpaperColors, which, userId); in notifyColorListeners() 2865 WallpaperColors wallpaperColors = wallpaperData.primaryColors; in getAdjustedWallpaperColorsOnDimming() local 2867 if (wallpaperColors != null in getAdjustedWallpaperColorsOnDimming() 2868 && (wallpaperColors.getColorHints() & WallpaperColors.HINT_FROM_BITMAP) == 0 in getAdjustedWallpaperColorsOnDimming() 2870 int adjustedColorHints = wallpaperColors.getColorHints() in getAdjustedWallpaperColorsOnDimming() 2874 wallpaperColors.getPrimaryColor(), wallpaperColors.getSecondaryColor(), in getAdjustedWallpaperColorsOnDimming() 2875 wallpaperColors.getTertiaryColor(), adjustedColorHints); in getAdjustedWallpaperColorsOnDimming() 2877 return wallpaperColors; in getAdjustedWallpaperColorsOnDimming()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/preview/ |
D | KeyguardPreviewRenderer.kt | 172 private val wallpaperColors: WallpaperColors? = bundle.getParcelable(KEY_COLORS) in <lambda>() constant 634 val colors = wallpaperColors in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/dialog/ |
D | MediaOutputAdapterTest.java | 717 WallpaperColors wallpaperColors = WallpaperColors.fromBitmap( in updateColorScheme_triggerController() local 720 mMediaOutputAdapter.updateColorScheme(wallpaperColors, true); in updateColorScheme_triggerController() 722 verify(mMediaOutputController).setCurrentColorScheme(wallpaperColors, true); in updateColorScheme_triggerController()
|