summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xservices/core/java/com/android/server/notification/NotificationManagerService.java30
1 files changed, 2 insertions, 28 deletions
diff --git a/services/core/java/com/android/server/notification/NotificationManagerService.java b/services/core/java/com/android/server/notification/NotificationManagerService.java
index 02265aca79de..3331c2559da3 100755
--- a/services/core/java/com/android/server/notification/NotificationManagerService.java
+++ b/services/core/java/com/android/server/notification/NotificationManagerService.java
@@ -5392,34 +5392,8 @@ public class NotificationManagerService extends SystemService {
@Override
public void cancelNotificationFromListener(INotificationListener token, String pkg,
String tag, int id) {
- final int callingUid = Binder.getCallingUid();
- final int callingPid = Binder.getCallingPid();
- final long identity = Binder.clearCallingIdentity();
- final int packageImportance;
- try {
- if (lifetimeExtensionRefactor()) {
- packageImportance = getPackageImportanceWithIdentity(pkg);
- } else {
- packageImportance = IMPORTANCE_NONE;
- }
- synchronized (mNotificationLock) {
- final ManagedServiceInfo info = mListeners.checkServiceTokenLocked(token);
- int cancelReason = REASON_LISTENER_CANCEL;
- if (mAssistants.isServiceTokenValidLocked(token)) {
- cancelReason = REASON_ASSISTANT_CANCEL;
- }
- if (info.supportsProfiles()) {
- Slog.e(TAG, "Ignoring deprecated cancelNotification(pkg, tag, id) "
- + "from " + info.component
- + " use cancelNotification(key) instead.");
- } else {
- cancelNotificationFromListenerLocked(info, callingUid, callingPid,
- pkg, tag, id, info.userid, cancelReason, packageImportance);
- }
- }
- } finally {
- Binder.restoreCallingIdentity(identity);
- }
+ Slog.e(TAG, "Ignoring deprecated cancelNotification(pkg, tag, id) use " +
+ "cancelNotification(key) instead.");
}
/**