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

Commit d624a443 authored by Christoph Studer's avatar Christoph Studer Committed by Android (Google) Code Review
Browse files

Merge "Write eventlog entries for notification panel visibility"

parents eceec528 760ea554
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -41,6 +41,7 @@ interface IStatusBarService
            out List<IBinder> notificationKeys, out List<StatusBarNotification> notifications,
            out int[] switches, out List<IBinder> binders);
    void onPanelRevealed();
    void onPanelHidden();
    void onNotificationClick(String pkg, String tag, int id, int userId);
    void onNotificationError(String pkg, String tag, int id,
            int uid, int initialPid, String message, int userId);
+5 −1
Original line number Diff line number Diff line
@@ -970,7 +970,11 @@ public abstract class BaseStatusBar extends SystemUI implements
        if (mPanelSlightlyVisible != visible) {
            mPanelSlightlyVisible = visible;
            try {
                if (visible) {
                    mBarService.onPanelRevealed();
                } else {
                    mBarService.onPanelHidden();
                }
            } catch (RemoteException ex) {
                // Won't fail unless the world has ended.
            }
+5 −1
Original line number Diff line number Diff line
@@ -58,7 +58,11 @@ option java_package com.android.server
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)
# when someone tries to cancel all of the notifications for a particular package
2752 notification_cancel_all (uid|1|5),(pid|1|5),(pkg|3),(userid|1|5),(required_flags|1),(forbidden_flags|1),(reason|1|5),(listener|3)

# when the notification panel is shown
# Note: New tag range starts here since 2753+ have been used below.
27500 notification_panel_revealed
# when the notification panel is hidden
27501 notification_panel_hidden

# ---------------------------
# Watchdog.java
+1 −0
Original line number Diff line number Diff line
@@ -29,5 +29,6 @@ public interface NotificationDelegate {
            String pkg, String tag, int id,
            int uid, int initialPid, String message, int userId);
    void onPanelRevealed();
    void onPanelHidden();
    boolean allowDisable(int what, IBinder token, String pkg);
}
+6 −0
Original line number Diff line number Diff line
@@ -966,6 +966,7 @@ public class NotificationManagerService extends SystemService {

        @Override
        public void onPanelRevealed() {
            EventLogTags.writeNotificationPanelRevealed();
            synchronized (mNotificationList) {
                // sound
                mSoundNotification = null;
@@ -997,6 +998,11 @@ public class NotificationManagerService extends SystemService {
            }
        }

        @Override
        public void onPanelHidden() {
            EventLogTags.writeNotificationPanelHidden();
        }

        @Override
        public void onNotificationError(int callingUid, int callingPid, String pkg, String tag, int id,
                int uid, int initialPid, String message, int userId) {
Loading