Lines Matching refs:pRI
499 void sendErrorResponse(RequestInfo *pRI, RIL_Errno err) { in sendErrorResponse() argument
500 pRI->pCI->responseFunction((int) pRI->socket_id, in sendErrorResponse()
501 (int) RadioResponseType::SOLICITED, pRI->token, err, NULL, 0); in sendErrorResponse()
513 bool copyHidlStringToRil(char **dest, const hidl_string &src, RequestInfo *pRI, bool allowEmpty) { in copyHidlStringToRil() argument
521 RLOGE("Memory allocation failed for request %s", requestToString(pRI->pCI->requestNumber)); in copyHidlStringToRil()
522 sendErrorResponse(pRI, RIL_E_NO_MEMORY); in copyHidlStringToRil()
531 sendErrorResponse(pRI, RIL_E_INTERNAL_ERR); in copyHidlStringToRil()
537 bool copyHidlStringToRil(char **dest, const hidl_string &src, RequestInfo *pRI) { in copyHidlStringToRil() argument
538 return copyHidlStringToRil(dest, src, pRI, false); in copyHidlStringToRil()
551 RequestInfo *pRI = android::addRequestToList(serial, slotId, request); in dispatchVoid() local
552 if (pRI == NULL) { in dispatchVoid()
555 CALL_ONREQUEST(request, NULL, 0, pRI, slotId); in dispatchVoid()
560 RequestInfo *pRI = android::addRequestToList(serial, slotId, request); in dispatchString() local
561 if (pRI == NULL) { in dispatchString()
566 if (!copyHidlStringToRil(&pString, str, pRI)) { in dispatchString()
570 CALL_ONREQUEST(request, pString, sizeof(char *), pRI, slotId); in dispatchString()
577 RequestInfo *pRI = android::addRequestToList(serial, slotId, request); in dispatchStrings() local
578 if (pRI == NULL) { in dispatchStrings()
586 sendErrorResponse(pRI, RIL_E_NO_MEMORY); in dispatchStrings()
593 if (!copyHidlStringToRil(&pStrings[i], hidl_string(str), pRI, allowEmpty)) { in dispatchStrings()
604 CALL_ONREQUEST(request, pStrings, countStrings * sizeof(char *), pRI, slotId); in dispatchStrings()
620 RequestInfo *pRI = android::addRequestToList(serial, slotId, request); in dispatchStrings() local
621 if (pRI == NULL) { in dispatchStrings()
630 sendErrorResponse(pRI, RIL_E_NO_MEMORY); in dispatchStrings()
635 if (!copyHidlStringToRil(&pStrings[i], data[i], pRI)) { in dispatchStrings()
644 CALL_ONREQUEST(request, pStrings, countStrings * sizeof(char *), pRI, slotId); in dispatchStrings()
660 RequestInfo *pRI = android::addRequestToList(serial, slotId, request); in dispatchInts() local
661 if (pRI == NULL) { in dispatchInts()
669 sendErrorResponse(pRI, RIL_E_NO_MEMORY); in dispatchInts()
679 CALL_ONREQUEST(request, pInts, countInts * sizeof(int), pRI, slotId); in dispatchInts()
692 RequestInfo *pRI = android::addRequestToList(serial, slotId, request); in dispatchCallForwardStatus() local
693 if (pRI == NULL) { in dispatchCallForwardStatus()
704 if (!copyHidlStringToRil(&cf.number, callInfo.number, pRI)) { in dispatchCallForwardStatus()
708 CALL_ONREQUEST(request, &cf, sizeof(cf), pRI, slotId); in dispatchCallForwardStatus()
716 RequestInfo *pRI = android::addRequestToList(serial, slotId, request); in dispatchRaw() local
717 if (pRI == NULL) { in dispatchRaw()
723 CALL_ONREQUEST(request, (void *) uData, rawBytes.size(), pRI, slotId); in dispatchRaw()
729 RequestInfo *pRI = android::addRequestToList(serial, slotId, request); in dispatchIccApdu() local
730 if (pRI == NULL) { in dispatchIccApdu()
743 if (!copyHidlStringToRil(&apdu.data, message.data, pRI)) { in dispatchIccApdu()
747 CALL_ONREQUEST(request, &apdu, sizeof(apdu), pRI, slotId); in dispatchIccApdu()
923 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_DIAL); in dial() local
924 if (pRI == NULL) { in dial()
931 if (!copyHidlStringToRil(&dial.address, dialInfo.address, pRI)) { in dial()
944 if (!copyHidlStringToRil(&uusInfo.uusData, dialInfo.uusInfo[0].uusData, pRI)) { in dial()
954 CALL_ONREQUEST(RIL_REQUEST_DIAL, &dial, sizeOfDial, pRI, mSlotId); in dial()
1130 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, in setupDataCall() local
1132 if (pRI != NULL) { in setupDataCall()
1133 sendErrorResponse(pRI, RIL_E_INVALID_ARGUMENTS); in setupDataCall()
1155 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, in setupDataCall() local
1157 if (pRI != NULL) { in setupDataCall()
1158 sendErrorResponse(pRI, RIL_E_REQUEST_NOT_SUPPORTED); in setupDataCall()
1168 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_SIM_IO); in iccIOForApp() local
1169 if (pRI == NULL) { in iccIOForApp()
1176 if (!copyHidlStringToRil(&rilIccIo.path, iccIo.path, pRI)) { in iccIOForApp()
1184 if (!copyHidlStringToRil(&rilIccIo.data, iccIo.data, pRI)) { in iccIOForApp()
1189 if (!copyHidlStringToRil(&rilIccIo.pin2, iccIo.pin2, pRI)) { in iccIOForApp()
1194 if (!copyHidlStringToRil(&rilIccIo.aidPtr, iccIo.aid, pRI)) { in iccIOForApp()
1199 CALL_ONREQUEST(RIL_REQUEST_SIM_IO, &rilIccIo, sizeof(rilIccIo), pRI, mSlotId); in iccIOForApp()
1375 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_START_NETWORK_SCAN); in startNetworkScan() local
1376 if (pRI == NULL) { in startNetworkScan()
1381 sendErrorResponse(pRI, RIL_E_INVALID_ARGUMENTS); in startNetworkScan()
1395 sendErrorResponse(pRI, RIL_E_INVALID_ARGUMENTS); in startNetworkScan()
1421 sendErrorResponse(pRI, RIL_E_INVALID_ARGUMENTS); in startNetworkScan()
1430 CALL_ONREQUEST(RIL_REQUEST_START_NETWORK_SCAN, &scan_request, sizeof(scan_request), pRI, in startNetworkScan()
1522 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_WRITE_SMS_TO_SIM); in writeSmsToSim() local
1523 if (pRI == NULL) { in writeSmsToSim()
1530 if (!copyHidlStringToRil(&args.pdu, smsWriteArgs.pdu, pRI)) { in writeSmsToSim()
1534 if (!copyHidlStringToRil(&args.smsc, smsWriteArgs.smsc, pRI)) { in writeSmsToSim()
1539 CALL_ONREQUEST(RIL_REQUEST_WRITE_SMS_TO_SIM, &args, sizeof(args), pRI, mSlotId); in writeSmsToSim()
1750 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_CDMA_SEND_SMS); in sendCdmaSms() local
1751 if (pRI == NULL) { in sendCdmaSms()
1758 CALL_ONREQUEST(pRI->pCI->requestNumber, &rcsm, sizeof(rcsm), pRI, mSlotId); in sendCdmaSms()
1766 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_CDMA_SMS_ACKNOWLEDGE); in acknowledgeLastIncomingCdmaSms() local
1767 if (pRI == NULL) { in acknowledgeLastIncomingCdmaSms()
1776 CALL_ONREQUEST(pRI->pCI->requestNumber, &rcsa, sizeof(rcsa), pRI, mSlotId); in acknowledgeLastIncomingCdmaSms()
1794 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, in setGsmBroadcastConfig() local
1796 if (pRI == NULL) { in setGsmBroadcastConfig()
1813 CALL_ONREQUEST(pRI->pCI->requestNumber, gsmBciPtrs, in setGsmBroadcastConfig()
1814 num * sizeof(RIL_GSM_BroadcastSmsConfigInfo *), pRI, mSlotId); in setGsmBroadcastConfig()
1841 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, in setCdmaBroadcastConfig() local
1843 if (pRI == NULL) { in setCdmaBroadcastConfig()
1858 CALL_ONREQUEST(pRI->pCI->requestNumber, cdmaBciPtrs, in setCdmaBroadcastConfig()
1859 num * sizeof(RIL_CDMA_BroadcastSmsConfigInfo *), pRI, mSlotId); in setCdmaBroadcastConfig()
1884 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, in writeSmsToRuim() local
1886 if (pRI == NULL) { in writeSmsToRuim()
1894 CALL_ONREQUEST(pRI->pCI->requestNumber, &rcsw, sizeof(rcsw), pRI, mSlotId); in writeSmsToRuim()
2021 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, in setInitialAttachApn() local
2023 if (pRI == NULL) { in setInitialAttachApn()
2030 if (!copyHidlStringToRil(&iaa.apn, dataProfileInfo.apn, pRI, true)) { in setInitialAttachApn()
2037 if (!copyHidlStringToRil(&iaa.protocol, protocol, pRI)) { in setInitialAttachApn()
2042 if (!copyHidlStringToRil(&iaa.username, dataProfileInfo.user, pRI)) { in setInitialAttachApn()
2046 if (!copyHidlStringToRil(&iaa.password, dataProfileInfo.password, pRI)) { in setInitialAttachApn()
2051 CALL_ONREQUEST(RIL_REQUEST_SET_INITIAL_ATTACH_APN, &iaa, sizeof(iaa), pRI, mSlotId); in setInitialAttachApn()
2057 if (!copyHidlStringToRil(&iaa.apn, dataProfileInfo.apn, pRI, true)) { in setInitialAttachApn()
2061 if (!copyHidlStringToRil(&iaa.protocol, dataProfileInfo.protocol, pRI)) { in setInitialAttachApn()
2065 if (!copyHidlStringToRil(&iaa.roamingProtocol, dataProfileInfo.roamingProtocol, pRI)) { in setInitialAttachApn()
2070 if (!copyHidlStringToRil(&iaa.username, dataProfileInfo.user, pRI)) { in setInitialAttachApn()
2074 if (!copyHidlStringToRil(&iaa.password, dataProfileInfo.password, pRI)) { in setInitialAttachApn()
2084 sendErrorResponse(pRI, RIL_E_INVALID_ARGUMENTS); in setInitialAttachApn()
2090 if (!copyHidlStringToRil(&iaa.mvnoMatchData, dataProfileInfo.mvnoMatchData, pRI)) { in setInitialAttachApn()
2096 CALL_ONREQUEST(RIL_REQUEST_SET_INITIAL_ATTACH_APN, &iaa, sizeof(iaa), pRI, mSlotId); in setInitialAttachApn()
2113 bool dispatchImsGsmSms(const ImsSmsMessage& message, RequestInfo *pRI) { in dispatchImsGsmSms() argument
2124 RLOGE("dispatchImsGsmSms: Invalid len %s", requestToString(pRI->pCI->requestNumber)); in dispatchImsGsmSms()
2125 sendErrorResponse(pRI, RIL_E_INVALID_ARGUMENTS); in dispatchImsGsmSms()
2132 requestToString(pRI->pCI->requestNumber)); in dispatchImsGsmSms()
2133 sendErrorResponse(pRI, RIL_E_NO_MEMORY); in dispatchImsGsmSms()
2137 if (!copyHidlStringToRil(&pStrings[0], message.gsmMessage[0].smscPdu, pRI)) { in dispatchImsGsmSms()
2145 if (!copyHidlStringToRil(&pStrings[1], message.gsmMessage[0].pdu, pRI)) { in dispatchImsGsmSms()
2155 CALL_ONREQUEST(pRI->pCI->requestNumber, &rism, sizeof(RIL_RadioTechnologyFamily) + in dispatchImsGsmSms()
2156 sizeof(uint8_t) + sizeof(int32_t) + dataLen, pRI, pRI->socket_id); in dispatchImsGsmSms()
2175 bool dispatchImsCdmaSms(const ImsSmsMessage& message, RequestInfo *pRI) { in dispatchImsCdmaSms() argument
2179 RLOGE("dispatchImsCdmaSms: Invalid len %s", requestToString(pRI->pCI->requestNumber)); in dispatchImsCdmaSms()
2180 sendErrorResponse(pRI, RIL_E_INVALID_ARGUMENTS); in dispatchImsCdmaSms()
2197 CALL_ONREQUEST(pRI->pCI->requestNumber, &temp.imsSms, payloadLen, pRI, pRI->socket_id); in dispatchImsCdmaSms()
2206 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_IMS_SEND_SMS); in sendImsSms() local
2207 if (pRI == NULL) { in sendImsSms()
2214 dispatchImsGsmSms(message, pRI); in sendImsSms()
2216 dispatchImsCdmaSms(message, pRI); in sendImsSms()
2219 requestToString(pRI->pCI->requestNumber)); in sendImsSms()
2220 sendErrorResponse(pRI, RIL_E_INVALID_ARGUMENTS); in sendImsSms()
2240 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_SIM_OPEN_CHANNEL); in iccOpenLogicalChannel() local
2241 if (pRI == NULL) { in iccOpenLogicalChannel()
2249 if (!copyHidlStringToRil(¶ms.aidPtr, aid, pRI)) { in iccOpenLogicalChannel()
2253 CALL_ONREQUEST(pRI->pCI->requestNumber, ¶ms, sizeof(params), pRI, mSlotId); in iccOpenLogicalChannel()
2280 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_NV_READ_ITEM); in nvReadItem() local
2281 if (pRI == NULL) { in nvReadItem()
2288 CALL_ONREQUEST(pRI->pCI->requestNumber, &nvri, sizeof(nvri), pRI, mSlotId); in nvReadItem()
2296 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_NV_WRITE_ITEM); in nvWriteItem() local
2297 if (pRI == NULL) { in nvWriteItem()
2305 if (!copyHidlStringToRil(&nvwi.value, item.value, pRI)) { in nvWriteItem()
2309 CALL_ONREQUEST(pRI->pCI->requestNumber, &nvwi, sizeof(nvwi), pRI, mSlotId); in nvWriteItem()
2353 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, in setUiccSubscription() local
2355 if (pRI == NULL) { in setUiccSubscription()
2366 CALL_ONREQUEST(pRI->pCI->requestNumber, &rilUiccSub, sizeof(rilUiccSub), pRI, mSlotId); in setUiccSubscription()
2391 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_SIM_AUTHENTICATION); in requestIccSimAuthentication() local
2392 if (pRI == NULL) { in requestIccSimAuthentication()
2400 if (!copyHidlStringToRil(&pf.authData, authData, pRI)) { in requestIccSimAuthentication()
2404 if (!copyHidlStringToRil(&pf.aid, aid, pRI)) { in requestIccSimAuthentication()
2409 CALL_ONREQUEST(pRI->pCI->requestNumber, &pf, sizeof(pf), pRI, mSlotId); in requestIccSimAuthentication()
2454 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_SET_DATA_PROFILE); in setDataProfile() local
2455 if (pRI == NULL) { in setDataProfile()
2469 requestToString(pRI->pCI->requestNumber)); in setDataProfile()
2470 sendErrorResponse(pRI, RIL_E_NO_MEMORY); in setDataProfile()
2478 requestToString(pRI->pCI->requestNumber)); in setDataProfile()
2480 sendErrorResponse(pRI, RIL_E_NO_MEMORY); in setDataProfile()
2487 success = copyHidlStringToRil(&dataProfiles[i].apn, profiles[i].apn, pRI, true); in setDataProfile()
2492 if (success && !copyHidlStringToRil(&dataProfiles[i].protocol, protocol, pRI, true)) { in setDataProfile()
2496 if (success && !copyHidlStringToRil(&dataProfiles[i].user, profiles[i].user, pRI, in setDataProfile()
2501 pRI, true)) { in setDataProfile()
2522 num * sizeof(RIL_DataProfileInfo *), pRI, mSlotId); in setDataProfile()
2533 requestToString(pRI->pCI->requestNumber)); in setDataProfile()
2534 sendErrorResponse(pRI, RIL_E_NO_MEMORY); in setDataProfile()
2542 requestToString(pRI->pCI->requestNumber)); in setDataProfile()
2544 sendErrorResponse(pRI, RIL_E_NO_MEMORY); in setDataProfile()
2551 success = copyHidlStringToRil(&dataProfiles[i].apn, profiles[i].apn, pRI, true); in setDataProfile()
2553 pRI)) { in setDataProfile()
2557 profiles[i].roamingProtocol, pRI, true)) { in setDataProfile()
2560 if (success && !copyHidlStringToRil(&dataProfiles[i].user, profiles[i].user, pRI, in setDataProfile()
2565 pRI, true)) { in setDataProfile()
2569 profiles[i].mvnoMatchData, pRI, true)) { in setDataProfile()
2575 sendErrorResponse(pRI, RIL_E_INVALID_ARGUMENTS); in setDataProfile()
2600 num * sizeof(RIL_DataProfileInfo_v15 *), pRI, mSlotId); in setDataProfile()
2631 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_SET_RADIO_CAPABILITY); in setRadioCapability() local
2632 if (pRI == NULL) { in setRadioCapability()
2645 CALL_ONREQUEST(pRI->pCI->requestNumber, &rilRc, sizeof(rilRc), pRI, mSlotId); in setRadioCapability()
2688 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, in setAllowedCarriers() local
2690 if (pRI == NULL) { in setAllowedCarriers()
2702 requestToString(pRI->pCI->requestNumber)); in setAllowedCarriers()
2703 sendErrorResponse(pRI, RIL_E_NO_MEMORY); in setAllowedCarriers()
2712 requestToString(pRI->pCI->requestNumber)); in setAllowedCarriers()
2713 sendErrorResponse(pRI, RIL_E_NO_MEMORY); in setAllowedCarriers()
2737 CALL_ONREQUEST(pRI->pCI->requestNumber, &cr, sizeof(RIL_CarrierRestrictions), pRI, mSlotId); in setAllowedCarriers()
2766 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, in sendDeviceState() local
2768 sendErrorResponse(pRI, RIL_E_REQUEST_NOT_SUPPORTED); in sendDeviceState()
2782 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, in setIndicationFilter() local
2784 sendErrorResponse(pRI, RIL_E_REQUEST_NOT_SUPPORTED); in setIndicationFilter()
2812 RequestInfo *pRI = android::addRequestToList( in setCarrierInfoForImsiEncryption() local
2814 if (pRI == NULL) { in setCarrierInfoForImsiEncryption()
2820 if (!copyHidlStringToRil(&imsiEncryption.mnc, data.mnc, pRI)) { in setCarrierInfoForImsiEncryption()
2823 if (!copyHidlStringToRil(&imsiEncryption.mcc, data.mcc, pRI)) { in setCarrierInfoForImsiEncryption()
2827 if (!copyHidlStringToRil(&imsiEncryption.keyIdentifier, data.keyIdentifier, pRI)) { in setCarrierInfoForImsiEncryption()
2835 CALL_ONREQUEST(pRI->pCI->requestNumber, &imsiEncryption, in setCarrierInfoForImsiEncryption()
2836 sizeof(RIL_CarrierInfoForImsiEncryption), pRI, mSlotId); in setCarrierInfoForImsiEncryption()
2845 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_START_KEEPALIVE); in startKeepalive() local
2846 if (pRI == NULL) { in startKeepalive()
2858 sendErrorResponse(pRI, RIL_E_INVALID_ARGUMENTS); in startKeepalive()
2866 sendErrorResponse(pRI, RIL_E_INVALID_ARGUMENTS); in startKeepalive()
2872 sendErrorResponse(pRI, RIL_E_INVALID_ARGUMENTS); in startKeepalive()
2886 CALL_ONREQUEST(pRI->pCI->requestNumber, &kaReq, sizeof(RIL_KeepaliveRequest), pRI, mSlotId); in startKeepalive()
2894 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_STOP_KEEPALIVE); in stopKeepalive() local
2895 if (pRI == NULL) { in stopKeepalive()
2899 CALL_ONREQUEST(pRI->pCI->requestNumber, &sessionHandle, sizeof(uint32_t), pRI, mSlotId); in stopKeepalive()