summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Stanislav Zholnin <zholnin@google.com> 2019-06-20 22:46:43 -0700
committer android-build-merger <android-build-merger@google.com> 2019-06-20 22:46:43 -0700
commitc2e6ef8fc87d622b996a98d067179b80d1e8972d (patch)
tree269ebf3b90b10f9ea7cf7ad7bd02323b1e095fe1
parent9b2ec5e0a13b6605d57e08b39de17106416e191e (diff)
parentfe6ab956ea28ae2a8d0d1b4d1d610c5be6199a96 (diff)
Merge "Add logging atoms to record user actions in LocationAccessCheck (handheld devices only)" into qt-dev am: 762aa842ae
am: fe6ab956ea Change-Id: I50c0d6b7b35f0d22141d206ee6c7c933ef20254b
-rw-r--r--cmds/statsd/src/atoms.proto30
1 files changed, 30 insertions, 0 deletions
diff --git a/cmds/statsd/src/atoms.proto b/cmds/statsd/src/atoms.proto
index 4a43ac82e8c6..97da2f41737b 100644
--- a/cmds/statsd/src/atoms.proto
+++ b/cmds/statsd/src/atoms.proto
@@ -309,6 +309,8 @@ message Atom {
212 [(log_from_module) = "permissioncontroller"];
GrantPermissionsActivityButtonActions grant_permissions_activity_button_actions =
213 [(log_from_module) = "permissioncontroller"];
+ LocationAccessCheckNotificationAction location_access_check_notification_action =
+ 214 [(log_from_module) = "permissioncontroller"];
}
// Pulled events will start at field 10000.
@@ -6607,3 +6609,31 @@ message GrantPermissionsActivityButtonActions {
// Button clicked by user - same as bit flags in buttons_presented with only single bit set
optional int32 button_clicked = 5;
}
+
+/**
+ * Information about LocationAccessCheck notification presented to user
+ */
+message LocationAccessCheckNotificationAction {
+
+ // id which identifies single session of user interacting with permission controller
+ optional int64 session_id = 1;
+
+ // Uid of package for which location access check is presented
+ optional int32 package_uid = 2;
+
+ // Name of package for which location access check is presented
+ optional string package_name = 3;
+
+ enum Result {
+ UNDEFINED = 0;
+ // notification was presented to the user
+ NOTIFICATION_PRESENTED = 1;
+ // notification was declined by the user
+ NOTIFICATION_DECLINED = 2;
+ // notification was clicked by the user
+ NOTIFICATION_CLICKED = 3;
+ }
+
+ // View / interaction recorded
+ optional Result result = 4;
+}