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

Commit 4a5f4e5a authored by Sarah Chin's avatar Sarah Chin Committed by Gerrit Code Review
Browse files

Merge "Create getSystemSelectionChannel API"

parents 1f551d87 f69abcf7
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -349,4 +349,13 @@ interface IRadio extends @1.5::IRadio {
    oneway setDataThrottling(int32_t serial,
            DataThrottlingAction dataThrottlingAction,
            int32_t completionWindowSecs);

    /**
     * Get which bands the modem's background scan is acting on.
     *
     * @param serial Serial number of request.
     *
     * Response callback is IRadioResponse.getSystemSelectionChannelsResponse()
     */
    oneway getSystemSelectionChannels(int32_t serial);
};
+11 −0
Original line number Diff line number Diff line
@@ -317,4 +317,15 @@ interface IRadioResponse extends @1.5::IRadioResponse {
     *  RadioError:INVALID_ARGUMENTS
     */
    oneway setDataThrottlingResponse(RadioResponseInfo info);

    /**
     * @param info Response info struct containing response type, serial no. and error
     *
     * Valid errors returned:
     *   RadioError:NONE
     *   RadioError:RADIO_NOT_AVAILABLE
     *   RadioError:INTERNAL_ERR
     *   RadioError:INVALID_ARGUMENTS
     */
    oneway getSystemSelectionChannelsResponse(RadioResponseInfo info);
};
+3 −0
Original line number Diff line number Diff line
@@ -795,6 +795,9 @@ class RadioResponse_v1_6 : public ::android::hardware::radio::V1_6::IRadioRespon

    Return<void> setDataThrottlingResponse(
            const ::android::hardware::radio::V1_6::RadioResponseInfo& info);

    Return<void> getSystemSelectionChannelsResponse(
            const ::android::hardware::radio::V1_6::RadioResponseInfo& info);
};

/* Callback class for radio indication */
+7 −0
Original line number Diff line number Diff line
@@ -1163,3 +1163,10 @@ Return<void> RadioResponse_v1_6::setDataThrottlingResponse(
    parent_v1_6.notify(info.serial);
    return Void();
}

Return<void> RadioResponse_v1_6::getSystemSelectionChannelsResponse(
        const ::android::hardware::radio::V1_6::RadioResponseInfo& info) {
    rspInfo = info;
    parent_v1_6.notify(info.serial);
    return Void();
}