mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 23:48:30 +00:00
Merge "Added the new RIL request to set SIM power state"
This commit is contained in:
@@ -1571,6 +1571,20 @@ interface IRadio {
|
|||||||
*/
|
*/
|
||||||
oneway setIndicationFilter(int32_t serial, bitfield<IndicationFilter> indicationFilter);
|
oneway setIndicationFilter(int32_t serial, bitfield<IndicationFilter> indicationFilter);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Set SIM card power state.
|
||||||
|
* Request is equivalent to inserting or removing the card.
|
||||||
|
*
|
||||||
|
* The radio modem must generate IRadioIndication.simStatusChanged() as if the SIM had been
|
||||||
|
* inserted or removed.
|
||||||
|
*
|
||||||
|
* @param serial Serial number of request
|
||||||
|
* @param powerUp True if powering up the sim card
|
||||||
|
*
|
||||||
|
* Response callback is IRadioResponse.setSimCardPowerResponse()
|
||||||
|
*/
|
||||||
|
oneway setSimCardPower(int32_t serial, bool powerUp);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* When response type received from a radio indication or radio response is
|
* When response type received from a radio indication or radio response is
|
||||||
* RadioIndicationType:UNSOLICITED_ACK_EXP or RadioResponseType:SOLICITED_ACK_EXP respectively,
|
* RadioIndicationType:UNSOLICITED_ACK_EXP or RadioResponseType:SOLICITED_ACK_EXP respectively,
|
||||||
|
|||||||
@@ -1967,6 +1967,18 @@ interface IRadioResponse {
|
|||||||
*/
|
*/
|
||||||
oneway setIndicationFilterResponse(RadioResponseInfo info);
|
oneway setIndicationFilterResponse(RadioResponseInfo info);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @param info Response info struct containing response type, serial no. and error
|
||||||
|
*
|
||||||
|
* Valid errors returned:
|
||||||
|
* RadioError:NONE
|
||||||
|
* RadioError:RADIO_NOT_AVAILABLE
|
||||||
|
* RadioError:REQUEST_NOT_SUPPORTED
|
||||||
|
* RadioError:SIM_ABSENT
|
||||||
|
* RadioError:INVALID_ARGUMENTS
|
||||||
|
*/
|
||||||
|
oneway setSimCardPowerResponse(RadioResponseInfo info);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Acknowledge the receipt of radio request sent to the vendor. This must be sent only for
|
* Acknowledge the receipt of radio request sent to the vendor. This must be sent only for
|
||||||
* radio request which take long time to respond.
|
* radio request which take long time to respond.
|
||||||
|
|||||||
@@ -1502,6 +1502,18 @@ interface: {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
api: {
|
||||||
|
name: "setSimCardPower"
|
||||||
|
arg: {
|
||||||
|
type: TYPE_SCALAR
|
||||||
|
scalar_type: "int32_t"
|
||||||
|
}
|
||||||
|
arg: {
|
||||||
|
type: TYPE_SCALAR
|
||||||
|
scalar_type: "bool_t"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
api: {
|
api: {
|
||||||
name: "responseAcknowledgement"
|
name: "responseAcknowledgement"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1388,6 +1388,14 @@ interface: {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
api: {
|
||||||
|
name: "setSimCardPowerResponse"
|
||||||
|
arg: {
|
||||||
|
type: TYPE_STRUCT
|
||||||
|
predefined_type: "::android::hardware::radio::V1_0::RadioResponseInfo"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
api: {
|
api: {
|
||||||
name: "acknowledgeRequest"
|
name: "acknowledgeRequest"
|
||||||
arg: {
|
arg: {
|
||||||
|
|||||||
Reference in New Issue
Block a user