Home
last modified time | relevance | path

Searched refs:rsp (Results 1 – 14 of 14) sorted by relevance

/device/google/cuttlefish/guest/hals/ril/reference-libril/
DRilSapSocket.cpp244 MsgHeader rsp; in onRequestComplete() local
245 rsp.token = request->curr->token; in onRequestComplete()
246 rsp.type = MsgType_RESPONSE; in onRequestComplete()
247 rsp.id = request->curr->id; in onRequestComplete()
248 rsp.error = (Error)e; in onRequestComplete()
249 rsp.payload = (pb_bytes_array_t *)calloc(1, sizeof(pb_bytes_array_t) + response_len); in onRequestComplete()
250 if (!rsp.payload) { in onRequestComplete()
254 memcpy(rsp.payload->bytes, response, response_len); in onRequestComplete()
255 rsp.payload->size = response_len; in onRequestComplete()
257 rsp.payload->size = 0; in onRequestComplete()
[all …]
Dsap_service.cpp766 void processResponse(MsgHeader *rsp, RilSapSocket *sapSocket, MsgType msgType) { in processResponse() argument
767 MsgId msgId = rsp->id; in processResponse()
768 uint8_t *data = rsp->payload->bytes; in processResponse()
769 size_t dataLen = rsp->payload->size; in processResponse()
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()
[all …]
/device/generic/goldfish/radio/libril/
DRilSapSocket.cpp244 MsgHeader rsp; in onRequestComplete() local
245 rsp.token = request->curr->token; in onRequestComplete()
246 rsp.type = MsgType_RESPONSE; in onRequestComplete()
247 rsp.id = request->curr->id; in onRequestComplete()
248 rsp.error = (Error)e; in onRequestComplete()
249 rsp.payload = (pb_bytes_array_t *)calloc(1, sizeof(pb_bytes_array_t) + response_len); in onRequestComplete()
250 if (!rsp.payload) { in onRequestComplete()
254 memcpy(rsp.payload->bytes, response, response_len); in onRequestComplete()
255 rsp.payload->size = response_len; in onRequestComplete()
257 rsp.payload->size = 0; in onRequestComplete()
[all …]
Dsap_service.cpp766 void processResponse(MsgHeader *rsp, RilSapSocket *sapSocket, MsgType msgType) { in processResponse() argument
767 MsgId msgId = rsp->id; in processResponse()
768 uint8_t *data = rsp->payload->bytes; in processResponse()
769 size_t dataLen = rsp->payload->size; in processResponse()
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()
[all …]
Dsap_service.h28 void processResponse(MsgHeader *rsp, RilSapSocket *sapSocket);
29 void processUnsolResponse(MsgHeader *rsp, RilSapSocket *sapSocket);
/device/google/cuttlefish/guest/hals/ril/libril/
DRilSapSocket.cpp244 MsgHeader rsp; in onRequestComplete() local
245 rsp.token = request->curr->token; in onRequestComplete()
246 rsp.type = MsgType_RESPONSE; in onRequestComplete()
247 rsp.id = request->curr->id; in onRequestComplete()
248 rsp.error = (Error)e; in onRequestComplete()
249 rsp.payload = (pb_bytes_array_t *)calloc(1, sizeof(pb_bytes_array_t) + response_len); in onRequestComplete()
250 if (!rsp.payload) { in onRequestComplete()
254 memcpy(rsp.payload->bytes, response, response_len); in onRequestComplete()
255 rsp.payload->size = response_len; in onRequestComplete()
257 rsp.payload->size = 0; in onRequestComplete()
[all …]
Dsap_service.cpp766 void processResponse(MsgHeader *rsp, RilSapSocket *sapSocket, MsgType msgType) { in processResponse() argument
767 MsgId msgId = rsp->id; in processResponse()
768 uint8_t *data = rsp->payload->bytes; in processResponse()
769 size_t dataLen = rsp->payload->size; in processResponse()
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()
[all …]
/device/google/contexthub/contexthubhal/
Dsystem_comms.cpp248 NanohubRsp rsp(buf, transactionId, chre); in handleRx() local
250 if (rsp.mCmd != NANOHUB_HAL_SYS_INFO) in handleRx()
461 NanohubRsp rsp(buf, transactionId, chre); in handleRx() local
465 ret = handleTransfer(rsp, buf, appManager); in handleRx()
468 ret = handleStopTransfer(rsp, buf, appManager); in handleRx()
471 ret = handleQueryStart(rsp, buf, appManager); in handleRx()
474 ret = handleStart(rsp, buf, appManager); in handleRx()
477 ret = handleFinish(rsp, buf, appManager); in handleRx()
480 ret = handleRun(rsp, buf, appManager); in handleRx()
483 ret = handleStopRun(rsp, buf, appManager); in handleRx()
[all …]
Dsystem_comms.h268 int handleTransfer(NanohubRsp &rsp, MessageBuf &, AppManager &appManager);
269 int handleStopTransfer(NanohubRsp &rsp, MessageBuf &buf, AppManager &);
270 int handleQueryStart(NanohubRsp &rsp, MessageBuf &buf, AppManager &appManager);
271 int handleStart(NanohubRsp &rsp, MessageBuf &buf, AppManager &);
272 int handleFinish(NanohubRsp &rsp, MessageBuf &buf, AppManager &appManager);
273 int handleRun(NanohubRsp &rsp, MessageBuf &buf, AppManager &appManager);
274 int handleStopRun(NanohubRsp &rsp, MessageBuf &buf, AppManager &);
275 int handleReboot(NanohubRsp &rsp, MessageBuf &buf, AppManager &);
276 int handleEraseTransfer(NanohubRsp &rsp, MessageBuf &buf, AppManager &appManager);
277 int handleMgmt(NanohubRsp &rsp, MessageBuf &buf, AppManager &appManager);
[all …]
DNanohubHidlAdapter.cpp202 status_response_t *rsp) { in isValidOsStatus() argument
205 rsp->result = msg[0]; in isValidOsStatus()
209 if (msg == nullptr || msgLen != sizeof(*rsp)) { in isValidOsStatus()
216 memcpy(rsp, msg, sizeof(*rsp)); in isValidOsStatus()
236 struct status_response_t rsp; in handleOsMessage() local
238 if (isValidOsStatus(msg, msgLen, &rsp) && rsp.result == 0) { in handleOsMessage()
/device/google/cuttlefish/guest/hals/keymaster/remote/
Dremote_keymaster.cpp32 KeymasterResponse* rsp) { in ForwardCommand() argument
35 rsp->error = KM_ERROR_UNKNOWN_ERROR; in ForwardCommand()
41 rsp->error = KM_ERROR_UNKNOWN_ERROR; in ForwardCommand()
46 if (!rsp->Deserialize(&buffer, buffer_end)) { in ForwardCommand()
48 rsp->error = KM_ERROR_UNKNOWN_ERROR; in ForwardCommand()
59 ConfigureResponse rsp; in Initialize() local
60 Configure(req, &rsp); in Initialize()
62 if (rsp.error != KM_ERROR_OK) { in Initialize()
63 LOG(ERROR) << "Failed to configure keymaster: " << rsp.error; in Initialize()
Dremote_keymaster.h31 AndroidKeymasterCommand command, const Serializable& req, KeymasterResponse* rsp);
/device/google/contexthub/util/nanotool/
Dcontexthub.cpp293 auto rsp = reinterpret_cast<const BrHostEventData *>(event.GetDataPtr()); in PrintBridgeVersion() local
299 } else if (rsp->msgId != BRIDGE_HOST_EVENT_MSG_VERSION_INFO) { in PrintBridgeVersion()
300 LOGD("Ignored bridge event with unexpected message ID %u", rsp->msgId); in PrintBridgeVersion()
301 } else if (rsp->status) { in PrintBridgeVersion()
302 LOGE("Bridge version info request failed with status %u", rsp->status); in PrintBridgeVersion()
312 rsp->payload); in PrintBridgeVersion()
/device/linaro/dragonboard/db845c/firmware/
Dadsp.b131rsp payload���vpm_apr_msg_handler.cpp:vpm_get_param_v3_cmd_ctrl(): Failed to validate calib payloa…