Loading services/core/java/com/android/server/wallpaper/WallpaperManagerService.java +8 −9 Original line number Diff line number Diff line Loading @@ -2092,8 +2092,8 @@ public class WallpaperManagerService extends IWallpaperManager.Stub finalWhich = which; } boolean success = withCleanCallingIdentity(() -> setWallpaperComponentInternal( component, callingPackage, finalWhich, userId, reply)); boolean success = withCleanCallingIdentity(() -> setWallpaperComponent( component, callingPackage, finalWhich, userId)); if (success) return; } catch (IllegalArgumentException e1) { e = e1; Loading @@ -2105,13 +2105,6 @@ public class WallpaperManagerService extends IWallpaperManager.Stub // wallpaper. Slog.e(TAG, "Default wallpaper component not found!", e); withCleanCallingIdentity(() -> clearWallpaperComponentLocked(wallpaper)); if (reply != null) { try { reply.sendResult(null); } catch (RemoteException e1) { Slog.w(TAG, "Failed to notify callback after wallpaper clear", e1); } } } private void clearWallpaperLocked(int which, int userId, IRemoteCallback reply) { Loading Loading @@ -3300,6 +3293,12 @@ public class WallpaperManagerService extends IWallpaperManager.Stub } } private boolean setWallpaperComponent(ComponentName name, @SetWallpaperFlags int which, int userId) { String callingPackage = mPackageManagerInternal.getNameForUid(getCallingUid()); return setWallpaperComponentInternal(name, callingPackage, which, userId, null); } private boolean setWallpaperComponentInternal(ComponentName name, String callingPackage, @SetWallpaperFlags int which, int userIdIn, IRemoteCallback reply) { if (DEBUG) { Loading Loading
services/core/java/com/android/server/wallpaper/WallpaperManagerService.java +8 −9 Original line number Diff line number Diff line Loading @@ -2092,8 +2092,8 @@ public class WallpaperManagerService extends IWallpaperManager.Stub finalWhich = which; } boolean success = withCleanCallingIdentity(() -> setWallpaperComponentInternal( component, callingPackage, finalWhich, userId, reply)); boolean success = withCleanCallingIdentity(() -> setWallpaperComponent( component, callingPackage, finalWhich, userId)); if (success) return; } catch (IllegalArgumentException e1) { e = e1; Loading @@ -2105,13 +2105,6 @@ public class WallpaperManagerService extends IWallpaperManager.Stub // wallpaper. Slog.e(TAG, "Default wallpaper component not found!", e); withCleanCallingIdentity(() -> clearWallpaperComponentLocked(wallpaper)); if (reply != null) { try { reply.sendResult(null); } catch (RemoteException e1) { Slog.w(TAG, "Failed to notify callback after wallpaper clear", e1); } } } private void clearWallpaperLocked(int which, int userId, IRemoteCallback reply) { Loading Loading @@ -3300,6 +3293,12 @@ public class WallpaperManagerService extends IWallpaperManager.Stub } } private boolean setWallpaperComponent(ComponentName name, @SetWallpaperFlags int which, int userId) { String callingPackage = mPackageManagerInternal.getNameForUid(getCallingUid()); return setWallpaperComponentInternal(name, callingPackage, which, userId, null); } private boolean setWallpaperComponentInternal(ComponentName name, String callingPackage, @SetWallpaperFlags int which, int userIdIn, IRemoteCallback reply) { if (DEBUG) { Loading