Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fe6ab956 authored by Stanislav Zholnin's avatar Stanislav Zholnin Committed by android-build-merger
Browse files

Merge "Add logging atoms to record user actions in LocationAccessCheck...

Merge "Add logging atoms to record user actions in LocationAccessCheck (handheld devices only)" into qt-dev
am: 762aa842

Change-Id: Idfe6b87ff2cc8567e6030f2eae7b18052a87a2cf
parents 254a3026 762aa842
Loading
Loading
Loading
Loading
+30 −0
Original line number Original line Diff line number Diff line
@@ -309,6 +309,8 @@ message Atom {
            212 [(log_from_module) = "permissioncontroller"];
            212 [(log_from_module) = "permissioncontroller"];
        GrantPermissionsActivityButtonActions grant_permissions_activity_button_actions =
        GrantPermissionsActivityButtonActions grant_permissions_activity_button_actions =
            213 [(log_from_module) = "permissioncontroller"];
            213 [(log_from_module) = "permissioncontroller"];
        LocationAccessCheckNotificationAction location_access_check_notification_action =
            214 [(log_from_module) = "permissioncontroller"];
    }
    }


    // Pulled events will start at field 10000.
    // 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
    // Button clicked by user - same as bit flags in buttons_presented with only single bit set
    optional int32 button_clicked = 5;
    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;
}