summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2019-01-29 15:19:28 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2019-01-29 15:19:28 +0000
commitfdbddda50e329936efe080d742d33bdae83c53fa (patch)
tree19e17c98eacd822338f798c9a58b5b3377473eb4
parenta973ce21c1bb533b2b456ab16540030d40fa6e30 (diff)
parent729919670f36ea3c8f202779e25bd3352bf191c8 (diff)
Merge "Log notification location when a notification action is clicked."
-rw-r--r--services/core/java/com/android/server/notification/NotificationManagerService.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/notification/NotificationManagerService.java b/services/core/java/com/android/server/notification/NotificationManagerService.java
index 1369f7b226e2..238eed44a84d 100644
--- a/services/core/java/com/android/server/notification/NotificationManagerService.java
+++ b/services/core/java/com/android/server/notification/NotificationManagerService.java
@@ -770,7 +770,10 @@ public class NotificationManagerService extends SystemService {
action.isContextual() ? 1 : 0)
.addTaggedData(
MetricsEvent.NOTIFICATION_SMART_SUGGESTION_ASSISTANT_GENERATED,
- generatedByAssistant ? 1 : 0));
+ generatedByAssistant ? 1 : 0)
+ .addTaggedData(MetricsEvent.NOTIFICATION_LOCATION,
+ nv.location.toMetricsEventEnum()));
+
EventLogTags.writeNotificationActionClicked(key, actionIndex,
r.getLifespanMs(now), r.getFreshnessMs(now), r.getExposureMs(now),
nv.rank, nv.count);