Lines Matching refs:token

52     Return<void> connectReq(int32_t token, int32_t maxMsgSize);
54 Return<void> disconnectReq(int32_t token);
56 Return<void> apduReq(int32_t token, SapApduType type, const hidl_vec<uint8_t>& command);
58 Return<void> transferAtrReq(int32_t token);
60 Return<void> powerReq(int32_t token, bool state);
62 Return<void> resetSimReq(int32_t token);
64 Return<void> transferCardReaderStatusReq(int32_t token);
66 Return<void> setTransferProtocolReq(int32_t token, SapTransferProtocol transferProtocol);
68 MsgHeader* createMsgHeader(MsgId msgId, int32_t token);
72 void sendFailedResponse(MsgId msgId, int32_t token, int numPointers, ...);
94 MsgHeader* SapImpl::createMsgHeader(MsgId msgId, int32_t token) { in createMsgHeader() argument
100 msg->token = token; in createMsgHeader()
111 sendFailedResponse(msg->id, msg->token, 2, reqPtr, msg); in addPayloadAndDispatchRequest()
125 sendFailedResponse(msg->id, msg->token, 3, payload, reqPtr, msg); in addPayloadAndDispatchRequest()
133 void SapImpl::sendFailedResponse(MsgId msgId, int32_t token, int numPointers, ...) { in sendFailedResponse() argument
144 retStatus = sapCallback->connectResponse(token, SapConnectRsp::CONNECT_FAILURE, 0); in sendFailedResponse()
148 retStatus = sapCallback->disconnectResponse(token); in sendFailedResponse()
153 retStatus = sapCallback->apduResponse(token, SapResultCode::GENERIC_FAILURE, apduRsp); in sendFailedResponse()
159 retStatus = sapCallback->transferAtrResponse(token, SapResultCode::GENERIC_FAILURE, in sendFailedResponse()
165 retStatus = sapCallback->powerResponse(token, SapResultCode::GENERIC_FAILURE); in sendFailedResponse()
169 retStatus = sapCallback->resetSimResponse(token, SapResultCode::GENERIC_FAILURE); in sendFailedResponse()
173 retStatus = sapCallback->transferCardReaderStatusResponse(token, in sendFailedResponse()
178 retStatus = sapCallback->transferProtocolResponse(token, SapResultCode::NOT_SUPPORTED); in sendFailedResponse()
187 Return<void> SapImpl::connectReq(int32_t token, int32_t maxMsgSize) { in connectReq() argument
189 MsgHeader *msg = createMsgHeader(MsgId_RIL_SIM_SAP_CONNECT, token); in connectReq()
192 sendFailedResponse(MsgId_RIL_SIM_SAP_CONNECT, token, 0); in connectReq()
204 sendFailedResponse(MsgId_RIL_SIM_SAP_CONNECT, token, 1, msg); in connectReq()
211 sendFailedResponse(MsgId_RIL_SIM_SAP_CONNECT, token, 1, msg); in connectReq()
219 sendFailedResponse(MsgId_RIL_SIM_SAP_CONNECT, token, 2, buffer, msg); in connectReq()
228 Return<void> SapImpl::disconnectReq(int32_t token) { in disconnectReq() argument
230 MsgHeader *msg = createMsgHeader(MsgId_RIL_SIM_SAP_DISCONNECT, token); in disconnectReq()
233 sendFailedResponse(MsgId_RIL_SIM_SAP_DISCONNECT, token, 0); in disconnectReq()
244 sendFailedResponse(MsgId_RIL_SIM_SAP_DISCONNECT, token, 1, msg); in disconnectReq()
251 sendFailedResponse(MsgId_RIL_SIM_SAP_DISCONNECT, token, 1, msg); in disconnectReq()
260 sendFailedResponse(MsgId_RIL_SIM_SAP_DISCONNECT, token, 2, buffer, msg); in disconnectReq()
269 Return<void> SapImpl::apduReq(int32_t token, SapApduType type, const hidl_vec<uint8_t>& command) { in apduReq() argument
271 MsgHeader *msg = createMsgHeader(MsgId_RIL_SIM_SAP_APDU, token); in apduReq()
274 sendFailedResponse(MsgId_RIL_SIM_SAP_APDU, token, 0); in apduReq()
287 sendFailedResponse(MsgId_RIL_SIM_SAP_APDU, token, 1, msg); in apduReq()
297 sendFailedResponse(MsgId_RIL_SIM_SAP_APDU, token, 2, req.command, msg); in apduReq()
304 sendFailedResponse(MsgId_RIL_SIM_SAP_APDU, token, 2, req.command, msg); in apduReq()
313 sendFailedResponse(MsgId_RIL_SIM_SAP_APDU, token, 3, req.command, buffer, msg); in apduReq()
322 Return<void> SapImpl::transferAtrReq(int32_t token) { in transferAtrReq() argument
324 MsgHeader *msg = createMsgHeader(MsgId_RIL_SIM_SAP_TRANSFER_ATR, token); in transferAtrReq()
327 sendFailedResponse(MsgId_RIL_SIM_SAP_TRANSFER_ATR, token, 0); in transferAtrReq()
339 sendFailedResponse(MsgId_RIL_SIM_SAP_TRANSFER_ATR, token, 1, msg); in transferAtrReq()
346 sendFailedResponse(MsgId_RIL_SIM_SAP_TRANSFER_ATR, token, 1, msg); in transferAtrReq()
355 sendFailedResponse(MsgId_RIL_SIM_SAP_TRANSFER_ATR, token, 2, buffer, msg); in transferAtrReq()
364 Return<void> SapImpl::powerReq(int32_t token, bool state) { in powerReq() argument
366 MsgHeader *msg = createMsgHeader(MsgId_RIL_SIM_SAP_POWER, token); in powerReq()
369 sendFailedResponse(MsgId_RIL_SIM_SAP_POWER, token, 0); in powerReq()
381 sendFailedResponse(MsgId_RIL_SIM_SAP_POWER, token, 1, msg); in powerReq()
388 sendFailedResponse(MsgId_RIL_SIM_SAP_POWER, token, 1, msg); in powerReq()
397 sendFailedResponse(MsgId_RIL_SIM_SAP_POWER, token, 2, buffer, msg); in powerReq()
406 Return<void> SapImpl::resetSimReq(int32_t token) { in resetSimReq() argument
408 MsgHeader *msg = createMsgHeader(MsgId_RIL_SIM_SAP_RESET_SIM, token); in resetSimReq()
411 sendFailedResponse(MsgId_RIL_SIM_SAP_RESET_SIM, token, 0); in resetSimReq()
422 sendFailedResponse(MsgId_RIL_SIM_SAP_RESET_SIM, token, 1, msg); in resetSimReq()
429 sendFailedResponse(MsgId_RIL_SIM_SAP_RESET_SIM, token, 1, msg); in resetSimReq()
438 sendFailedResponse(MsgId_RIL_SIM_SAP_RESET_SIM, token, 2, buffer, msg); in resetSimReq()
447 Return<void> SapImpl::transferCardReaderStatusReq(int32_t token) { in transferCardReaderStatusReq() argument
449 MsgHeader *msg = createMsgHeader(MsgId_RIL_SIM_SAP_TRANSFER_CARD_READER_STATUS, token); in transferCardReaderStatusReq()
452 sendFailedResponse(MsgId_RIL_SIM_SAP_TRANSFER_CARD_READER_STATUS, token, 0); in transferCardReaderStatusReq()
465 sendFailedResponse(MsgId_RIL_SIM_SAP_TRANSFER_CARD_READER_STATUS, token, 1, msg); in transferCardReaderStatusReq()
472 sendFailedResponse(MsgId_RIL_SIM_SAP_TRANSFER_CARD_READER_STATUS, token, 1, msg); in transferCardReaderStatusReq()
482 sendFailedResponse(MsgId_RIL_SIM_SAP_TRANSFER_CARD_READER_STATUS, token, 2, buffer, msg); in transferCardReaderStatusReq()
491 Return<void> SapImpl::setTransferProtocolReq(int32_t token, SapTransferProtocol transferProtocol) { in setTransferProtocolReq() argument
493 MsgHeader *msg = createMsgHeader(MsgId_RIL_SIM_SAP_SET_TRANSFER_PROTOCOL, token); in setTransferProtocolReq()
496 sendFailedResponse(MsgId_RIL_SIM_SAP_SET_TRANSFER_PROTOCOL, token, 0); in setTransferProtocolReq()
509 sendFailedResponse(MsgId_RIL_SIM_SAP_SET_TRANSFER_PROTOCOL, token, 1, msg); in setTransferProtocolReq()
516 sendFailedResponse(MsgId_RIL_SIM_SAP_SET_TRANSFER_PROTOCOL, token, 1, msg); in setTransferProtocolReq()
526 sendFailedResponse(MsgId_RIL_SIM_SAP_SET_TRANSFER_PROTOCOL, token, 2, buffer, msg); in setTransferProtocolReq()
783 sapImpl->sendFailedResponse(msgId, rsp->token, 0); in processResponse()
795 rsp->token, in processResponse()
798 retStatus = sapImpl->sapCallback->connectResponse(rsp->token, in processResponse()
806 RLOGD("processResponse: calling sapCallback->disconnectResponse %d", rsp->token); in processResponse()
807 retStatus = sapImpl->sapCallback->disconnectResponse(rsp->token); in processResponse()
812 rsp->token, disconnectInd->disconnectType); in processResponse()
813 retStatus = sapImpl->sapCallback->disconnectIndication(rsp->token, in processResponse()
822 rsp->token, apduResponse); in processResponse()
827 retStatus = sapImpl->sapCallback->apduResponse(rsp->token, apduResponse, apduRspVec); in processResponse()
837 rsp->token, transferAtrResponse); in processResponse()
843 retStatus = sapImpl->sapCallback->transferAtrResponse(rsp->token, transferAtrResponse, in processResponse()
852 rsp->token, powerResponse); in processResponse()
853 retStatus = sapImpl->sapCallback->powerResponse(rsp->token, powerResponse); in processResponse()
861 rsp->token, resetSimResponse); in processResponse()
862 retStatus = sapImpl->sapCallback->resetSimResponse(rsp->token, resetSimResponse); in processResponse()
869 rsp->token, statusInd->statusChange); in processResponse()
870 retStatus = sapImpl->sapCallback->statusIndication(rsp->token, in processResponse()
882 rsp->token, in processResponse()
885 retStatus = sapImpl->sapCallback->transferCardReaderStatusResponse(rsp->token, in processResponse()
892 RLOGD("processResponse: calling sapCallback->errorResponse %d", rsp->token); in processResponse()
893 retStatus = sapImpl->sapCallback->errorResponse(rsp->token); in processResponse()
906 rsp->token, setTransferProtocolResponse); in processResponse()
907 retStatus = sapImpl->sapCallback->transferProtocolResponse(rsp->token, in processResponse()