Loading proto/src/metrics_constants/metrics_constants.proto +8 −0 Original line number Diff line number Diff line Loading @@ -844,6 +844,8 @@ message MetricsEvent { // PACKAGE: App that posted the notification // DETAIL: Notification is expanded by user. // PACKAGE: App that posted the notification // COLLAPSE: Notification is collapsed by user. // PACKAGE: App that posted the notification // DISMISS: Notification is dismissed. // PACKAGE: App that posted the notification // SUBTYPE: Dismiss reason from NotificationManagerService.java Loading Loading @@ -6596,6 +6598,12 @@ message MetricsEvent { // OS: Q NOTIFICATION_ZEN_MODE_OVERRIDING_APP = 1589; // ACTION: User sent a direct reply // PACKAGE: App that posted the notification // CATEGORY: NOTIFICATION // OS: Q NOTIFICATION_DIRECT_REPLY_ACTION = 1590; // ---- End Q Constants, all Q constants go above this line ---- // Add new aosp constants above this line. Loading services/core/java/com/android/server/notification/NotificationManagerService.java +3 −0 Original line number Diff line number Diff line Loading @@ -885,6 +885,9 @@ public class NotificationManagerService extends SystemService { NotificationRecord r = mNotificationsByKey.get(key); if (r != null) { r.recordDirectReplied(); mMetricsLogger.write(r.getLogMaker() .setCategory(MetricsEvent.NOTIFICATION_DIRECT_REPLY_ACTION) .setType(MetricsEvent.TYPE_ACTION)); reportUserInteraction(r); } } Loading Loading
proto/src/metrics_constants/metrics_constants.proto +8 −0 Original line number Diff line number Diff line Loading @@ -844,6 +844,8 @@ message MetricsEvent { // PACKAGE: App that posted the notification // DETAIL: Notification is expanded by user. // PACKAGE: App that posted the notification // COLLAPSE: Notification is collapsed by user. // PACKAGE: App that posted the notification // DISMISS: Notification is dismissed. // PACKAGE: App that posted the notification // SUBTYPE: Dismiss reason from NotificationManagerService.java Loading Loading @@ -6596,6 +6598,12 @@ message MetricsEvent { // OS: Q NOTIFICATION_ZEN_MODE_OVERRIDING_APP = 1589; // ACTION: User sent a direct reply // PACKAGE: App that posted the notification // CATEGORY: NOTIFICATION // OS: Q NOTIFICATION_DIRECT_REPLY_ACTION = 1590; // ---- End Q Constants, all Q constants go above this line ---- // Add new aosp constants above this line. Loading
services/core/java/com/android/server/notification/NotificationManagerService.java +3 −0 Original line number Diff line number Diff line Loading @@ -885,6 +885,9 @@ public class NotificationManagerService extends SystemService { NotificationRecord r = mNotificationsByKey.get(key); if (r != null) { r.recordDirectReplied(); mMetricsLogger.write(r.getLogMaker() .setCategory(MetricsEvent.NOTIFICATION_DIRECT_REPLY_ACTION) .setType(MetricsEvent.TYPE_ACTION)); reportUserInteraction(r); } } Loading