diff options
| -rwxr-xr-x | services/core/java/com/android/server/notification/NotificationManagerService.java | 4 | ||||
| -rw-r--r-- | services/core/java/com/android/server/notification/flags.aconfig | 27 |
2 files changed, 31 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/notification/NotificationManagerService.java b/services/core/java/com/android/server/notification/NotificationManagerService.java index ebea05ddfd0c..5c043f3e8e8c 100755 --- a/services/core/java/com/android/server/notification/NotificationManagerService.java +++ b/services/core/java/com/android/server/notification/NotificationManagerService.java @@ -7235,6 +7235,10 @@ public class NotificationManagerService extends SystemService { } } } + if (Flags.traceCancelEvents()) { + Trace.instant(Trace.TRACE_TAG_SYSTEM_SERVER, "cancelNotificationInternal: " + + SmallHash.hash(Objects.hashCode(tag) ^ id)); + } cancelNotification(uid, callingPid, pkg, tag, id, 0, mustNotHaveFlags, false, userId, REASON_APP_CANCEL, null); diff --git a/services/core/java/com/android/server/notification/flags.aconfig b/services/core/java/com/android/server/notification/flags.aconfig index 28598711ae3a..af3db6c6be4f 100644 --- a/services/core/java/com/android/server/notification/flags.aconfig +++ b/services/core/java/com/android/server/notification/flags.aconfig @@ -101,3 +101,30 @@ flag { description: "Stores restore data for not-yet-installed pkgs for 48 hours" bug: "334999659" } + +flag { + name: "trace_cancel_events" + namespace: "systemui" + description: "Adds performance tracing for binder cancel calls" + bug: "331677193" + metadata { + purpose: PURPOSE_BUGFIX + } +} + +flag { + name: "exit_invalid_cancel_early" + namespace: "systemui" + description: "aborts cancel binder events early if notif doesn't exist" + bug: "331677193" + metadata { + purpose: PURPOSE_BUGFIX + } +} + +flag { + name: "use_ipcdatacache_channels" + namespace: "systemui" + description: "Adds an IPCDataCache for notification channel/group lookups" + bug: "331677193" +} |