Lines Matching refs:pRI

507 void sendErrorResponse(RequestInfo *pRI, RIL_Errno err) {  in sendErrorResponse()  argument
508 pRI->pCI->responseFunction((int) pRI->socket_id, in sendErrorResponse()
509 (int) RadioResponseType::SOLICITED, pRI->token, err, NULL, 0); in sendErrorResponse()
521 bool copyHidlStringToRil(char **dest, const hidl_string &src, RequestInfo *pRI, bool allowEmpty) { in copyHidlStringToRil() argument
529 RLOGE("Memory allocation failed for request %s", requestToString(pRI->pCI->requestNumber)); in copyHidlStringToRil()
530 sendErrorResponse(pRI, RIL_E_NO_MEMORY); in copyHidlStringToRil()
539 sendErrorResponse(pRI, RIL_E_INTERNAL_ERR); in copyHidlStringToRil()
545 bool copyHidlStringToRil(char **dest, const hidl_string &src, RequestInfo *pRI) { in copyHidlStringToRil() argument
546 return copyHidlStringToRil(dest, src, pRI, false); in copyHidlStringToRil()
559 RequestInfo *pRI = android::addRequestToList(serial, slotId, request); in dispatchVoid() local
560 if (pRI == NULL) { in dispatchVoid()
563 CALL_ONREQUEST(request, NULL, 0, pRI, slotId); in dispatchVoid()
568 RequestInfo *pRI = android::addRequestToList(serial, slotId, request); in dispatchString() local
569 if (pRI == NULL) { in dispatchString()
574 if (!copyHidlStringToRil(&pString, str, pRI)) { in dispatchString()
578 CALL_ONREQUEST(request, pString, sizeof(char *), pRI, slotId); in dispatchString()
585 RequestInfo *pRI = android::addRequestToList(serial, slotId, request); in dispatchStrings() local
586 if (pRI == NULL) { in dispatchStrings()
594 sendErrorResponse(pRI, RIL_E_NO_MEMORY); in dispatchStrings()
601 if (!copyHidlStringToRil(&pStrings[i], hidl_string(str), pRI, allowEmpty)) { in dispatchStrings()
612 CALL_ONREQUEST(request, pStrings, countStrings * sizeof(char *), pRI, slotId); in dispatchStrings()
628 RequestInfo *pRI = android::addRequestToList(serial, slotId, request); in dispatchStrings() local
629 if (pRI == NULL) { in dispatchStrings()
638 sendErrorResponse(pRI, RIL_E_NO_MEMORY); in dispatchStrings()
643 if (!copyHidlStringToRil(&pStrings[i], data[i], pRI)) { in dispatchStrings()
652 CALL_ONREQUEST(request, pStrings, countStrings * sizeof(char *), pRI, slotId); in dispatchStrings()
668 RequestInfo *pRI = android::addRequestToList(serial, slotId, request); in dispatchInts() local
669 if (pRI == NULL) { in dispatchInts()
677 sendErrorResponse(pRI, RIL_E_NO_MEMORY); in dispatchInts()
687 CALL_ONREQUEST(request, pInts, countInts * sizeof(int), pRI, slotId); in dispatchInts()
700 RequestInfo *pRI = android::addRequestToList(serial, slotId, request); in dispatchCallForwardStatus() local
701 if (pRI == NULL) { in dispatchCallForwardStatus()
712 if (!copyHidlStringToRil(&cf.number, callInfo.number, pRI)) { in dispatchCallForwardStatus()
716 CALL_ONREQUEST(request, &cf, sizeof(cf), pRI, slotId); in dispatchCallForwardStatus()
724 RequestInfo *pRI = android::addRequestToList(serial, slotId, request); in dispatchRaw() local
725 if (pRI == NULL) { in dispatchRaw()
731 CALL_ONREQUEST(request, (void *) uData, rawBytes.size(), pRI, slotId); in dispatchRaw()
737 RequestInfo *pRI = android::addRequestToList(serial, slotId, request); in dispatchIccApdu() local
738 if (pRI == NULL) { in dispatchIccApdu()
751 if (!copyHidlStringToRil(&apdu.data, message.data, pRI)) { in dispatchIccApdu()
755 CALL_ONREQUEST(request, &apdu, sizeof(apdu), pRI, slotId); in dispatchIccApdu()
938 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_DIAL); in dial() local
939 if (pRI == NULL) { in dial()
946 if (!copyHidlStringToRil(&dial.address, dialInfo.address, pRI)) { in dial()
959 if (!copyHidlStringToRil(&uusInfo.uusData, dialInfo.uusInfo[0].uusData, pRI)) { in dial()
969 CALL_ONREQUEST(RIL_REQUEST_DIAL, &dial, sizeOfDial, pRI, mSlotId); in dial()
1145 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, in setupDataCall() local
1147 if (pRI != NULL) { in setupDataCall()
1148 sendErrorResponse(pRI, RIL_E_INVALID_ARGUMENTS); in setupDataCall()
1170 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, in setupDataCall() local
1172 if (pRI != NULL) { in setupDataCall()
1173 sendErrorResponse(pRI, RIL_E_REQUEST_NOT_SUPPORTED); in setupDataCall()
1183 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_SIM_IO); in iccIOForApp() local
1184 if (pRI == NULL) { in iccIOForApp()
1191 if (!copyHidlStringToRil(&rilIccIo.path, iccIo.path, pRI)) { in iccIOForApp()
1199 if (!copyHidlStringToRil(&rilIccIo.data, iccIo.data, pRI)) { in iccIOForApp()
1204 if (!copyHidlStringToRil(&rilIccIo.pin2, iccIo.pin2, pRI)) { in iccIOForApp()
1209 if (!copyHidlStringToRil(&rilIccIo.aidPtr, iccIo.aid, pRI)) { in iccIOForApp()
1214 CALL_ONREQUEST(RIL_REQUEST_SIM_IO, &rilIccIo, sizeof(rilIccIo), pRI, mSlotId); in iccIOForApp()
1390 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_START_NETWORK_SCAN); in startNetworkScan() local
1391 if (pRI == NULL) { in startNetworkScan()
1396 sendErrorResponse(pRI, RIL_E_INVALID_ARGUMENTS); in startNetworkScan()
1410 sendErrorResponse(pRI, RIL_E_INVALID_ARGUMENTS); in startNetworkScan()
1436 sendErrorResponse(pRI, RIL_E_INVALID_ARGUMENTS); in startNetworkScan()
1445 CALL_ONREQUEST(RIL_REQUEST_START_NETWORK_SCAN, &scan_request, sizeof(scan_request), pRI, in startNetworkScan()
1537 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_WRITE_SMS_TO_SIM); in writeSmsToSim() local
1538 if (pRI == NULL) { in writeSmsToSim()
1545 if (!copyHidlStringToRil(&args.pdu, smsWriteArgs.pdu, pRI)) { in writeSmsToSim()
1549 if (!copyHidlStringToRil(&args.smsc, smsWriteArgs.smsc, pRI)) { in writeSmsToSim()
1554 CALL_ONREQUEST(RIL_REQUEST_WRITE_SMS_TO_SIM, &args, sizeof(args), pRI, mSlotId); in writeSmsToSim()
1765 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_CDMA_SEND_SMS); in sendCdmaSms() local
1766 if (pRI == NULL) { in sendCdmaSms()
1773 CALL_ONREQUEST(pRI->pCI->requestNumber, &rcsm, sizeof(rcsm), pRI, mSlotId); in sendCdmaSms()
1781 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_CDMA_SMS_ACKNOWLEDGE); in acknowledgeLastIncomingCdmaSms() local
1782 if (pRI == NULL) { in acknowledgeLastIncomingCdmaSms()
1791 CALL_ONREQUEST(pRI->pCI->requestNumber, &rcsa, sizeof(rcsa), pRI, mSlotId); in acknowledgeLastIncomingCdmaSms()
1809 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, in setGsmBroadcastConfig() local
1811 if (pRI == NULL) { in setGsmBroadcastConfig()
1818 requestToString(pRI->pCI->requestNumber)); in setGsmBroadcastConfig()
1819 sendErrorResponse(pRI, RIL_E_INVALID_ARGUMENTS); in setGsmBroadcastConfig()
1834 CALL_ONREQUEST(pRI->pCI->requestNumber, gsmBciPtrs, in setGsmBroadcastConfig()
1835 num * sizeof(RIL_GSM_BroadcastSmsConfigInfo *), pRI, mSlotId); in setGsmBroadcastConfig()
1862 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, in setCdmaBroadcastConfig() local
1864 if (pRI == NULL) { in setCdmaBroadcastConfig()
1871 requestToString(pRI->pCI->requestNumber)); in setCdmaBroadcastConfig()
1872 sendErrorResponse(pRI, RIL_E_INVALID_ARGUMENTS); in setCdmaBroadcastConfig()
1885 CALL_ONREQUEST(pRI->pCI->requestNumber, cdmaBciPtrs, in setCdmaBroadcastConfig()
1886 num * sizeof(RIL_CDMA_BroadcastSmsConfigInfo *), pRI, mSlotId); in setCdmaBroadcastConfig()
1911 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, in writeSmsToRuim() local
1913 if (pRI == NULL) { in writeSmsToRuim()
1921 CALL_ONREQUEST(pRI->pCI->requestNumber, &rcsw, sizeof(rcsw), pRI, mSlotId); in writeSmsToRuim()
2048 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, in setInitialAttachApn() local
2050 if (pRI == NULL) { in setInitialAttachApn()
2057 if (!copyHidlStringToRil(&iaa.apn, dataProfileInfo.apn, pRI, true)) { in setInitialAttachApn()
2064 if (!copyHidlStringToRil(&iaa.protocol, protocol, pRI)) { in setInitialAttachApn()
2069 if (!copyHidlStringToRil(&iaa.username, dataProfileInfo.user, pRI)) { in setInitialAttachApn()
2073 if (!copyHidlStringToRil(&iaa.password, dataProfileInfo.password, pRI)) { in setInitialAttachApn()
2078 CALL_ONREQUEST(RIL_REQUEST_SET_INITIAL_ATTACH_APN, &iaa, sizeof(iaa), pRI, mSlotId); in setInitialAttachApn()
2084 if (!copyHidlStringToRil(&iaa.apn, dataProfileInfo.apn, pRI, true)) { in setInitialAttachApn()
2088 if (!copyHidlStringToRil(&iaa.protocol, dataProfileInfo.protocol, pRI)) { in setInitialAttachApn()
2092 if (!copyHidlStringToRil(&iaa.roamingProtocol, dataProfileInfo.roamingProtocol, pRI)) { in setInitialAttachApn()
2097 if (!copyHidlStringToRil(&iaa.username, dataProfileInfo.user, pRI)) { in setInitialAttachApn()
2101 if (!copyHidlStringToRil(&iaa.password, dataProfileInfo.password, pRI)) { in setInitialAttachApn()
2111 sendErrorResponse(pRI, RIL_E_INVALID_ARGUMENTS); in setInitialAttachApn()
2117 if (!copyHidlStringToRil(&iaa.mvnoMatchData, dataProfileInfo.mvnoMatchData, pRI)) { in setInitialAttachApn()
2123 CALL_ONREQUEST(RIL_REQUEST_SET_INITIAL_ATTACH_APN, &iaa, sizeof(iaa), pRI, mSlotId); in setInitialAttachApn()
2140 bool dispatchImsGsmSms(const ImsSmsMessage& message, RequestInfo *pRI) { in dispatchImsGsmSms() argument
2151 RLOGE("dispatchImsGsmSms: Invalid len %s", requestToString(pRI->pCI->requestNumber)); in dispatchImsGsmSms()
2152 sendErrorResponse(pRI, RIL_E_INVALID_ARGUMENTS); in dispatchImsGsmSms()
2159 requestToString(pRI->pCI->requestNumber)); in dispatchImsGsmSms()
2160 sendErrorResponse(pRI, RIL_E_NO_MEMORY); in dispatchImsGsmSms()
2164 if (!copyHidlStringToRil(&pStrings[0], message.gsmMessage[0].smscPdu, pRI)) { in dispatchImsGsmSms()
2172 if (!copyHidlStringToRil(&pStrings[1], message.gsmMessage[0].pdu, pRI)) { in dispatchImsGsmSms()
2182 CALL_ONREQUEST(pRI->pCI->requestNumber, &rism, sizeof(RIL_RadioTechnologyFamily) + in dispatchImsGsmSms()
2183 sizeof(uint8_t) + sizeof(int32_t) + dataLen, pRI, pRI->socket_id); in dispatchImsGsmSms()
2202 bool dispatchImsCdmaSms(const ImsSmsMessage& message, RequestInfo *pRI) { in dispatchImsCdmaSms() argument
2206 RLOGE("dispatchImsCdmaSms: Invalid len %s", requestToString(pRI->pCI->requestNumber)); in dispatchImsCdmaSms()
2207 sendErrorResponse(pRI, RIL_E_INVALID_ARGUMENTS); in dispatchImsCdmaSms()
2224 CALL_ONREQUEST(pRI->pCI->requestNumber, &temp.imsSms, payloadLen, pRI, pRI->socket_id); in dispatchImsCdmaSms()
2233 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_IMS_SEND_SMS); in sendImsSms() local
2234 if (pRI == NULL) { in sendImsSms()
2241 dispatchImsGsmSms(message, pRI); in sendImsSms()
2243 dispatchImsCdmaSms(message, pRI); in sendImsSms()
2246 requestToString(pRI->pCI->requestNumber)); in sendImsSms()
2247 sendErrorResponse(pRI, RIL_E_INVALID_ARGUMENTS); in sendImsSms()
2267 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_SIM_OPEN_CHANNEL); in iccOpenLogicalChannel() local
2268 if (pRI == NULL) { in iccOpenLogicalChannel()
2276 if (!copyHidlStringToRil(&params.aidPtr, aid, pRI)) { in iccOpenLogicalChannel()
2280 CALL_ONREQUEST(pRI->pCI->requestNumber, &params, sizeof(params), pRI, mSlotId); in iccOpenLogicalChannel()
2307 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_NV_READ_ITEM); in nvReadItem() local
2308 if (pRI == NULL) { in nvReadItem()
2315 CALL_ONREQUEST(pRI->pCI->requestNumber, &nvri, sizeof(nvri), pRI, mSlotId); in nvReadItem()
2323 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_NV_WRITE_ITEM); in nvWriteItem() local
2324 if (pRI == NULL) { in nvWriteItem()
2332 if (!copyHidlStringToRil(&nvwi.value, item.value, pRI)) { in nvWriteItem()
2336 CALL_ONREQUEST(pRI->pCI->requestNumber, &nvwi, sizeof(nvwi), pRI, mSlotId); in nvWriteItem()
2380 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, in setUiccSubscription() local
2382 if (pRI == NULL) { in setUiccSubscription()
2393 CALL_ONREQUEST(pRI->pCI->requestNumber, &rilUiccSub, sizeof(rilUiccSub), pRI, mSlotId); in setUiccSubscription()
2418 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_SIM_AUTHENTICATION); in requestIccSimAuthentication() local
2419 if (pRI == NULL) { in requestIccSimAuthentication()
2427 if (!copyHidlStringToRil(&pf.authData, authData, pRI)) { in requestIccSimAuthentication()
2431 if (!copyHidlStringToRil(&pf.aid, aid, pRI)) { in requestIccSimAuthentication()
2436 CALL_ONREQUEST(pRI->pCI->requestNumber, &pf, sizeof(pf), pRI, mSlotId); in requestIccSimAuthentication()
2481 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_SET_DATA_PROFILE); in setDataProfile() local
2482 if (pRI == NULL) { in setDataProfile()
2496 requestToString(pRI->pCI->requestNumber)); in setDataProfile()
2497 sendErrorResponse(pRI, RIL_E_NO_MEMORY); in setDataProfile()
2505 requestToString(pRI->pCI->requestNumber)); in setDataProfile()
2507 sendErrorResponse(pRI, RIL_E_NO_MEMORY); in setDataProfile()
2514 success = copyHidlStringToRil(&dataProfiles[i].apn, profiles[i].apn, pRI, true); in setDataProfile()
2519 if (success && !copyHidlStringToRil(&dataProfiles[i].protocol, protocol, pRI, true)) { in setDataProfile()
2523 if (success && !copyHidlStringToRil(&dataProfiles[i].user, profiles[i].user, pRI, in setDataProfile()
2528 pRI, true)) { in setDataProfile()
2549 num * sizeof(RIL_DataProfileInfo *), pRI, mSlotId); in setDataProfile()
2560 requestToString(pRI->pCI->requestNumber)); in setDataProfile()
2561 sendErrorResponse(pRI, RIL_E_NO_MEMORY); in setDataProfile()
2569 requestToString(pRI->pCI->requestNumber)); in setDataProfile()
2571 sendErrorResponse(pRI, RIL_E_NO_MEMORY); in setDataProfile()
2578 success = copyHidlStringToRil(&dataProfiles[i].apn, profiles[i].apn, pRI, true); in setDataProfile()
2580 pRI)) { in setDataProfile()
2584 profiles[i].roamingProtocol, pRI, true)) { in setDataProfile()
2587 if (success && !copyHidlStringToRil(&dataProfiles[i].user, profiles[i].user, pRI, in setDataProfile()
2592 pRI, true)) { in setDataProfile()
2596 profiles[i].mvnoMatchData, pRI, true)) { in setDataProfile()
2602 sendErrorResponse(pRI, RIL_E_INVALID_ARGUMENTS); in setDataProfile()
2627 num * sizeof(RIL_DataProfileInfo_v15 *), pRI, mSlotId); in setDataProfile()
2658 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_SET_RADIO_CAPABILITY); in setRadioCapability() local
2659 if (pRI == NULL) { in setRadioCapability()
2672 CALL_ONREQUEST(pRI->pCI->requestNumber, &rilRc, sizeof(rilRc), pRI, mSlotId); in setRadioCapability()
2715 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, in setAllowedCarriers() local
2717 if (pRI == NULL) { in setAllowedCarriers()
2729 requestToString(pRI->pCI->requestNumber)); in setAllowedCarriers()
2730 sendErrorResponse(pRI, RIL_E_NO_MEMORY); in setAllowedCarriers()
2739 requestToString(pRI->pCI->requestNumber)); in setAllowedCarriers()
2740 sendErrorResponse(pRI, RIL_E_NO_MEMORY); in setAllowedCarriers()
2764 CALL_ONREQUEST(pRI->pCI->requestNumber, &cr, sizeof(RIL_CarrierRestrictions), pRI, mSlotId); in setAllowedCarriers()
2793 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, in sendDeviceState() local
2795 sendErrorResponse(pRI, RIL_E_REQUEST_NOT_SUPPORTED); in sendDeviceState()
2809 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, in setIndicationFilter() local
2811 sendErrorResponse(pRI, RIL_E_REQUEST_NOT_SUPPORTED); in setIndicationFilter()
2839 RequestInfo *pRI = android::addRequestToList( in setCarrierInfoForImsiEncryption() local
2841 if (pRI == NULL) { in setCarrierInfoForImsiEncryption()
2847 if (!copyHidlStringToRil(&imsiEncryption.mnc, data.mnc, pRI)) { in setCarrierInfoForImsiEncryption()
2850 if (!copyHidlStringToRil(&imsiEncryption.mcc, data.mcc, pRI)) { in setCarrierInfoForImsiEncryption()
2854 if (!copyHidlStringToRil(&imsiEncryption.keyIdentifier, data.keyIdentifier, pRI)) { in setCarrierInfoForImsiEncryption()
2862 CALL_ONREQUEST(pRI->pCI->requestNumber, &imsiEncryption, in setCarrierInfoForImsiEncryption()
2863 sizeof(RIL_CarrierInfoForImsiEncryption), pRI, mSlotId); in setCarrierInfoForImsiEncryption()
2872 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_START_KEEPALIVE); in startKeepalive() local
2873 if (pRI == NULL) { in startKeepalive()
2885 sendErrorResponse(pRI, RIL_E_INVALID_ARGUMENTS); in startKeepalive()
2893 sendErrorResponse(pRI, RIL_E_INVALID_ARGUMENTS); in startKeepalive()
2899 sendErrorResponse(pRI, RIL_E_INVALID_ARGUMENTS); in startKeepalive()
2913 CALL_ONREQUEST(pRI->pCI->requestNumber, &kaReq, sizeof(RIL_KeepaliveRequest), pRI, mSlotId); in startKeepalive()
2921 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_STOP_KEEPALIVE); in stopKeepalive() local
2922 if (pRI == NULL) { in stopKeepalive()
2926 CALL_ONREQUEST(pRI->pCI->requestNumber, &sessionHandle, sizeof(uint32_t), pRI, mSlotId); in stopKeepalive()