/frameworks/base/tests/Internal/src/android/app/ |
D | WallpaperColorsTest.java | 40 WallpaperColors colors = new WallpaperColors(color, null, null, 0); in supportsDarkTextOverrideTest() 42 (colors.getColorHints() & WallpaperColors.HINT_SUPPORTS_DARK_TEXT) == 0); in supportsDarkTextOverrideTest() 45 colors = new WallpaperColors(color, null, null, WallpaperColors.HINT_SUPPORTS_DARK_TEXT); in supportsDarkTextOverrideTest() 47 (colors.getColorHints() & WallpaperColors.HINT_SUPPORTS_DARK_TEXT) == 0); in supportsDarkTextOverrideTest() 59 int hints = WallpaperColors.fromBitmap(image).getColorHints(); in whiteSurfaceColorHintsTest() 60 boolean supportsDarkText = (hints & WallpaperColors.HINT_SUPPORTS_DARK_TEXT) != 0; in whiteSurfaceColorHintsTest() 61 boolean supportsDarkTheme = (hints & WallpaperColors.HINT_SUPPORTS_DARK_THEME) != 0; in whiteSurfaceColorHintsTest() 69 supportsDarkText = (WallpaperColors.fromBitmap(image) in whiteSurfaceColorHintsTest() 70 .getColorHints() & WallpaperColors.HINT_SUPPORTS_DARK_TEXT) != 0; in whiteSurfaceColorHintsTest() 84 int hints = WallpaperColors.fromBitmap(xsmall_image).getColorHints(); in xSmallWhiteSurfaceColorHintsTest() [all …]
|
/frameworks/libs/systemui/toruslib/torus-utils/src/main/java/com/google/android/torus/utils/wallpaper/ |
D | WallpaperUtils.kt | 18 import android.app.WallpaperColors 41 ): WallpaperColors { in getWallpaperColors() 43 WallpaperColors( in getWallpaperColors() 47 WallpaperColors.HINT_SUPPORTS_DARK_TEXT or WallpaperColors.HINT_SUPPORTS_DARK_THEME in getWallpaperColors() 50 WallpaperColors( in getWallpaperColors()
|
/frameworks/base/tests/Internal/src/com/android/internal/colorextraction/types/ |
D | TonalTest.java | 23 import android.app.WallpaperColors; 59 tonal.extractInto(new WallpaperColors(Color.valueOf(0xff000000), null, null, 0), in extractInto_usesFallbackWhenTooLightOrDark() 64 tonal.extractInto(new WallpaperColors(Color.valueOf(0xffffffff), null, null, in extractInto_usesFallbackWhenTooLightOrDark() 65 WallpaperColors.HINT_SUPPORTS_DARK_TEXT), in extractInto_usesFallbackWhenTooLightOrDark() 77 WallpaperColors wallColors = new WallpaperColors(Color.valueOf(Color.RED), null, null, in extractInto_fromBitmap() 78 WallpaperColors.HINT_FROM_BITMAP); in extractInto_fromBitmap() 92 WallpaperColors wallColors = new WallpaperColors(Color.valueOf(Color.RED), null, null, in extractInto_supportsDarkText() 93 WallpaperColors.HINT_SUPPORTS_DARK_TEXT); in extractInto_supportsDarkText()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/theme/ |
D | ThemeOverlayControllerTest.java | 42 import android.app.WallpaperColors; 223 WallpaperColors mainColors = new WallpaperColors(Color.valueOf(Color.RED), in onWallpaperColorsChanged_setsTheme_whenForeground() 245 mColorsListener.getValue().onColorsChanged(new WallpaperColors(Color.valueOf(Color.BLACK), in onWallpaperColorsChanged_setsTheme_whenForeground() 254 mColorsListener.getValue().onColorsChanged(new WallpaperColors(Color.valueOf(Color.BLACK), in onWallpaperColorsChanged_setsTheme_whenForeground() 262 WallpaperColors mainColors = new WallpaperColors(Color.valueOf(Color.RED), in onWallpaperColorsChanged_setsTheme_skipWhenBackground() 276 mColorsListener.getValue().onColorsChanged(new WallpaperColors(Color.valueOf(Color.BLACK), in onWallpaperColorsChanged_setsTheme_skipWhenBackground() 285 WallpaperColors mainColors = new WallpaperColors(Color.valueOf(Color.RED), in onWallpaperColorsChanged_preservesWallpaperPickerTheme() 311 WallpaperColors mainColors = new WallpaperColors(Color.valueOf(Color.RED), in onWallpaperColorsChanged_resetThemeIfNotPreset() 346 WallpaperColors mainColors = new WallpaperColors(Color.valueOf(Color.RED), in onWallpaperColorsChanged_resetThemeWithNewHomeWallpapers() 380 WallpaperColors mainColors = new WallpaperColors(Color.valueOf(Color.RED), in onWallpaperColorsChanged_keepsThemeWhenSetFromLockScreen() [all …]
|
/frameworks/base/core/java/android/app/ |
D | WallpaperColors.java | 61 public final class WallpaperColors implements Parcelable { class 118 public WallpaperColors(Parcel parcel) { in WallpaperColors() method in WallpaperColors 143 public static WallpaperColors fromDrawable(Drawable drawable) { in fromDrawable() 166 final WallpaperColors colors = WallpaperColors.fromBitmap(bitmap); in fromDrawable() 181 public static WallpaperColors fromBitmap(@NonNull Bitmap bitmap) { in fromBitmap() 198 public static WallpaperColors fromBitmap(@NonNull Bitmap bitmap, in fromBitmap() 254 return new WallpaperColors(populationByColor, HINT_FROM_BITMAP | hints); in fromBitmap() 266 public WallpaperColors(@NonNull Color primaryColor, @Nullable Color secondaryColor, in WallpaperColors() method in WallpaperColors 289 public WallpaperColors(@NonNull Color primaryColor, @Nullable Color secondaryColor, in WallpaperColors() method in WallpaperColors 327 public WallpaperColors(@NonNull Map<Integer, Integer> colorToPopulation, in WallpaperColors() method in WallpaperColors [all …]
|
D | IWallpaperManagerCallback.aidl | 19 import android.app.WallpaperColors; 37 void onWallpaperColorsChanged(in WallpaperColors colors, int which, int userId); in onWallpaperColorsChanged()
|
D | ILocalWallpaperColorConsumer.aidl | 19 import android.app.WallpaperColors; 26 void onColorsChanged(in RectF area, in WallpaperColors colors); in onColorsChanged()
|
D | WallpaperColors.aidl | 19 parcelable WallpaperColors;
|
/frameworks/base/core/java/android/service/wallpaper/ |
D | EngineWindowPage.java | 19 import android.app.WallpaperColors; 36 private Map<RectF, WallpaperColors> mRectFColors = new ArrayMap<>(); 44 public void addWallpaperColors(RectF area, WallpaperColors colors) { in addWallpaperColors() 72 public WallpaperColors getColors(RectF rect) { in getColors()
|
D | IWallpaperConnection.aidl | 22 import android.app.WallpaperColors; 31 void onWallpaperColorsChanged(in WallpaperColors colors, int displayId); in onWallpaperColorsChanged() 32 void onLocalWallpaperColorsChanged(in RectF area, in WallpaperColors colors, int displayId); in onLocalWallpaperColorsChanged()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/wallpapers/ |
D | WallpaperLocalColorExtractor.java | 22 import android.app.WallpaperColors; 72 private WallpaperColors mWallpaperColors; 97 void onColorsProcessed(List<RectF> regions, List<WallpaperColors> colors); in onColorsProcessed() 228 public WallpaperColors onComputeColors() { in onComputeColors() 251 WallpaperColors getWallpaperColors(@NonNull Bitmap bitmap, float dimAmount) { in getWallpaperColors() 252 return WallpaperColors.fromBitmap(bitmap, dimAmount); in getWallpaperColors() 344 private WallpaperColors getLocalWallpaperColors(@NonNull RectF area) { in getLocalWallpaperColors() 362 WallpaperColors getLocalWallpaperColors(@NonNull Rect subImage) { in getLocalWallpaperColors() 366 return WallpaperColors.fromBitmap(colorImg); in getLocalWallpaperColors() 436 List<WallpaperColors> processedColors = new ArrayList<>(); in processLocalColorsInternal() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/wallpaper/ |
D | WallpaperManagerServiceTests.java | 53 import android.app.WallpaperColors; 439 wallpaper.primaryColors = new WallpaperColors(Color.valueOf(Color.RED), in testWallpaperManagerCallbackInRightOrder() 491 wallpaper.primaryColors = new WallpaperColors(Color.valueOf(Color.WHITE), null, null, in testGetAdjustedWallpaperColorsOnDimming() 492 WallpaperColors.HINT_SUPPORTS_DARK_TEXT | WallpaperColors.HINT_SUPPORTS_DARK_THEME); in testGetAdjustedWallpaperColorsOnDimming() 496 assertNotEquals(WallpaperColors.HINT_SUPPORTS_DARK_TEXT, in testGetAdjustedWallpaperColorsOnDimming() 497 colorHints & WallpaperColors.HINT_SUPPORTS_DARK_TEXT); in testGetAdjustedWallpaperColorsOnDimming() 498 assertNotEquals(WallpaperColors.HINT_SUPPORTS_DARK_THEME, in testGetAdjustedWallpaperColorsOnDimming() 499 colorHints & WallpaperColors.HINT_SUPPORTS_DARK_THEME); in testGetAdjustedWallpaperColorsOnDimming() 505 assertEquals(WallpaperColors.HINT_SUPPORTS_DARK_TEXT, in testGetAdjustedWallpaperColorsOnDimming() 506 colorHints & WallpaperColors.HINT_SUPPORTS_DARK_TEXT); in testGetAdjustedWallpaperColorsOnDimming() [all …]
|
D | LocalColorRepositoryTest.java | 32 import android.app.WallpaperColors; 103 WallpaperColors colors = mock(WallpaperColors.class); in testAreaCallback()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/util/ |
D | MediaArtworkHelper.kt | 19 import android.app.WallpaperColors in <lambda>() 48 ): WallpaperColors? = in <lambda>() 58 WallpaperColors.fromBitmap(artworkBitmap) in <lambda>() 63 WallpaperColors.fromDrawable(artworkDrawable) in <lambda>() 110 ColorScheme(WallpaperColors.fromDrawable(icon), true, style) in <lambda>()
|
/frameworks/base/core/java/com/android/internal/colorextraction/ |
D | ColorExtractor.java | 21 import android.app.WallpaperColors; 52 protected WallpaperColors mSystemColors; 53 protected WallpaperColors mLockColors; 94 private WallpaperColors mSystemColors; 95 private WallpaperColors mLockColors; 161 public WallpaperColors getWallpaperColors(int which) { in getWallpaperColors() 172 public void onColorsChanged(WallpaperColors colors, int which) { in onColorsChanged() 212 private void extractInto(WallpaperColors inWallpaperColors, in extractInto()
|
/frameworks/base/core/java/com/android/internal/colorextraction/types/ |
D | ExtractionType.java | 19 import android.app.WallpaperColors; 42 void extractInto(WallpaperColors inWallpaperColors, in extractInto()
|
D | Tonal.java | 21 import android.app.WallpaperColors; 85 public void extractInto(@Nullable WallpaperColors inWallpaperColors, in extractInto() 104 private boolean runTonalExtraction(@Nullable WallpaperColors inWallpaperColors, in runTonalExtraction() 115 final boolean supportsDarkText = (hints & WallpaperColors.HINT_SUPPORTS_DARK_TEXT) != 0; in runTonalExtraction() 235 private void applyFallback(@Nullable WallpaperColors inWallpaperColors, in applyFallback() 249 public void applyFallback(@Nullable WallpaperColors inWallpaperColors, in applyFallback() 252 && (inWallpaperColors.getColorHints() & WallpaperColors.HINT_SUPPORTS_DARK_TEXT) in applyFallback() 255 && (inWallpaperColors.getColorHints() & WallpaperColors.HINT_SUPPORTS_DARK_THEME) in applyFallback()
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/regionsampling/ |
D | RegionSampler.kt | 18 import android.app.WallpaperColors 48 private var initialSampling: WallpaperColors? = null 261 override fun onColorsChanged(area: RectF?, colors: WallpaperColors?) { in onColorsChanged() 265 (colors?.colorHints?.and(WallpaperColors.HINT_SUPPORTS_DARK_TEXT)) != in onColorsChanged() 266 WallpaperColors.HINT_SUPPORTS_DARK_TEXT in onColorsChanged()
|
/frameworks/libs/systemui/toruslib/torus-core/src/main/java/com/google/android/torus/core/wallpaper/listener/ |
D | LiveWallpaperEventListener.kt | 19 import android.app.WallpaperColors 70 fun computeWallpaperColors(): WallpaperColors? in onOffsetChanged()
|
/frameworks/libs/systemui/monet/src/com/android/systemui/monet/ |
D | ColorScheme.java | 20 import android.app.WallpaperColors; 109 public ColorScheme(WallpaperColors wallpaperColors, boolean darkTheme, Style style) { in ColorScheme() 113 public ColorScheme(WallpaperColors wallpaperColors, boolean darkTheme) { in ColorScheme() 188 public static int getSeedColor(WallpaperColors wallpaperColors, boolean filter) { in getSeedColor() 198 public static int getSeedColor(WallpaperColors wallpaperColors) { in getSeedColor() 210 public static List<Integer> getSeedColors(WallpaperColors wallpaperColors, boolean filter) { in getSeedColors() 316 public static List<Integer> getSeedColors(WallpaperColors newWallpaperColors) { in getSeedColors()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/regionsampling/ |
D | RegionSamplerTest.kt | 3 import android.app.WallpaperColors 201 WallpaperColors(Color.valueOf(Color.BLACK), Color.valueOf(Color.BLACK), null) in setBlackWallpaper() 209 WallpaperColors( in setWhiteWallpaper() 213 WallpaperColors.HINT_SUPPORTS_DARK_TEXT in setWhiteWallpaper()
|
/frameworks/base/tests/Internal/src/com/android/internal/colorextraction/ |
D | ColorExtractorTest.java | 26 import android.app.WallpaperColors; 108 extractor.onColorsChanged(new WallpaperColors(Color.valueOf(Color.RED), null, null), in addOnColorsChangedListener_invokesListener() 114 extractor.onColorsChanged(new WallpaperColors(Color.valueOf(Color.RED), null, null), in addOnColorsChangedListener_invokesListener()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/wallpaper/ |
D | WallpaperServiceTests.java | 22 import android.app.WallpaperColors; 62 public WallpaperColors onComputeColors() { in testNotifyColorsChanged_rateLimit()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/theme/ |
D | ThemeOverlayController.java | 36 import android.app.WallpaperColors; 136 private final SparseArray<WallpaperColors> mCurrentColors = new SparseArray<>(); 160 private final SparseArray<WallpaperColors> mDeferredWallpaperColors = new SparseArray<>(); 192 public void onColorsChanged(WallpaperColors wallpaperColors, int which) { 198 public void onColorsChanged(WallpaperColors wallpaperColors, int which, int userId) { 199 WallpaperColors currentColors = mCurrentColors.get(userId); 248 private boolean isSeedColorSet(JSONObject jsonObject, WallpaperColors newWallpaperColors) { in isSeedColorSet() 276 private void handleWallpaperColors(WallpaperColors wallpaperColors, int flags, int userId) { in handleWallpaperColors() 489 WallpaperColors systemColor = mWallpaperManager.getWallpaperColors( in start() 515 final WallpaperColors colors = mDeferredWallpaperColors.get(userId); in start() [all …]
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | DynamicRenderResources.java | 32 import android.app.WallpaperColors; 166 WallpaperColors wallpaperColors = WallpaperColors.fromBitmap(wallpaper); in createDynamicColorMap()
|