summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Spurlock <jspurlock@google.com>2014-05-05 09:22:57 -0400
committerJohn Spurlock <jspurlock@google.com>2014-05-05 09:22:57 -0400
commitc8d7ab9ff9f1ca0790d6fd9b9a2076c3eb63a795 (patch)
treecd6f9ed965d61600923b55ae0f1a9d10b4bfee82
parentdab404938368fc5bb0a3d9b91135890ab31d0b0c (diff)
downloadframeworks_base-c8d7ab9ff9f1ca0790d6fd9b9a2076c3eb63a795.zip
frameworks_base-c8d7ab9ff9f1ca0790d6fd9b9a2076c3eb63a795.tar.gz
frameworks_base-c8d7ab9ff9f1ca0790d6fd9b9a2076c3eb63a795.tar.bz2
Log all notification interceptions.
Change-Id: I036a4b5eb7c5a3ce2addb0a16d9d6806e3952929
-rw-r--r--services/core/java/com/android/server/notification/NotificationManagerService.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/notification/NotificationManagerService.java b/services/core/java/com/android/server/notification/NotificationManagerService.java
index 2e52983..6ceee5c 100644
--- a/services/core/java/com/android/server/notification/NotificationManagerService.java
+++ b/services/core/java/com/android/server/notification/NotificationManagerService.java
@@ -1612,7 +1612,8 @@ public class NotificationManagerService extends SystemService {
// Should this notification make noise, vibe, or use the LED?
final boolean canInterrupt = (score >= SCORE_INTERRUPTION_THRESHOLD) && !intercept;
- if (DBG) Slog.v(TAG, "canInterrupt=" + canInterrupt + " intercept=" + intercept);
+ if (DBG || intercept) Slog.v(TAG,
+ "pkg=" + pkg + " canInterrupt=" + canInterrupt + " intercept=" + intercept);
synchronized (mNotificationList) {
final StatusBarNotification n = new StatusBarNotification(
pkg, opPkg, id, tag, callingUid, callingPid, score, notification,