Home
last modified time | relevance | path

Searched refs:WallpaperColors (Results 1 – 25 of 53) sorted by relevance

123

/frameworks/base/tests/Internal/src/android/app/
DWallpaperColorsTest.java40 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/
DWallpaperUtils.kt18 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/
DTonalTest.java23 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/
DThemeOverlayControllerTest.java42 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/
DWallpaperColors.java61 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 …]
DIWallpaperManagerCallback.aidl19 import android.app.WallpaperColors;
37 void onWallpaperColorsChanged(in WallpaperColors colors, int which, int userId); in onWallpaperColorsChanged()
DILocalWallpaperColorConsumer.aidl19 import android.app.WallpaperColors;
26 void onColorsChanged(in RectF area, in WallpaperColors colors); in onColorsChanged()
DWallpaperColors.aidl19 parcelable WallpaperColors;
/frameworks/base/core/java/android/service/wallpaper/
DEngineWindowPage.java19 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()
DIWallpaperConnection.aidl22 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/
DWallpaperLocalColorExtractor.java22 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/
DWallpaperManagerServiceTests.java53 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 …]
DLocalColorRepositoryTest.java32 import android.app.WallpaperColors;
103 WallpaperColors colors = mock(WallpaperColors.class); in testAreaCallback()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/util/
DMediaArtworkHelper.kt19 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/
DColorExtractor.java21 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/
DExtractionType.java19 import android.app.WallpaperColors;
42 void extractInto(WallpaperColors inWallpaperColors, in extractInto()
DTonal.java21 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/
DRegionSampler.kt18 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/
DLiveWallpaperEventListener.kt19 import android.app.WallpaperColors
70 fun computeWallpaperColors(): WallpaperColors? in onOffsetChanged()
/frameworks/libs/systemui/monet/src/com/android/systemui/monet/
DColorScheme.java20 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/
DRegionSamplerTest.kt3 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/
DColorExtractorTest.java26 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/
DWallpaperServiceTests.java22 import android.app.WallpaperColors;
62 public WallpaperColors onComputeColors() { in testNotifyColorsChanged_rateLimit()
/frameworks/base/packages/SystemUI/src/com/android/systemui/theme/
DThemeOverlayController.java36 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/
DDynamicRenderResources.java32 import android.app.WallpaperColors;
166 WallpaperColors wallpaperColors = WallpaperColors.fromBitmap(wallpaper); in createDynamicColorMap()

123