Home
last modified time | relevance | path

Searched refs:resp (Results 1 – 24 of 24) sorted by relevance

/system/core/fastboot/fuzzy_fastboot/
Dfixtures.cpp237 std::string resp; in SetLockState() local
240 ASSERT_EQ(fb->RawCommand("flashing get_unlock_ability", &resp, &info), SUCCESS) in SetLockState()
244 if (!resp.empty()) { // must be in the info response in SetLockState()
245 ASSERT_EQ(resp.back(), '1') in SetLockState()
256 EXPECT_EQ(fb->GetVar("unlocked", &resp), SUCCESS) << "getvar:unlocked failed"; in SetLockState()
257 ASSERT_TRUE(resp == "no" || resp == "yes") in SetLockState()
258 << "getvar:unlocked response was not 'no' or 'yes': " + resp; in SetLockState()
260 if ((unlock && resp == "no") || (!unlock && resp == "yes")) { in SetLockState()
262 ASSERT_EQ(fb->RawCommand("flashing " + cmd, &resp), SUCCESS) in SetLockState()
267 ASSERT_EQ(fb->GetVar("unlocked", &resp), SUCCESS) << "getvar:unlocked failed"; in SetLockState()
[all …]
Dmain.cpp106 std::string resp; in PartitionHash() local
110 if ((ret = fb->RawCommand(cmd, &resp, &info)) != SUCCESS) { in PartitionHash()
122 prog_args.push_back(resp); // Pass in the full command in PartitionHash()
396 std::string resp; in TEST_F() local
404 EXPECT_EQ(fb->RawCommand("flashing get_unlock_ability", &resp, &info), SUCCESS) in TEST_F()
408 if (!resp.empty()) { // must be in the response in TEST_F()
409 last = resp.back(); in TEST_F()
428 std::string resp; in TEST_F() local
429 EXPECT_EQ(fb->GetVar("partition-type:" + part, &resp), SUCCESS); in TEST_F()
430 EXPECT_NE(allowed.find(resp), allowed.end()) << "getvar:partition-type:" + part << " was '" in TEST_F()
[all …]
DREADME.md306 resp
/system/chre/platform/slpi/see/
Dsns_qmi_client.c122 sns_client_resp_msg_v01 *resp = resp_c_struct; in client_resp_cb() local
125 if (NULL != resp && resp->result_valid) { in client_resp_cb()
126 err = resp->result; in client_resp_cb()
127 SNS_LOG(VERBOSE, "Response from client %" PRIu64, resp->client_id); in client_resp_cb()
231 void *resp; in sns_client_send() local
233 resp = sns_malloc(resp_len); in sns_client_send()
234 SNS_ASSERT(NULL != resp); in sns_client_send()
239 client->qmi_handle, SNS_CLIENT_REQ_V01, req_msg, sizeof(*req_msg), resp, in sns_client_send()
244 sns_free(resp); in sns_client_send()
/system/core/trusty/apploader/
Dapploader.cpp182 struct apploader_resp resp; in read_response() local
183 ssize_t rc = read(tipc_fd, &resp, sizeof(resp)); in read_response()
189 if (rc < sizeof(resp)) { in read_response()
194 if (resp.hdr.cmd != (APPLOADER_CMD_LOAD_APPLICATION | APPLOADER_RESP_BIT)) { in read_response()
195 LOG(ERROR) << "Invalid command in response: " << resp.hdr.cmd; in read_response()
199 switch (resp.error) { in read_response()
224 LOG(ERROR) << "Unrecognized error: " << resp.error; in read_response()
228 return static_cast<ssize_t>(resp.error); in read_response()
/system/core/trusty/coverage/
Dcoverage.cpp81 Result<void> CoverageRecord::Rpc(coverage_client_req* req, int req_fd, coverage_client_resp* resp) { in Rpc() argument
104 rc = read(coverage_srv_fd_, resp, sizeof(*resp)); in Rpc()
105 if (rc != (int)sizeof(*resp)) { in Rpc()
109 if (resp->hdr.cmd != (req->hdr.cmd | COVERAGE_CLIENT_CMD_RESP_BIT)) { in Rpc()
110 return ErrnoError() << "unknown response cmd: " << resp->hdr.cmd; in Rpc()
118 coverage_client_resp resp; in Open() local
134 auto ret = Rpc(&req, -1, &resp); in Open()
138 record_len_ = resp.open_args.record_len; in Open()
157 ret = Rpc(&req, dma_buf, &resp); in Open()
/system/core/trusty/metrics/
Dmetrics.cpp123 metrics_resp resp = { in HandleEvent() local
128 rc = write(metrics_fd_, &resp, sizeof(resp)); in HandleEvent()
133 if (rc != (int)sizeof(resp)) { in HandleEvent()
/system/chre/java/test/utils/src/com/google/android/utils/chre/
DChreTestUtil.java100 ContextHubTransaction.Response<Void> resp = null; in loadNanoApp() local
102 resp = txn.waitForResponse(TIMEOUT_LOAD_NANOAPP_SECONDS, TimeUnit.SECONDS); in loadNanoApp()
107 return resp != null && resp.getResult() == ContextHubTransaction.RESULT_SUCCESS; in loadNanoApp()
131 ContextHubTransaction.Response<Void> resp = null; in unloadNanoApp() local
133 resp = txn.waitForResponse(TIMEOUT_UNLOAD_NANOAPP_SECONDS, TimeUnit.SECONDS); in unloadNanoApp()
138 return resp != null && resp.getResult() == ContextHubTransaction.RESULT_SUCCESS; in unloadNanoApp()
/system/netd/server/
DOffloadUtils.cpp132 } resp = {}; in sendAndProcessNetlinkResponse() local
134 rv = recv(fd, &resp, sizeof(resp), MSG_TRUNC); in sendAndProcessNetlinkResponse()
147 if (resp.h.nlmsg_len != (unsigned)rv) { in sendAndProcessNetlinkResponse()
148 ALOGE("recv() returned invalid header length: %d != %d", resp.h.nlmsg_len, rv); in sendAndProcessNetlinkResponse()
152 if (resp.h.nlmsg_type != NLMSG_ERROR) { in sendAndProcessNetlinkResponse()
153 ALOGE("recv() did not return NLMSG_ERROR message: %d", resp.h.nlmsg_type); in sendAndProcessNetlinkResponse()
157 return resp.e.error; // returns 0 on success in sendAndProcessNetlinkResponse()
/system/core/trusty/utils/acvp/
Dtrusty_modulewrapper.cpp154 struct acvp_resp resp; in ForwardResponse() local
155 int bytes_read = read(tipc_fd_, &resp, sizeof(struct acvp_resp)); in ForwardResponse()
165 for (size_t i = 0; i < resp.num_spans; i++) { in ForwardResponse()
166 total_args_size += resp.lengths[i]; in ForwardResponse()
170 iovs[0].iov_base = &resp; in ForwardResponse()
171 iovs[0].iov_len = sizeof(uint32_t) * (1 + resp.num_spans); in ForwardResponse()
/system/core/trusty/apploader/fuzz/
Dapp_fuzzer.cpp78 apploader_resp resp; in SendLoadMsg() local
79 rc = read(chan, &resp, sizeof(resp)); in SendLoadMsg()
80 if (rc != static_cast<int>(sizeof(resp))) { in SendLoadMsg()
/system/bt/btif/src/
Dbtif_a2dp_audio_interface.cc68 static Status mapToStatus(uint8_t resp);
171 static Status mapToStatus(uint8_t resp) { in mapToStatus() argument
172 switch (resp) { in mapToStatus()
184 APPL_TRACE_WARNING("%s: unknown status recevied :%d", __func__, resp); in mapToStatus()
377 uint8_t resp; in btif_a2dp_audio_send_start_req() local
378 resp = btif_a2dp_audio_process_request(A2DP_CTRL_CMD_START); in btif_a2dp_audio_send_start_req()
380 auto status = mapToStatus(resp); in btif_a2dp_audio_send_start_req()
390 uint8_t resp; in btif_a2dp_audio_send_suspend_req() local
391 resp = btif_a2dp_audio_process_request(A2DP_CTRL_CMD_SUSPEND); in btif_a2dp_audio_send_suspend_req()
393 auto status = mapToStatus(resp); in btif_a2dp_audio_send_suspend_req()
/system/bt/gd/cert/
Dlogging_client_interceptor.py54 resp = self.server_stream_call.__next__()
55 print("%s %s" % (self.logTag, pretty_print(resp)))
56 return resp
Dpy_le_iso.py96 resp = self._device.iso.LeSetCigParameters(
133 resp = self._device.iso.LeSetCigParameters(
/system/core/trusty/storage/proxy/
Dstorage.c220 struct storage_file_open_resp resp = {0}; in storage_file_open() local
286 resp.handle = insert_fd(open_flags, rc); in storage_file_open()
288 __func__, path, rc, resp.handle); in storage_file_open()
290 return ipc_respond(msg, &resp, sizeof(resp)); in storage_file_open()
411 struct storage_file_get_size_resp resp = {0}; in storage_file_get_size() local
431 resp.size = stat.st_size; in storage_file_get_size()
433 return ipc_respond(msg, &resp, sizeof(resp)); in storage_file_get_size()
/system/bt/bta/hf_client/
Dbta_hf_client_sco.cc105 enh_esco_params_t resp; in bta_hf_client_sco_conn_rsp() local
113 resp = esco_parameters_for_codec(SCO_CODEC_CVSD_D1); in bta_hf_client_sco_conn_rsp()
116 resp = esco_parameters_for_codec(ESCO_CODEC_MSBC_T2); in bta_hf_client_sco_conn_rsp()
119 resp = esco_parameters_for_codec(ESCO_CODEC_CVSD_S4); in bta_hf_client_sco_conn_rsp()
122 resp = esco_parameters_for_codec(ESCO_CODEC_CVSD_S3); in bta_hf_client_sco_conn_rsp()
131 BTM_EScoConnRsp(p_data->sco_inx, hci_status, &resp); in bta_hf_client_sco_conn_rsp()
/system/bt/stack/bnep/
Dbnep_api.cc209 tBNEP_RESULT BNEP_ConnectResp(uint16_t handle, tBNEP_RESULT resp) { in BNEP_ConnectResp() argument
222 resp); in BNEP_ConnectResp()
225 if (resp == BNEP_CONN_FAILED_SRC_UUID) in BNEP_ConnectResp()
227 else if (resp == BNEP_CONN_FAILED_DST_UUID) in BNEP_ConnectResp()
229 else if (resp == BNEP_CONN_FAILED_UUID_SIZE) in BNEP_ConnectResp()
231 else if (resp == BNEP_SUCCESS) in BNEP_ConnectResp()
239 if (resp == BNEP_SUCCESS) in BNEP_ConnectResp()
Dbnep_utils.cc624 tBNEP_RESULT resp; in bnep_process_setup_conn_responce() local
646 resp = BNEP_CONN_FAILED_SRC_UUID; in bnep_process_setup_conn_responce()
650 resp = BNEP_CONN_FAILED_DST_UUID; in bnep_process_setup_conn_responce()
654 resp = BNEP_CONN_FAILED_UUID_SIZE; in bnep_process_setup_conn_responce()
659 resp = BNEP_CONN_FAILED; in bnep_process_setup_conn_responce()
680 (*bnep_cb.p_conn_state_cb)(p_bcb->handle, p_bcb->rem_bda, resp, true); in bnep_process_setup_conn_responce()
690 (*bnep_cb.p_conn_state_cb)(p_bcb->handle, p_bcb->rem_bda, resp, false); in bnep_process_setup_conn_responce()
/system/extras/simpleperf/
DETMDecoder.cpp58 static bool IsRespError(ocsd_datapath_resp_t resp) { in IsRespError() argument
59 return resp >= OCSD_RESP_ERR_CONT; in IsRespError()
157 auto resp = callback->ProcessPacket(trace_id_, op, index_sop, pkt); in PacketDataIn() local
158 if (IsRespError(resp)) { in PacketDataIn()
159 return resp; in PacketDataIn()
358 auto resp = in TraceElemIn() local
360 if (IsRespError(resp)) { in TraceElemIn()
361 return resp; in TraceElemIn()
685 auto resp = in ProcessData() local
687 if (IsRespError(resp)) { in ProcessData()
[all …]
/system/bt/gd/rust/shim/src/
Dhci.rs45 let resp = commands.send(packet).await.unwrap(); in hci_send_command() localVariable
46 callback.Run(&resp.to_bytes()); in hci_send_command()
/system/core/trusty/utils/rpmb_dev/
Drpmb_dev.c245 uint16_t resp; member
260 .resp = RPMB_RESP_PROGRAM_KEY,
267 .resp = RPMB_RESP_GET_COUNTER,
274 .resp = RPMB_RESP_DATA_WRITE,
285 .resp = RPMB_RESP_DATA_READ,
414 s->res[i].req_resp = rpmb_u16(cmd->resp); in rpmb_dev_process_cmd()
/system/core/trusty/coverage/include/trusty/coverage/
Dcoverage.h67 Result<void> Rpc(coverage_client_req* req, int req_fd, coverage_client_resp* resp);
/system/bt/test/mock/
Dmock_stack_bnep_api.cc45 tBNEP_RESULT BNEP_ConnectResp(uint16_t handle, tBNEP_RESULT resp) { in BNEP_ConnectResp() argument
/system/bt/stack/include/
Dbnep_api.h249 extern tBNEP_RESULT BNEP_ConnectResp(uint16_t handle, tBNEP_RESULT resp);