Lines Matching refs:req
195 RIL_SIM_SAP_CONNECT_REQ req; in connectReq() local
196 memset(&req, 0, sizeof(RIL_SIM_SAP_CONNECT_REQ)); in connectReq()
197 req.max_message_size = maxMsgSize; in connectReq()
200 if (!pb_get_encoded_size(&encodedSize, RIL_SIM_SAP_CONNECT_REQ_fields, &req)) { in connectReq()
215 if (!pb_encode(&stream, RIL_SIM_SAP_CONNECT_REQ_fields, &req)) { in connectReq()
236 RIL_SIM_SAP_DISCONNECT_REQ req; in disconnectReq() local
237 memset(&req, 0, sizeof(RIL_SIM_SAP_DISCONNECT_REQ)); in disconnectReq()
240 if (!pb_get_encoded_size(&encodedSize, RIL_SIM_SAP_DISCONNECT_REQ_fields, &req)) { in disconnectReq()
256 if (!pb_encode(&stream, RIL_SIM_SAP_DISCONNECT_REQ_fields, &req)) { in disconnectReq()
277 RIL_SIM_SAP_APDU_REQ req; in apduReq() local
278 memset(&req, 0, sizeof(RIL_SIM_SAP_APDU_REQ)); in apduReq()
279 req.type = (RIL_SIM_SAP_APDU_REQ_Type)type; in apduReq()
282 req.command = (pb_bytes_array_t *)malloc(sizeof(pb_bytes_array_t) - 1 + command.size()); in apduReq()
283 if (req.command == NULL) { in apduReq()
288 req.command->size = command.size(); in apduReq()
289 memcpy(req.command->bytes, command.data(), command.size()); in apduReq()
293 if (!pb_get_encoded_size(&encodedSize, RIL_SIM_SAP_APDU_REQ_fields, &req)) { in apduReq()
295 sendFailedResponse(MsgId_RIL_SIM_SAP_APDU, token, 2, req.command, msg); in apduReq()
302 sendFailedResponse(MsgId_RIL_SIM_SAP_APDU, token, 2, req.command, msg); in apduReq()
309 if (!pb_encode(&stream, RIL_SIM_SAP_APDU_REQ_fields, &req)) { in apduReq()
311 sendFailedResponse(MsgId_RIL_SIM_SAP_APDU, token, 3, req.command, buffer, msg); in apduReq()
330 RIL_SIM_SAP_TRANSFER_ATR_REQ req; in transferAtrReq() local
331 memset(&req, 0, sizeof(RIL_SIM_SAP_TRANSFER_ATR_REQ)); in transferAtrReq()
334 if (!pb_get_encoded_size(&encodedSize, RIL_SIM_SAP_TRANSFER_ATR_REQ_fields, &req)) { in transferAtrReq()
351 if (!pb_encode(&stream, RIL_SIM_SAP_TRANSFER_ATR_REQ_fields, &req)) { in transferAtrReq()
372 RIL_SIM_SAP_POWER_REQ req; in powerReq() local
373 memset(&req, 0, sizeof(RIL_SIM_SAP_POWER_REQ)); in powerReq()
374 req.state = state; in powerReq()
377 if (!pb_get_encoded_size(&encodedSize, RIL_SIM_SAP_POWER_REQ_fields, &req)) { in powerReq()
393 if (!pb_encode(&stream, RIL_SIM_SAP_POWER_REQ_fields, &req)) { in powerReq()
414 RIL_SIM_SAP_RESET_SIM_REQ req; in resetSimReq() local
415 memset(&req, 0, sizeof(RIL_SIM_SAP_RESET_SIM_REQ)); in resetSimReq()
418 if (!pb_get_encoded_size(&encodedSize, RIL_SIM_SAP_RESET_SIM_REQ_fields, &req)) { in resetSimReq()
434 if (!pb_encode(&stream, RIL_SIM_SAP_RESET_SIM_REQ_fields, &req)) { in resetSimReq()
455 RIL_SIM_SAP_TRANSFER_CARD_READER_STATUS_REQ req; in transferCardReaderStatusReq() local
456 memset(&req, 0, sizeof(RIL_SIM_SAP_TRANSFER_CARD_READER_STATUS_REQ)); in transferCardReaderStatusReq()
460 &req)) { in transferCardReaderStatusReq()
477 if (!pb_encode(&stream, RIL_SIM_SAP_TRANSFER_CARD_READER_STATUS_REQ_fields, &req)) { in transferCardReaderStatusReq()
499 RIL_SIM_SAP_SET_TRANSFER_PROTOCOL_REQ req; in setTransferProtocolReq() local
500 memset(&req, 0, sizeof(RIL_SIM_SAP_SET_TRANSFER_PROTOCOL_REQ)); in setTransferProtocolReq()
501 req.protocol = (RIL_SIM_SAP_SET_TRANSFER_PROTOCOL_REQ_Protocol)transferProtocol; in setTransferProtocolReq()
504 if (!pb_get_encoded_size(&encodedSize, RIL_SIM_SAP_SET_TRANSFER_PROTOCOL_REQ_fields, &req)) { in setTransferProtocolReq()
521 if (!pb_encode(&stream, RIL_SIM_SAP_SET_TRANSFER_PROTOCOL_REQ_fields, &req)) { in setTransferProtocolReq()