Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5adfe37b authored by Alexander Roederer's avatar Alexander Roederer
Browse files

Add notification cancel prevented EventLogTag

Adds an Event Log when notification cancellation is prevented.

Bug: 360341108
Test: build+flash
Flag: android.app.lifetime_extension_refactor
Change-Id: I52c62f37bf896e1258b64d920bcc9a0d3cbb8e6c
parent 5e73c1b5
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -94,6 +94,8 @@ option java_package com.android.server
275534 notification_unautogrouped (key|3)
# when a notification is adjusted via assistant
27535 notification_adjusted (key|3),(adjustment_type|3),(new_value|3)
# when a notification cancellation is prevented by the system
27536 notification_cancel_prevented (key|3)

# ---------------------------
# Watchdog.java
+2 −0
Original line number Diff line number Diff line
@@ -11777,6 +11777,8 @@ public class NotificationManagerService extends SystemService {
            mHandler.post(new EnqueueNotificationRunnable(record.getUser().getIdentifier(),
                    record, isAppForeground, /* isAppProvided= */ false, tracker));
            EventLogTags.writeNotificationCancelPrevented(record.getKey());
        }
    }