Loading services/core/java/com/android/server/wallpaper/WallpaperManagerService.java +25 −20 Original line number Diff line number Diff line Loading @@ -2384,6 +2384,7 @@ public class WallpaperManagerService extends IWallpaperManager.Stub public void notifyWakingUp(int x, int y, @NonNull Bundle extras) { synchronized (mLock) { final WallpaperData data = mWallpaperMap.get(mCurrentUserId); if (data != null && data.connection != null) { data.connection.forEachDisplayConnector( displayConnector -> { if (displayConnector.mEngine != null) { Loading @@ -2397,6 +2398,7 @@ public class WallpaperManagerService extends IWallpaperManager.Stub }); } } } /** * Propagate a sleep event to the wallpaper engine. Loading @@ -2404,12 +2406,14 @@ public class WallpaperManagerService extends IWallpaperManager.Stub public void notifyGoingToSleep(int x, int y, @NonNull Bundle extras) { synchronized (mLock) { final WallpaperData data = mWallpaperMap.get(mCurrentUserId); if (data != null && data.connection != null) { data.connection.forEachDisplayConnector( displayConnector -> { if (displayConnector.mEngine != null) { try { displayConnector.mEngine.dispatchWallpaperCommand( WallpaperManager.COMMAND_GOING_TO_SLEEP, x, y, -1, extras); WallpaperManager.COMMAND_GOING_TO_SLEEP, x, y, -1, extras); } catch (RemoteException e) { e.printStackTrace(); } Loading @@ -2417,6 +2421,7 @@ public class WallpaperManagerService extends IWallpaperManager.Stub }); } } } @Override public boolean setLockWallpaperCallback(IWallpaperManagerCallback cb) { Loading Loading
services/core/java/com/android/server/wallpaper/WallpaperManagerService.java +25 −20 Original line number Diff line number Diff line Loading @@ -2384,6 +2384,7 @@ public class WallpaperManagerService extends IWallpaperManager.Stub public void notifyWakingUp(int x, int y, @NonNull Bundle extras) { synchronized (mLock) { final WallpaperData data = mWallpaperMap.get(mCurrentUserId); if (data != null && data.connection != null) { data.connection.forEachDisplayConnector( displayConnector -> { if (displayConnector.mEngine != null) { Loading @@ -2397,6 +2398,7 @@ public class WallpaperManagerService extends IWallpaperManager.Stub }); } } } /** * Propagate a sleep event to the wallpaper engine. Loading @@ -2404,12 +2406,14 @@ public class WallpaperManagerService extends IWallpaperManager.Stub public void notifyGoingToSleep(int x, int y, @NonNull Bundle extras) { synchronized (mLock) { final WallpaperData data = mWallpaperMap.get(mCurrentUserId); if (data != null && data.connection != null) { data.connection.forEachDisplayConnector( displayConnector -> { if (displayConnector.mEngine != null) { try { displayConnector.mEngine.dispatchWallpaperCommand( WallpaperManager.COMMAND_GOING_TO_SLEEP, x, y, -1, extras); WallpaperManager.COMMAND_GOING_TO_SLEEP, x, y, -1, extras); } catch (RemoteException e) { e.printStackTrace(); } Loading @@ -2417,6 +2421,7 @@ public class WallpaperManagerService extends IWallpaperManager.Stub }); } } } @Override public boolean setLockWallpaperCallback(IWallpaperManagerCallback cb) { Loading