summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Stanislav Zholnin <zholnin@google.com> 2020-02-04 18:41:16 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2020-02-04 18:41:16 +0000
commitcd5699e8fa5786c5eb9ab738ba82b5d87f93da46 (patch)
tree4b9bc884fd45b6d0195536bae658c9df28737567
parent1374932dcf46c1b17787cb9e7ce42e9c4e46d449 (diff)
parent126da0cad543b4d75162c0300fc526269bd5e5cf (diff)
Merge "Extend AppPermissionFragmentActionReported atom."
-rw-r--r--cmds/statsd/src/atoms.proto22
1 files changed, 22 insertions, 0 deletions
diff --git a/cmds/statsd/src/atoms.proto b/cmds/statsd/src/atoms.proto
index 435e2aee72e4..fccefdc07363 100644
--- a/cmds/statsd/src/atoms.proto
+++ b/cmds/statsd/src/atoms.proto
@@ -7561,6 +7561,28 @@ message AppPermissionFragmentActionReported {
// The result of the permission grant
optional bool permission_granted = 6;
+
+ // State of Permission Flags after grant as per android.content.pm.PermissionFlags
+ optional int32 permission_flags = 7;
+
+ enum Button {
+ UNDEFINED = 0;
+ // Allow button
+ ALLOW = 1;
+ // Deny button
+ DENY = 2;
+ // Ask every time button
+ ASK_EVERY_TIME = 3;
+ // Allow all the time button
+ ALLOW_ALWAYS = 4;
+ // Allow only while using the app button
+ ALLOW_FOREGROUND = 5;
+ // Same is Deny button but shown in while in use dialog
+ DENY_FOREGROUND = 6;
+ }
+
+ // Button pressed in the dialog
+ optional Button button_pressed = 8;
}
/**