Home
last modified time | relevance | path

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

/frameworks/base/tests/Internal/src/android/app/
DWallpaperColorsTest.java39 WallpaperColors colors = new WallpaperColors(color, null, null, 0); in supportsDarkTextOverrideTest()
41 (colors.getColorHints() & WallpaperColors.HINT_SUPPORTS_DARK_TEXT) == 0); in supportsDarkTextOverrideTest()
44 colors = new WallpaperColors(color, null, null, WallpaperColors.HINT_SUPPORTS_DARK_TEXT); in supportsDarkTextOverrideTest()
46 (colors.getColorHints() & WallpaperColors.HINT_SUPPORTS_DARK_TEXT) == 0); in supportsDarkTextOverrideTest()
58 int hints = WallpaperColors.fromBitmap(image).getColorHints(); in colorHintsTest()
59 boolean supportsDarkText = (hints & WallpaperColors.HINT_SUPPORTS_DARK_TEXT) != 0; in colorHintsTest()
60 boolean supportsDarkTheme = (hints & WallpaperColors.HINT_SUPPORTS_DARK_THEME) != 0; in colorHintsTest()
61 boolean fromBitmap = (hints & WallpaperColors.HINT_FROM_BITMAP) != 0; in colorHintsTest()
68 hints = WallpaperColors.fromBitmap(image).getColorHints(); in colorHintsTest()
69 supportsDarkText = (hints & WallpaperColors.HINT_SUPPORTS_DARK_TEXT) != 0; in colorHintsTest()
[all …]
/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/core/java/android/app/
DWallpaperColors.java49 public final class WallpaperColors implements Parcelable { class
100 public WallpaperColors(Parcel parcel) { in WallpaperColors() method in WallpaperColors
118 public static WallpaperColors fromDrawable(Drawable drawable) { in fromDrawable()
140 final WallpaperColors colors = WallpaperColors.fromBitmap(bitmap); in fromDrawable()
154 public static WallpaperColors fromBitmap(@NonNull Bitmap bitmap) { in fromBitmap()
210 return new WallpaperColors(primary, secondary, tertiary, HINT_FROM_BITMAP | hints); in fromBitmap()
222 public WallpaperColors(@NonNull Color primaryColor, @Nullable Color secondaryColor, in WallpaperColors() method in WallpaperColors
240 public WallpaperColors(@NonNull Color primaryColor, @Nullable Color secondaryColor, in WallpaperColors() method in WallpaperColors
263 …static final @android.annotation.NonNull Creator<WallpaperColors> CREATOR = new Creator<WallpaperC…
265 public WallpaperColors createFromParcel(Parcel in) {
[all …]
DIWallpaperManagerCallback.aidl19 import android.app.WallpaperColors;
37 void onWallpaperColorsChanged(in WallpaperColors colors, int which, int userId); in onWallpaperColorsChanged()
DIWallpaperManager.aidl25 import android.app.WallpaperColors;
154 WallpaperColors getWallpaperColors(int which, int userId, int displayId); in getWallpaperColors()
DWallpaperColors.aidl19 parcelable WallpaperColors;
DWallpaperManager.java354 public void onWallpaperColorsChanged(WallpaperColors colors, int which, int userId) { in onWallpaperColorsChanged()
376 WallpaperColors getWallpaperColors(int which, int userId, int displayId) { in getWallpaperColors()
939 public @Nullable WallpaperColors getWallpaperColors(int which) { in getWallpaperColors()
952 public @Nullable WallpaperColors getWallpaperColors(int which, int userId) { in getWallpaperColors()
1996 public void onWallpaperColorsChanged(WallpaperColors colors, int which, int userId) in onWallpaperColorsChanged()
2014 void onColorsChanged(WallpaperColors colors, int which); in onColorsChanged()
2026 default void onColorsChanged(WallpaperColors colors, int which, int userId) { in onColorsChanged()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DTonalCompat.java18 import android.app.WallpaperColors;
32 public ExtractionInfo extractDarkColors(WallpaperColors colors) { in extractDarkColors()
42 (colors.getColorHints() & WallpaperColors.HINT_SUPPORTS_DARK_THEME) != 0; in extractDarkColors()
/frameworks/base/core/java/com/android/internal/colorextraction/
DColorExtractor.java21 import android.app.WallpaperColors;
52 protected WallpaperColors mSystemColors;
53 protected WallpaperColors mLockColors;
97 private WallpaperColors mSystemColors;
98 private WallpaperColors mLockColors;
164 public WallpaperColors getWallpaperColors(int which) { in getWallpaperColors()
175 public void onColorsChanged(WallpaperColors colors, int which) { in onColorsChanged()
215 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/core/java/android/service/wallpaper/
DIWallpaperConnection.aidl21 import android.app.WallpaperColors;
30 void onWallpaperColorsChanged(in WallpaperColors colors, int displayId); in onWallpaperColorsChanged()
DWallpaperService.java25 import android.app.WallpaperColors;
647 final WallpaperColors newColors = onComputeColors(); in notifyColorsChanged()
672 public @Nullable WallpaperColors onComputeColors() { in onComputeColors()
/frameworks/base/tests/Internal/src/com/android/internal/colorextraction/
DColorExtractorTest.java26 import android.app.WallpaperColors;
111 extractor.onColorsChanged(new WallpaperColors(Color.valueOf(Color.RED), null, null), in addOnColorsChangedListener_invokesListener()
117 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/colorextraction/
DSysuiColorExtractor.java19 import android.app.WallpaperColors;
89 public void onColorsChanged(WallpaperColors colors, int which, int userId) { in onColorsChanged()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/colorextraction/
DSysuiColorExtractorTests.java28 import android.app.WallpaperColors;
134 extractor.onColorsChanged(new WallpaperColors(Color.valueOf(Color.GREEN), null, null, 0), in simulateEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DLockscreenWallpaper.java23 import android.app.WallpaperColors;
166 public void onWallpaperColorsChanged(WallpaperColors colors, int which, int userId) { in onWallpaperColorsChanged()
/frameworks/base/services/core/java/com/android/server/wallpaper/
DWallpaperManagerService.java37 import android.app.WallpaperColors;
418 private void notifyColorListeners(@NonNull WallpaperColors wallpaperColors, int which, in notifyColorListeners()
481 final WallpaperColors colors = extractDefaultImageWallpaperColors(); in extractColors()
500 WallpaperColors colors = null; in extractColors()
504 colors = WallpaperColors.fromBitmap(bitmap); in extractColors()
529 private WallpaperColors extractDefaultImageWallpaperColors() { in extractDefaultImageWallpaperColors()
536 WallpaperColors colors = null; in extractDefaultImageWallpaperColors()
546 colors = WallpaperColors.fromBitmap(bitmap); in extractDefaultImageWallpaperColors()
816 private WallpaperColors mCacheDefaultImageWallpaperColors;
885 WallpaperColors primaryColors;
[all …]
/frameworks/base/config/
Dpreloaded-classes486 android.app.WallpaperColors$1
487 android.app.WallpaperColors
/frameworks/base/api/
Dsystem-current.txt645 public final class WallpaperColors implements android.os.Parcelable {
646 …ctor public WallpaperColors(@NonNull android.graphics.Color, @Nullable android.graphics.Color, @Nu…
/frameworks/base/services/
Dart-profile14265 …paperManagerService$WallpaperConnection;->onWallpaperColorsChanged(Landroid/app/WallpaperColors;I)V
14281 …llpaper/WallpaperManagerService;->extractDefaultImageWallpaperColors()Landroid/app/WallpaperColors;
14287 …oid/server/wallpaper/WallpaperManagerService;->getWallpaperColors(III)Landroid/app/WallpaperColors;
14305 …/server/wallpaper/WallpaperManagerService;->notifyColorListeners(Landroid/app/WallpaperColors;III)V
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...