Package: android.hardware.radio.config@1.0

IRadioConfig

interface IRadioConfig

This interface is used by telephony and telecom to talk to cellular radio for the purpose of radio configuration, and it is not associated with any specific modem or slot.All the functions have minimum one parameter:serial:which corresponds to serial no.of request.Serial numbers must only be memorized for the duration of a method call.If clients provide colliding serials(including passing the same serial to different methods), multiple responses(one for each method call)must still be served.

Methods

setResponseFunctions

setResponseFunctions (IRadioConfigResponse radioConfigResponse, IRadioConfigIndication radioConfigIndication)

Set response functions for radio config requests & radio config indications.

Details
Parameters
radioConfigResponse
Object containing radio config response functions
radioConfigIndication
Object containing radio config indications

getSimSlotsStatus

oneway getSimSlotsStatus (int32_t serial)

Get SIM Slot status.

Request provides the slot status of all active and inactive SIM slots and whether card is present in the slots or not.

Response callback is IRadioConfigResponse.getSimSlotsStatusResponse()

Details
RPC mode
oneway
Parameters
serial
Serial number of request.

setSimSlotsMapping

oneway setSimSlotsMapping (int32_t serial, vec<uint32_t> slotMap)

Set SIM Slot mapping.

Maps the logical slots to the physical slots.Logical slot is the slot that is seen by modem.Physical slot is the actual physical slot.Request maps the physical slot to logical slot.Logical slots that are already mapped to the requested physical slot are not impacted.

Example no.of logical slots 1 and physical slots 2:The only logical slot(index 0)can be mapped to first physical slot(value 0)or second physical slot(value 1), while the other physical slot remains unmapped and inactive.slotMap[0]= 1 or slotMap[0]= 0

Example no.of logical slots 2 and physical slots 2:First logical slot(index 0)can be mapped to physical slot 1 or 2 and other logical slot can be mapped to other physical slot.Each logical slot must be mapped to a physical slot.slotMap[0]= 0 and slotMap[1]= 1 or slotMap[0]= 1 and slotMap[1]= 0

Response callback is IRadioConfigResponse.setSimSlotsMappingResponse()

Details
RPC mode
oneway
Parameters
serial
Serial number of request
slotMap
Logical to physical slot mapping, size == no.of radio instances.Index is mapping to logical slot and value to physical slot, need to provide all the slots mapping when sending request in case of multi slot device.EX:uint32_t slotMap[logical slot]= physical slot index 0 is the first logical_slot number of logical slots is equal to number of Radio instances and number of physical slots is equal to size of slotStatus in getSimSlotsStatusResponse