Loading core/java/com/android/internal/statusbar/IStatusBarService.aidl +1 −0 Original line number Diff line number Diff line Loading @@ -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); Loading packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java +5 −1 Original line number Diff line number Diff line Loading @@ -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. } Loading services/core/java/com/android/server/EventLogTags.logtags +5 −1 Original line number Diff line number Diff line Loading @@ -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 Loading services/core/java/com/android/server/notification/NotificationDelegate.java +1 −0 Original line number Diff line number Diff line Loading @@ -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); } services/core/java/com/android/server/notification/NotificationManagerService.java +6 −0 Original line number Diff line number Diff line Loading @@ -966,6 +966,7 @@ public class NotificationManagerService extends SystemService { @Override public void onPanelRevealed() { EventLogTags.writeNotificationPanelRevealed(); synchronized (mNotificationList) { // sound mSoundNotification = null; Loading Loading @@ -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 Loading
core/java/com/android/internal/statusbar/IStatusBarService.aidl +1 −0 Original line number Diff line number Diff line Loading @@ -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); Loading
packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java +5 −1 Original line number Diff line number Diff line Loading @@ -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. } Loading
services/core/java/com/android/server/EventLogTags.logtags +5 −1 Original line number Diff line number Diff line Loading @@ -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 Loading
services/core/java/com/android/server/notification/NotificationDelegate.java +1 −0 Original line number Diff line number Diff line Loading @@ -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); }
services/core/java/com/android/server/notification/NotificationManagerService.java +6 −0 Original line number Diff line number Diff line Loading @@ -966,6 +966,7 @@ public class NotificationManagerService extends SystemService { @Override public void onPanelRevealed() { EventLogTags.writeNotificationPanelRevealed(); synchronized (mNotificationList) { // sound mSoundNotification = null; Loading Loading @@ -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