Home | History | Annotate | Download | only in libril

Lines Matching defs:pRI

472 void sendErrorResponse(RequestInfo *pRI, RIL_Errno err) {
473 pRI->pCI->responseFunction((int) pRI->socket_id,
474 pRI->token, err, NULL, 0);
482 bool copyHidlStringToRil(char **dest, const hidl_string &src, RequestInfo *pRI) {
490 RLOGE("Memory allocation failed for request %s", requestToString(pRI->pCI->requestNumber));
491 sendErrorResponse(pRI, RIL_E_NO_MEMORY);
508 RequestInfo *pRI = android::addRequestToList(serial, slotId, request);
509 if (pRI == NULL) {
512 CALL_ONREQUEST(request, NULL, 0, pRI, slotId);
517 RequestInfo *pRI = android::addRequestToList(serial, slotId, request);
518 if (pRI == NULL) {
523 if (!copyHidlStringToRil(&pString, str, pRI)) {
527 CALL_ONREQUEST(request, pString, sizeof(char *), pRI, slotId);
534 RequestInfo *pRI = android::addRequestToList(serial, slotId, request);
535 if (pRI == NULL) {
543 sendErrorResponse(pRI, RIL_E_NO_MEMORY);
550 if (!copyHidlStringToRil(&pStrings[i], hidl_string(str), pRI)) {
561 CALL_ONREQUEST(request, pStrings, countStrings * sizeof(char *), pRI, slotId);
577 RequestInfo *pRI = android::addRequestToList(serial, slotId, request);
578 if (pRI == NULL) {
587 sendErrorResponse(pRI, RIL_E_NO_MEMORY);
592 if (!copyHidlStringToRil(&pStrings[i], data[i], pRI)) {
601 CALL_ONREQUEST(request, pStrings, countStrings * sizeof(char *), pRI, slotId);
617 RequestInfo *pRI = android::addRequestToList(serial, slotId, request);
618 if (pRI == NULL) {
626 sendErrorResponse(pRI, RIL_E_NO_MEMORY);
636 CALL_ONREQUEST(request, pInts, countInts * sizeof(int), pRI, slotId);
649 RequestInfo *pRI = android::addRequestToList(serial, slotId, request);
650 if (pRI == NULL) {
661 if (!copyHidlStringToRil(&cf.number, callInfo.number, pRI)) {
665 CALL_ONREQUEST(request, &cf, sizeof(cf), pRI, slotId);
673 RequestInfo *pRI = android::addRequestToList(serial, slotId, request);
674 if (pRI == NULL) {
680 CALL_ONREQUEST(request, (void *) uData, rawBytes.size(), pRI, slotId);
686 RequestInfo *pRI = android::addRequestToList(serial, slotId, request);
687 if (pRI == NULL) {
700 if (!copyHidlStringToRil(&apdu.data, message.data, pRI)) {
704 CALL_ONREQUEST(request, &apdu, sizeof(apdu), pRI, slotId);
871 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_DIAL);
872 if (pRI == NULL) {
879 if (!copyHidlStringToRil(&dial.address, dialInfo.address, pRI)) {
892 if (!copyHidlStringToRil(&uusInfo.uusData, dialInfo.uusInfo[0].uusData, pRI)) {
902 CALL_ONREQUEST(RIL_REQUEST_DIAL, &dial, sizeOfDial, pRI, mSlotId);
1078 RequestInfo *pRI = android::addRequestToList(serial, mSlotId,
1080 if (pRI != NULL) {
1081 sendErrorResponse(pRI, RIL_E_INVALID_ARGUMENTS);
1103 RequestInfo *pRI = android::addRequestToList(serial, mSlotId,
1105 if (pRI != NULL) {
1106 sendErrorResponse(pRI, RIL_E_REQUEST_NOT_SUPPORTED);
1116 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_SIM_IO);
1117 if (pRI == NULL) {
1124 if (!copyHidlStringToRil(&rilIccIo.path, iccIo.path, pRI)) {
1132 if (!copyHidlStringToRil(&rilIccIo.data, iccIo.data, pRI)) {
1137 if (!copyHidlStringToRil(&rilIccIo.pin2, iccIo.pin2, pRI)) {
1142 if (!copyHidlStringToRil(&rilIccIo.aidPtr, iccIo.aid, pRI)) {
1147 CALL_ONREQUEST(RIL_REQUEST_SIM_IO, &rilIccIo, sizeof(rilIccIo), pRI, mSlotId);
1396 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_WRITE_SMS_TO_SIM);
1397 if (pRI == NULL) {
1405 if (!copyHidlStringToRil(&args.pdu, smsWriteArgs.pdu, pRI)) {
1409 if (!copyHidlStringToRil(&args.smsc, smsWriteArgs.smsc, pRI)) {
1414 CALL_ONREQUEST(RIL_REQUEST_WRITE_SMS_TO_SIM, &args, sizeof(args), pRI, mSlotId);
1625 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_CDMA_SEND_SMS);
1626 if (pRI == NULL) {
1633 CALL_ONREQUEST(pRI->pCI->requestNumber, &rcsm, sizeof(rcsm), pRI, mSlotId);
1641 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_CDMA_SMS_ACKNOWLEDGE);
1642 if (pRI == NULL) {
1651 CALL_ONREQUEST(pRI->pCI->requestNumber, &rcsa, sizeof(rcsa), pRI, mSlotId);
1669 RequestInfo *pRI = android::addRequestToList(serial, mSlotId,
1671 if (pRI == NULL) {
1688 CALL_ONREQUEST(pRI->pCI->requestNumber, gsmBciPtrs,
1689 num * sizeof(RIL_GSM_BroadcastSmsConfigInfo *), pRI, mSlotId);
1716 RequestInfo *pRI = android::addRequestToList(serial, mSlotId,
1718 if (pRI == NULL) {
1733 CALL_ONREQUEST(pRI->pCI->requestNumber, cdmaBciPtrs,
1734 num * sizeof(RIL_CDMA_BroadcastSmsConfigInfo *), pRI, mSlotId);
1759 RequestInfo *pRI = android::addRequestToList(serial, mSlotId,
1761 if (pRI == NULL) {
1769 CALL_ONREQUEST(pRI->pCI->requestNumber, &rcsw, sizeof(rcsw), pRI, mSlotId);
1896 RequestInfo *pRI = android::addRequestToList(serial, mSlotId,
1898 if (pRI == NULL) {
1909 requestToString(pRI->pCI->requestNumber));
1910 sendErrorResponse(pRI, RIL_E_NO_MEMORY);
1915 if (!copyHidlStringToRil(&iaa.apn, dataProfileInfo.apn, pRI)) {
1923 if (!copyHidlStringToRil(&iaa.protocol, protocol, pRI)) {
1928 if (!copyHidlStringToRil(&iaa.username, dataProfileInfo.user, pRI)) {
1932 if (!copyHidlStringToRil(&iaa.password, dataProfileInfo.password, pRI)) {
1937 CALL_ONREQUEST(RIL_REQUEST_SET_INITIAL_ATTACH_APN, &iaa, sizeof(iaa), pRI, mSlotId);
1947 requestToString(pRI->pCI->requestNumber));
1948 sendErrorResponse(pRI, RIL_E_NO_MEMORY);
1953 if (!copyHidlStringToRil(&iaa.apn, dataProfileInfo.apn, pRI)) {
1958 if (!copyHidlStringToRil(&iaa.protocol, dataProfileInfo.protocol, pRI)) {
1962 if (!copyHidlStringToRil(&iaa.roamingProtocol, dataProfileInfo.roamingProtocol, pRI)) {
1967 if (!copyHidlStringToRil(&iaa.username, dataProfileInfo.user, pRI)) {
1971 if (!copyHidlStringToRil(&iaa.password, dataProfileInfo.password, pRI)) {
1981 sendErrorResponse(pRI, RIL_E_INVALID_ARGUMENTS);
1987 if (!copyHidlStringToRil(&iaa.mvnoMatchData, dataProfileInfo.mvnoMatchData, pRI)) {
1993 CALL_ONREQUEST(RIL_REQUEST_SET_INITIAL_ATTACH_APN, &iaa, sizeof(iaa), pRI, mSlotId);
2010 bool dispatchImsGsmSms(const ImsSmsMessage& message, RequestInfo *pRI) {
2021 RLOGE("dispatchImsGsmSms: Invalid len %s", requestToString(pRI->pCI->requestNumber));
2022 sendErrorResponse(pRI, RIL_E_INVALID_ARGUMENTS);
2029 requestToString(pRI->pCI->requestNumber));
2030 sendErrorResponse(pRI, RIL_E_NO_MEMORY);
2034 if (!copyHidlStringToRil(&pStrings[0], message.gsmMessage[0].smscPdu, pRI)) {
2042 if (!copyHidlStringToRil(&pStrings[1], message.gsmMessage[0].pdu, pRI)) {
2052 CALL_ONREQUEST(pRI->pCI->requestNumber, &rism, sizeof(RIL_RadioTechnologyFamily) +
2053 sizeof(uint8_t) + sizeof(int32_t) + dataLen, pRI, pRI->socket_id);
2067 bool dispatchImsCdmaSms(const ImsSmsMessage& message, RequestInfo *pRI) {
2072 RLOGE("dispatchImsCdmaSms: Invalid len %s", requestToString(pRI->pCI->requestNumber));
2073 sendErrorResponse(pRI, RIL_E_INVALID_ARGUMENTS);
2084 CALL_ONREQUEST(pRI->pCI->requestNumber, &rism, sizeof(RIL_RadioTechnologyFamily) +
2085 sizeof(uint8_t) + sizeof(int32_t) + sizeof(rcsm), pRI, pRI->socket_id);
2094 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_IMS_SEND_SMS);
2095 if (pRI == NULL) {
2102 dispatchImsGsmSms(message, pRI);
2104 dispatchImsCdmaSms(message, pRI);
2107 requestToString(pRI->pCI->requestNumber));
2108 sendErrorResponse(pRI, RIL_E_INVALID_ARGUMENTS);
2128 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_SIM_OPEN_CHANNEL);
2129 if (pRI == NULL) {
2137 if (!copyHidlStringToRil(&params.aidPtr, aid, pRI)) {
2141 CALL_ONREQUEST(pRI->pCI->requestNumber, &params, sizeof(params), pRI, mSlotId);
2168 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_NV_READ_ITEM);
2169 if (pRI == NULL) {
2176 CALL_ONREQUEST(pRI->pCI->requestNumber, &nvri, sizeof(nvri), pRI, mSlotId);
2184 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_NV_WRITE_ITEM);
2185 if (pRI == NULL) {
2193 if (!copyHidlStringToRil(&nvwi.value, item.value, pRI)) {
2197 CALL_ONREQUEST(pRI->pCI->requestNumber, &nvwi, sizeof(nvwi), pRI, mSlotId);
2241 RequestInfo *pRI = android::addRequestToList(serial, mSlotId,
2243 if (pRI == NULL) {
2254 CALL_ONREQUEST(pRI->pCI->requestNumber, &rilUiccSub, sizeof(rilUiccSub), pRI, mSlotId);
2279 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_SIM_AUTHENTICATION);
2280 if (pRI == NULL) {
2289 if (!copyHidlStringToRil(&pf.authData, authData, pRI)) {
2293 if (!copyHidlStringToRil(&pf.aid, aid, pRI)) {
2298 CALL_ONREQUEST(pRI->pCI->requestNumber, &pf, sizeof(pf), pRI, mSlotId);
2343 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_SET_DATA_PROFILE);
2344 if (pRI == NULL) {
2358 requestToString(pRI->pCI->requestNumber));
2359 sendErrorResponse(pRI, RIL_E_NO_MEMORY);
2367 requestToString(pRI->pCI->requestNumber));
2369 sendErrorResponse(pRI, RIL_E_NO_MEMORY);
2376 success = copyHidlStringToRil(&dataProfiles[i].apn, profiles[i].apn, pRI);
2381 if (success && !copyHidlStringToRil(&dataProfiles[i].protocol, protocol, pRI)) {
2385 if (success && !copyHidlStringToRil(&dataProfiles[i].user, profiles[i].user, pRI)) {
2389 pRI)) {
2410 num * sizeof(RIL_DataProfileInfo *), pRI, mSlotId);
2421 requestToString(pRI->pCI->requestNumber));
2422 sendErrorResponse(pRI, RIL_E_NO_MEMORY);
2430 requestToString(pRI->pCI->requestNumber));
2432 sendErrorResponse(pRI, RIL_E_NO_MEMORY);
2439 success = copyHidlStringToRil(&dataProfiles[i].apn, profiles[i].apn, pRI);
2441 pRI)) {
2445 profiles[i].roamingProtocol, pRI)) {
2448 if (success && !copyHidlStringToRil(&dataProfiles[i].user, profiles[i].user, pRI)) {
2452 pRI)) {
2457 profiles[i].mvnoMatchData, pRI
2463 sendErrorResponse(pRI, RIL_E_INVALID_ARGUMENTS);
2488 num * sizeof(RIL_DataProfileInfo_v15 *), pRI, mSlotId);
2519 RequestInfo *pRI = android::addRequestToList(serial, mSlotId, RIL_REQUEST_SET_RADIO_CAPABILITY);
2520 if (pRI == NULL) {
2533 CALL_ONREQUEST(pRI->pCI->requestNumber, &rilRc, sizeof(rilRc), pRI, mSlotId);
2576 RequestInfo *pRI = android::addRequestToList(serial, mSlotId,
2578 if (pRI == NULL) {
2590 requestToString(pRI->pCI->requestNumber));
2591 sendErrorResponse(pRI, RIL_E_NO_MEMORY);
2600 requestToString(pRI->pCI->requestNumber));
2601 sendErrorResponse(pRI, RIL_E_NO_MEMORY);
2625 CALL_ONREQUEST(pRI->pCI->requestNumber, &cr, sizeof(RIL_CarrierRestrictions), pRI, mSlotId);
2654 RequestInfo *pRI = android::addRequestToList(serial, mSlotId,
2656 sendErrorResponse(pRI, RIL_E_REQUEST_NOT_SUPPORTED);
2670 RequestInfo *pRI = android::addRequestToList(serial, mSlotId,
2672 sendErrorResponse(pRI, RIL_E_REQUEST_NOT_SUPPORTED);