[Sharing][Analytics] Adding logging for missing permission request status (BT/wifi/location/airplane mode).

PiperOrigin-RevId: 394772766
This commit is contained in:
hai007
2021-09-03 16:00:34 -07:00
committed by Copybara-Service
parent f78c8ac5a0
commit 0ae077bc4f
+20
View File
@@ -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;
}