Package: android.hardware.radio@1.0

ISapCallback

interface ISapCallback

Methods

connectResponse

oneway connectResponse (int32_t token, SapConnectRsp sapConnectRsp, int32_t maxMsgSize)

CONNECT_RESP from SAP 1.1 spec 5.1.2

Details
RPC mode
oneway
Parameters
token
Id to match req-resp.Value must match the one in req.
sapConnectRsp
Connection Status
maxMsgSize
MaxMsgSize supported by server if request cannot be fulfilled.Valid only if connectResponse is SapConnectResponse:MSG_SIZE_TOO_LARGE.

disconnectResponse

oneway disconnectResponse (int32_t token)

DISCONNECT_RESP from SAP 1.1 spec 5.1.4

Details
RPC mode
oneway
Parameters
token
Id to match req-resp.Value must match the one in req.

disconnectIndication

oneway disconnectIndication (int32_t token, SapDisconnectType disconnectType)

DISCONNECT_IND from SAP 1.1 spec 5.1.5

Details
RPC mode
oneway
Parameters
token
Id to match req-resp.Value must match the one in req.
disconnectType
Disconnect Type to indicate if shutdown is graceful or immediate

apduResponse

oneway apduResponse (int32_t token, SapResultCode resultCode, vec<uint8_t> apduRsp)

TRANSFER_APDU_RESP from SAP 1.1 spec 5.1.7

Details
RPC mode
oneway
Parameters
token
Id to match req-resp.Value must match the one in req.
resultCode
ResultCode to indicate if command was processed correctly Possible values:SapResultCode:SUCCESS, SapResultCode:GENERIC_FAILURE, SapResultCode:CARD_NOT_ACCESSSIBLE, SapResultCode:CARD_ALREADY_POWERED_OFF, SapResultCode:CARD_REMOVED
apduRsp
APDU Response.Valid only if command was processed correctly and no error occurred.

transferAtrResponse

oneway transferAtrResponse (int32_t token, SapResultCode resultCode, vec<uint8_t> atr)

TRANSFER_ATR_RESP from SAP 1.1 spec 5.1.9

Details
RPC mode
oneway
Parameters
token
Id to match req-resp.Value must match the one in req.
resultCode
ResultCode to indicate if command was processed correctly Possible values:SapResultCode:SUCCESS, SapResultCode:GENERIC_FAILURE, SapResultCode:CARD_ALREADY_POWERED_OFF, SapResultCode:CARD_REMOVED, SapResultCode:DATA_NOT_AVAILABLE
atr
Answer to Reset from the subscription module.Included only if no error occurred, otherwise empty.

powerResponse

oneway powerResponse (int32_t token, SapResultCode resultCode)

POWER_SIM_OFF_RESP and POWER_SIM_ON_RESP from SAP 1.1 spec 5.1.11 + 5.1.13

Details
RPC mode
oneway
Parameters
token
Id to match req-resp.Value must match the one in req.
resultCode
ResultCode to indicate if command was processed correctly Possible values:SapResultCode:SUCCESS, SapResultCode:GENERIC_FAILURE, SapResultCode:CARD_NOT_ACCESSSIBLE , (possible only for power on req)SapResultCode:CARD_ALREADY_POWERED_OFF , (possible only for power off req)SapResultCode:CARD_REMOVED, SapResultCode:CARD_ALREADY_POWERED_ON(possible only for power on req )

resetSimResponse

oneway resetSimResponse (int32_t token, SapResultCode resultCode)

RESET_SIM_RESP from SAP 1.1 spec 5.1.15

Details
RPC mode
oneway
Parameters
token
Id to match req-resp.Value must match the one in req.
resultCode
ResultCode to indicate if command was processed correctly Possible values:SapResultCode:SUCCESS, SapResultCode:GENERIC_FAILURE, SapResultCode:CARD_NOT_ACCESSSIBLE, SapResultCode:CARD_ALREADY_POWERED_OFF, SapResultCode:CARD_REMOVED

statusIndication

oneway statusIndication (int32_t token, SapStatus status)

STATUS_IND from SAP 1.1 spec 5.1.16

Details
RPC mode
oneway
Parameters
token
Id to match req-resp.Value must match the one in req.
status
Parameter to indicate reason for the status change.

transferCardReaderStatusResponse

oneway transferCardReaderStatusResponse (int32_t token, SapResultCode resultCode, int32_t cardReaderStatus)

TRANSFER_CARD_READER_STATUS_REQ from SAP 1.1 spec 5.1.18

Details
RPC mode
oneway
Parameters
token
Id to match req-resp.Value must match the one in req.
resultCode
ResultCode to indicate if command was processed correctly Possible values:SapResultCode:SUCCESS, SapResultCode:GENERIC_FAILURE SapResultCode:DATA_NOT_AVAILABLE
cardReaderStatus
Card Reader Status coded as described in 3GPP TS 11.14 Section 12.33 and TS 31.111 Section 8.33

errorResponse

oneway errorResponse (int32_t token)

ERROR_RESP from SAP 1.1 spec 5.1.19

Details
RPC mode
oneway
Parameters
token
Id to match req-resp.Value must match the one in req.

transferProtocolResponse

oneway transferProtocolResponse (int32_t token, SapResultCode resultCode)

SET_TRANSPORT_PROTOCOL_RESP from SAP 1.1 spec 5.1.21

Details
RPC mode
oneway
Parameters
token
Id to match req-resp.Value must match the one in req.
resultCode
ResultCode to indicate if command was processed correctly Possible values:SapResultCode:SUCCESS SapResultCode:NOT_SUPPORTED