From 0ae077bc4fc36871f99c039c11d0dbb1c883db0b Mon Sep 17 00:00:00 2001 From: hai007 Date: Fri, 3 Sep 2021 15:59:55 -0700 Subject: [PATCH] [Sharing][Analytics] Adding logging for missing permission request status (BT/wifi/location/airplane mode). PiperOrigin-RevId: 394772766 --- proto/sharing_enums.proto | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/proto/sharing_enums.proto b/proto/sharing_enums.proto index 08ab3fe8..482f5652 100644 --- a/proto/sharing_enums.proto +++ b/proto/sharing_enums.proto @@ -179,6 +179,9 @@ enum EventType { // users dropped off opt-in page. DECLINE_AGREEMENTS = 46; + + // Request setting permissions (Wifi/BT/location/airplane mode). + REQUEST_SETTING_PERMISSIONS = 47; } // Event category to differentiate whether this comes from sender or receiver, @@ -421,3 +424,20 @@ enum ShowNotificationStatus { SHOW = 1; NOT_SHOW = 2; } + +enum PermissionRequestResult { + PERMISSION_UNKNOWN_REQUEST_RESULT = 0; + + PERMISSION_GRANTED = 1; + PERMISSION_REJECTED = 2; + PERMISSION_UNABLE_TO_GRANT = 3; +} + +enum PermissionRequestType { + PERMISSION_UNKNOWN_TYPE = 0; + + PERMISSION_AIRPLANE_MODE_OFF = 1; + PERMISSION_WIFI = 2; + PERMISSION_BLUETOOTH = 3; + PERMISSION_LOCATION = 4; +}