mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Merge "Create getSystemSelectionChannel API" am: 4a5f4e5ab2
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1504053 Change-Id: Ibd06334e2b478578fe9081fd09065fdf6ea57dbe
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user