Merge "NoMan: Add update bit to notification_enqueue log" into lmp-mr1-dev automerge: 6857203
automerge: 3fc8118
* commit '3fc811803db5f534399697dab1994e19af2a95f3':
NoMan: Add update bit to notification_enqueue log
This commit is contained in:
@@ -52,7 +52,7 @@ option java_package com.android.server
|
||||
# NotificationManagerService.java
|
||||
# ---------------------------
|
||||
# when a NotificationManager.notify is called
|
||||
2750 notification_enqueue (uid|1|5),(pid|1|5),(pkg|3),(id|1|5),(tag|3),(userid|1|5),(notification|3)
|
||||
2750 notification_enqueue (uid|1|5),(pid|1|5),(pkg|3),(id|1|5),(tag|3),(userid|1|5),(notification|3),(update|1)
|
||||
# when someone tries to cancel a notification, the notification manager sometimes
|
||||
# calls this with flags too
|
||||
2751 notification_cancel (uid|1|5),(pid|1|5),(pkg|3),(id|1|5),(tag|3),(userid|1|5),(required_flags|1),(forbidden_flags|1),(reason|1|5),(listener|3)
|
||||
|
||||
@@ -1712,14 +1712,6 @@ public class NotificationManagerService extends SystemService {
|
||||
}
|
||||
}
|
||||
|
||||
// This conditional is a dirty hack to limit the logging done on
|
||||
// behalf of the download manager without affecting other apps.
|
||||
if (!pkg.equals("com.android.providers.downloads")
|
||||
|| Log.isLoggable("DownloadManager", Log.VERBOSE)) {
|
||||
EventLogTags.writeNotificationEnqueue(callingUid, callingPid,
|
||||
pkg, id, tag, userId, notification.toString());
|
||||
}
|
||||
|
||||
if (pkg == null || notification == null) {
|
||||
throw new IllegalArgumentException("null not allowed: pkg=" + pkg
|
||||
+ " id=" + id + " notification=" + notification);
|
||||
@@ -1769,6 +1761,14 @@ public class NotificationManagerService extends SystemService {
|
||||
}
|
||||
mRankingHelper.extractSignals(r);
|
||||
|
||||
// This conditional is a dirty hack to limit the logging done on
|
||||
// behalf of the download manager without affecting other apps.
|
||||
if (!pkg.equals("com.android.providers.downloads")
|
||||
|| Log.isLoggable("DownloadManager", Log.VERBOSE)) {
|
||||
EventLogTags.writeNotificationEnqueue(callingUid, callingPid,
|
||||
pkg, id, tag, userId, notification.toString(),
|
||||
(old != null) ? 1 : 0);
|
||||
}
|
||||
// 3. Apply local rules
|
||||
|
||||
// blocked apps
|
||||
|
||||
Reference in New Issue
Block a user