Loading services/core/java/com/android/server/notification/NotificationManagerService.java +12 −17 Original line number Diff line number Diff line Loading @@ -583,7 +583,6 @@ public class NotificationManagerService extends SystemService { private void loadPolicyFile() { if (DBG) Slog.d(TAG, "loadPolicyFile"); synchronized (mPolicyFile) { InputStream infile = null; try { infile = mPolicyFile.openRead(); Loading Loading @@ -3357,7 +3356,6 @@ 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 @@ -3365,7 +3363,6 @@ public class NotificationManagerService extends SystemService { } catch (IOException e) { Slog.w(TAG, "getBackupPayload: error writing payload for user " + user, e); } } return null; } Loading @@ -3383,7 +3380,6 @@ 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 @@ -3392,7 +3388,6 @@ 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 +12 −17 Original line number Diff line number Diff line Loading @@ -583,7 +583,6 @@ public class NotificationManagerService extends SystemService { private void loadPolicyFile() { if (DBG) Slog.d(TAG, "loadPolicyFile"); synchronized (mPolicyFile) { InputStream infile = null; try { infile = mPolicyFile.openRead(); Loading Loading @@ -3357,7 +3356,6 @@ 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 @@ -3365,7 +3363,6 @@ public class NotificationManagerService extends SystemService { } catch (IOException e) { Slog.w(TAG, "getBackupPayload: error writing payload for user " + user, e); } } return null; } Loading @@ -3383,7 +3380,6 @@ 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 @@ -3392,7 +3388,6 @@ public class NotificationManagerService extends SystemService { Slog.w(TAG, "applyRestore: error reading payload", e); } } } @Override public boolean isNotificationPolicyAccessGranted(String pkg) { Loading