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

Commit f69abcf7 authored by Sarah Chin's avatar Sarah Chin
Browse files

Create getSystemSelectionChannel API

Test: atest TelephonyManagerTest
Test: atest VtsHalRadioV1_6TargetTest
Bug: 152813408
Change-Id: I6f3f70b7ff1b876ec98086431ed5c557875fca85
Merged-In: I6f3f70b7ff1b876ec98086431ed5c557875fca85
parent 375f7d74
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();
}