Home
last modified time | relevance | path

Searched refs:WallpaperManager (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/core/java/com/android/internal/colorextraction/
DColorExtractor.java22 import android.app.WallpaperManager;
38 public class ColorExtractor implements WallpaperManager.OnColorsChangedListener {
57 context.getSystemService(WallpaperManager.class)); in ColorExtractor()
62 WallpaperManager wallpaperManager) { in ColorExtractor()
67 for (int which : new int[] { WallpaperManager.FLAG_LOCK, WallpaperManager.FLAG_SYSTEM}) { in ColorExtractor()
85 private void initExtractColors(WallpaperManager wallpaperManager, boolean immediately) { in initExtractColors()
87 mSystemColors = wallpaperManager.getWallpaperColors(WallpaperManager.FLAG_SYSTEM); in initExtractColors()
88 mLockColors = wallpaperManager.getWallpaperColors(WallpaperManager.FLAG_LOCK); in initExtractColors()
96 private class LoadWallpaperColors extends AsyncTask<WallpaperManager, Void, Void> {
100 protected Void doInBackground(WallpaperManager... params) { in doInBackground()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/colorextraction/
DSysuiColorExtractor.java20 import android.app.WallpaperManager;
55 context.getSystemService(WallpaperManager.class), false /* immediately */); in SysuiColorExtractor()
61 WallpaperManager wallpaperManager, boolean immediately) { in SysuiColorExtractor()
94 if ((which & WallpaperManager.FLAG_LOCK) != 0) { in onColorsChanged()
103 triggerColorsChanged(WallpaperManager.FLAG_SYSTEM | WallpaperManager.FLAG_LOCK); in onUiModeChanged()
108 if (mHasMediaArtwork && (which & WallpaperManager.FLAG_LOCK) != 0) { in getColors()
129 triggerColorsChanged(WallpaperManager.FLAG_LOCK); in setHasMediaArtwork()
141 GradientColors[] system = mGradientColors.get(WallpaperManager.FLAG_SYSTEM); in dump()
142 GradientColors[] lock = mGradientColors.get(WallpaperManager.FLAG_LOCK); in dump()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/colorextraction/
DSysuiColorExtractorTests.java29 import android.app.WallpaperManager;
54 WallpaperManager.FLAG_SYSTEM,
55 WallpaperManager.FLAG_LOCK};
62 private WallpaperManager mWallpaperManager;
104 mColorExtractor.getColors(WallpaperManager.FLAG_LOCK, type), fallbackColors); in getColors_fallbackWhenMediaIsVisible()
106 mColorExtractor.getColors(WallpaperManager.FLAG_SYSTEM, type), fallbackColors); in getColors_fallbackWhenMediaIsVisible()
135 WallpaperManager.FLAG_SYSTEM | WallpaperManager.FLAG_LOCK); in simulateEvent()
/frameworks/base/tests/Internal/src/com/android/internal/colorextraction/
DColorExtractorTest.java27 import android.app.WallpaperManager;
54 WallpaperManager mWallpaperManager;
94 GradientColors colors = extractor.getColors(WallpaperManager.FLAG_SYSTEM, in getColors_usesExtractedColors()
97 colors = extractor.getColors(WallpaperManager.FLAG_SYSTEM, ColorExtractor.TYPE_DARK); in getColors_usesExtractedColors()
99 colors = extractor.getColors(WallpaperManager.FLAG_SYSTEM, ColorExtractor.TYPE_EXTRA_DARK); in getColors_usesExtractedColors()
112 WallpaperManager.FLAG_LOCK); in addOnColorsChangedListener_invokesListener()
114 eq(WallpaperManager.FLAG_LOCK)); in addOnColorsChangedListener_invokesListener()
118 WallpaperManager.FLAG_LOCK); in addOnColorsChangedListener_invokesListener()
/frameworks/base/services/core/java/com/android/server/
DWallpaperUpdateReceiver.java20 import android.app.WallpaperManager;
52 WallpaperManager wallpaperManager = WallpaperManager.getInstance(uiContext); in updateWallpaper()
/frameworks/base/core/java/android/app/backup/
DWallpaperBackupHelper.java19 import android.app.WallpaperManager;
53 private final WallpaperManager mWpm;
68 mWpm = (WallpaperManager) context.getSystemService(Context.WALLPAPER_SERVICE); in WallpaperBackupHelper()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DLockscreenWallpaper.java24 import android.app.WallpaperManager;
61 private final WallpaperManager mWallpaperManager;
76 mWallpaperManager = (WallpaperManager) ctx.getSystemService(Context.WALLPAPER_SERVICE); in LockscreenWallpaper()
116 WallpaperManager.FLAG_LOCK, lockWallpaperUserId); in loadBitmap()
DStatusBar.java62 import android.app.WallpaperManager;
477 WallpaperManager wallpaperManager = context.getSystemService(WallpaperManager.class);
/frameworks/base/packages/WallpaperBackup/src/com/android/wallpaperbackup/
DWallpaperBackupAgent.java19 import static android.app.WallpaperManager.FLAG_LOCK;
20 import static android.app.WallpaperManager.FLAG_SYSTEM;
23 import android.app.WallpaperManager;
84 private WallpaperManager mWm;
96 mWm = (WallpaperManager) getSystemService(Context.WALLPAPER_SERVICE); in onCreate()
/frameworks/base/tests/WallpaperTest/src/com/example/wallpapertest/
DMainActivity.java20 import android.app.WallpaperManager;
36 WallpaperManager mWallpaperManager;
58 mWallpaperManager = (WallpaperManager)getSystemService(Context.WALLPAPER_SERVICE); in onCreate()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/clock/
DDefaultClockController.java18 import android.app.WallpaperManager;
127 WallpaperManager.FLAG_LOCK); in getPreview()
DAnalogClockController.java18 import android.app.WallpaperManager;
133 WallpaperManager.FLAG_LOCK); in getPreview()
DBubbleClockController.java18 import android.app.WallpaperManager;
133 WallpaperManager.FLAG_LOCK); in getPreview()
/frameworks/base/packages/SystemUI/src/com/android/systemui/glwallpaper/
DImageWallpaperRenderer.java25 import android.app.WallpaperManager;
50 private final WallpaperManager mWallpaperManager;
66 mWallpaperManager = context.getSystemService(WallpaperManager.class); in ImageWallpaperRenderer()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardClockSwitch.java8 import android.app.WallpaperManager;
148 if ((which & WallpaperManager.FLAG_LOCK) != 0) {
382 WallpaperManager.FLAG_LOCK); in updateColors()
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
DWallpaperCropActivity.java21 import android.app.WallpaperManager;
577 WallpaperManager wallpaperManager = null;
579 wallpaperManager = WallpaperManager.getInstance(mContext.getApplicationContext());
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/
DRecentsActivity.java24 import android.app.WallpaperManager;
326 WallpaperManager.FLAG_SYSTEM).supportsDarkText(); in onCreate()
396 if ((which & WallpaperManager.FLAG_SYSTEM) != 0) { in onColorsChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DGlobalActionsDialog.java29 import android.app.WallpaperManager;
1781 if ((WallpaperManager.FLAG_LOCK & which) != 0) {
1782 updateColors(extractor.getColors(WallpaperManager.FLAG_LOCK),
1786 if ((WallpaperManager.FLAG_SYSTEM & which) != 0) {
1787 updateColors(extractor.getColors(WallpaperManager.FLAG_SYSTEM),
/frameworks/base/core/java/android/app/
DWallpaperManager.java93 public class WallpaperManager { class
511 /*package*/ WallpaperManager(IWallpaperManager service, Context context, Handler handler) { in WallpaperManager() method in WallpaperManager
519 public static WallpaperManager getInstance(Context context) { in getInstance()
520 return (WallpaperManager)context.getSystemService( in getInstance()
DSystemServiceRegistry.java692 registerService(Context.WALLPAPER_SERVICE, WallpaperManager.class, in registerService()
693 new CachedServiceFetcher<WallpaperManager>() { in registerService()
695 public WallpaperManager createService(ContextImpl ctx) in registerService()
704 return new WallpaperManager(service, ctx.getOuterContext(), in registerService()
DContextImpl.java921 private WallpaperManager getWallpaperManager() { in getWallpaperManager()
922 return getSystemService(WallpaperManager.class); in getWallpaperManager()
/frameworks/base/services/core/java/com/android/server/wallpaper/
DWallpaperManagerService.java19 import static android.app.WallpaperManager.FLAG_LOCK;
20 import static android.app.WallpaperManager.FLAG_SYSTEM;
39 import android.app.WallpaperManager;
537 try (InputStream is = WallpaperManager.openDefaultWallpaper(mContext, FLAG_SYSTEM)) { in extractDefaultImageWallpaperColors()
1571 mDefaultWallpaperComponent = WallpaperManager.getDefaultWallpaperComponent(context); in WallpaperManagerService()
2424 extras.putInt(WallpaperManager.EXTRA_NEW_WALLPAPER_ID, wallpaper.wallpaperId); in updateWallpaperBitmapLocked()
/frameworks/base/config/
Ddirty-image-objects55 android.app.WallpaperManager
/frameworks/base/core/java/android/service/wallpaper/
DWallpaperService.java27 import android.app.WallpaperManager;
/frameworks/base/core/java/android/provider/
DSettings.java48 import android.app.WallpaperManager;

12