Loading core/java/android/service/notification/NotificationRankerService.java +7 −1 Original line number Diff line number Diff line Loading @@ -119,7 +119,13 @@ public abstract class NotificationRankerService extends NotificationListenerServ @Override public void registerAsSystemService(Context context, ComponentName componentName, int currentUser) { throw new IllegalStateException("the ranker may not start itself."); throw new UnsupportedOperationException("the ranker lifecycle is managed by the system."); } /** @hide */ @Override public void unregisterAsSystemService() { throw new UnsupportedOperationException("the ranker lifecycle is managed by the system."); } @Override Loading services/core/java/com/android/server/notification/NotificationManagerService.java +1 −10 Original line number Diff line number Diff line Loading @@ -1444,17 +1444,8 @@ public class NotificationManagerService extends SystemService { */ @Override public void unregisterListener(INotificationListener token, int userid) { final long identity = Binder.clearCallingIdentity(); try { if(mRankerServices.checkServiceTokenLocked(token) != null) { mRankerServices.unregisterService(token, userid); } else { mListeners.unregisterService(token, userid); } } finally { Binder.restoreCallingIdentity(identity); } } /** * Allow an INotificationListener to simulate a "clear all" operation. Loading Loading
core/java/android/service/notification/NotificationRankerService.java +7 −1 Original line number Diff line number Diff line Loading @@ -119,7 +119,13 @@ public abstract class NotificationRankerService extends NotificationListenerServ @Override public void registerAsSystemService(Context context, ComponentName componentName, int currentUser) { throw new IllegalStateException("the ranker may not start itself."); throw new UnsupportedOperationException("the ranker lifecycle is managed by the system."); } /** @hide */ @Override public void unregisterAsSystemService() { throw new UnsupportedOperationException("the ranker lifecycle is managed by the system."); } @Override Loading
services/core/java/com/android/server/notification/NotificationManagerService.java +1 −10 Original line number Diff line number Diff line Loading @@ -1444,17 +1444,8 @@ public class NotificationManagerService extends SystemService { */ @Override public void unregisterListener(INotificationListener token, int userid) { final long identity = Binder.clearCallingIdentity(); try { if(mRankerServices.checkServiceTokenLocked(token) != null) { mRankerServices.unregisterService(token, userid); } else { mListeners.unregisterService(token, userid); } } finally { Binder.restoreCallingIdentity(identity); } } /** * Allow an INotificationListener to simulate a "clear all" operation. Loading