Loading services/core/java/com/android/server/notification/NotificationManagerService.java +16 −12 Original line number Diff line number Diff line Loading @@ -2078,6 +2078,7 @@ public class NotificationManagerService extends SystemService { Slog.w(TAG, "getBackupPayload: cannot backup policy for user " + user); return null; } synchronized(mPolicyFile) { final ByteArrayOutputStream baos = new ByteArrayOutputStream(); try { writePolicyXml(baos, true /*forBackup*/); Loading @@ -2085,6 +2086,7 @@ public class NotificationManagerService extends SystemService { } catch (IOException e) { Slog.w(TAG, "getBackupPayload: error writing payload for user " + user, e); } } return null; } Loading @@ -2101,6 +2103,7 @@ public class NotificationManagerService extends SystemService { Slog.w(TAG, "applyRestore: cannot restore policy for user " + user); return; } synchronized(mPolicyFile) { final ByteArrayInputStream bais = new ByteArrayInputStream(payload); try { readPolicyXml(bais, true /*forRestore*/); Loading @@ -2109,6 +2112,7 @@ public class NotificationManagerService extends SystemService { Slog.w(TAG, "applyRestore: error reading payload", e); } } } @Override public boolean isNotificationPolicyAccessGranted(String pkg) { Loading Loading
services/core/java/com/android/server/notification/NotificationManagerService.java +16 −12 Original line number Diff line number Diff line Loading @@ -2078,6 +2078,7 @@ public class NotificationManagerService extends SystemService { Slog.w(TAG, "getBackupPayload: cannot backup policy for user " + user); return null; } synchronized(mPolicyFile) { final ByteArrayOutputStream baos = new ByteArrayOutputStream(); try { writePolicyXml(baos, true /*forBackup*/); Loading @@ -2085,6 +2086,7 @@ public class NotificationManagerService extends SystemService { } catch (IOException e) { Slog.w(TAG, "getBackupPayload: error writing payload for user " + user, e); } } return null; } Loading @@ -2101,6 +2103,7 @@ public class NotificationManagerService extends SystemService { Slog.w(TAG, "applyRestore: cannot restore policy for user " + user); return; } synchronized(mPolicyFile) { final ByteArrayInputStream bais = new ByteArrayInputStream(payload); try { readPolicyXml(bais, true /*forRestore*/); Loading @@ -2109,6 +2112,7 @@ public class NotificationManagerService extends SystemService { Slog.w(TAG, "applyRestore: error reading payload", e); } } } @Override public boolean isNotificationPolicyAccessGranted(String pkg) { Loading