Home
last modified time | relevance | path

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

/system/core/fastboot/fuzzy_fastboot/
Dfixtures.cpp203 std::string resp; in SetLockState() local
206 ASSERT_EQ(fb->RawCommand("flashing get_unlock_ability", &resp, &info), SUCCESS) in SetLockState()
210 if (!resp.empty()) { // must be in the info response in SetLockState()
211 ASSERT_EQ(resp.back(), '1') in SetLockState()
222 EXPECT_EQ(fb->GetVar("unlocked", &resp), SUCCESS) << "getvar:unlocked failed"; in SetLockState()
223 ASSERT_TRUE(resp == "no" || resp == "yes") in SetLockState()
224 << "getvar:unlocked response was not 'no' or 'yes': " + resp; in SetLockState()
226 if ((unlock && resp == "no") || (!unlock && resp == "yes")) { in SetLockState()
228 ASSERT_EQ(fb->RawCommand("flashing " + cmd, &resp), SUCCESS) in SetLockState()
233 ASSERT_EQ(fb->GetVar("unlocked", &resp), SUCCESS) << "getvar:unlocked failed"; in SetLockState()
[all …]
Dmain.cpp104 std::string resp; in PartitionHash() local
108 if ((ret = fb->RawCommand(cmd, &resp, &info)) != SUCCESS) { in PartitionHash()
120 prog_args.push_back(resp); // Pass in the full command in PartitionHash()
401 std::string resp; in TEST_F() local
409 EXPECT_EQ(fb->RawCommand("flashing get_unlock_ability", &resp, &info), SUCCESS) in TEST_F()
413 if (!resp.empty()) { // must be in the response in TEST_F()
414 last = resp.back(); in TEST_F()
433 std::string resp; in TEST_F() local
434 EXPECT_EQ(fb->GetVar("partition-type:" + part, &resp), SUCCESS); in TEST_F()
435 EXPECT_NE(allowed.find(resp), allowed.end()) << "getvar:partition-type:" + part << " was '" in TEST_F()
[all …]
DREADME.md306 resp
/system/netd/server/
DClatUtils.cpp116 } resp = {}; in processNetlinkResponse() local
118 const int rv = recv(fd, &resp, sizeof(resp), MSG_TRUNC); in processNetlinkResponse()
131 if (resp.h.nlmsg_len != (unsigned)rv) { in processNetlinkResponse()
132 ALOGE("recv() returned invalid header length: %d != %d", resp.h.nlmsg_len, rv); in processNetlinkResponse()
136 if (resp.h.nlmsg_type != NLMSG_ERROR) { in processNetlinkResponse()
137 ALOGE("recv() did not return NLMSG_ERROR message: %d", resp.h.nlmsg_type); in processNetlinkResponse()
141 return resp.e.error; // returns 0 on success in processNetlinkResponse()
/system/chre/platform/slpi/include/chre/platform/slpi/smgr/
Dsmr_helper.h46 using SmrReqCallback = void (*)(UniquePtr<RespStruct> resp, void *callbackData,
85 UniquePtr<ReqStruct> *req, UniquePtr<RespStruct> *resp, in sendReqAsync() argument
100 reqData->respCStruct = std::move(*resp); in sendReqAsync()
137 UniquePtr<ReqStruct> *req, UniquePtr<RespStruct> *resp,
147 resp->get(), sizeof(RespStruct), timeout, &result);
157 resp->release();
/system/bt/btif/src/
Dbtif_a2dp_audio_interface.cc72 static Status mapToStatus(uint8_t resp);
175 static Status mapToStatus(uint8_t resp) { in mapToStatus() argument
176 switch (resp) { in mapToStatus()
188 APPL_TRACE_WARNING("%s: unknown status recevied :%d", __func__, resp); in mapToStatus()
386 uint8_t resp; in btif_a2dp_audio_send_start_req() local
387 resp = btif_a2dp_audio_process_request(A2DP_CTRL_CMD_START); in btif_a2dp_audio_send_start_req()
389 auto status = mapToStatus(resp); in btif_a2dp_audio_send_start_req()
399 uint8_t resp; in btif_a2dp_audio_send_suspend_req() local
400 resp = btif_a2dp_audio_process_request(A2DP_CTRL_CMD_SUSPEND); in btif_a2dp_audio_send_suspend_req()
402 auto status = mapToStatus(resp); in btif_a2dp_audio_send_suspend_req()
/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/stack/bnep/
Dbnep_api.cc212 tBNEP_RESULT BNEP_ConnectResp(uint16_t handle, tBNEP_RESULT resp) { in BNEP_ConnectResp() argument
225 resp); in BNEP_ConnectResp()
228 if (resp == BNEP_CONN_FAILED_SRC_UUID) in BNEP_ConnectResp()
230 else if (resp == BNEP_CONN_FAILED_DST_UUID) in BNEP_ConnectResp()
232 else if (resp == BNEP_CONN_FAILED_UUID_SIZE) in BNEP_ConnectResp()
234 else if (resp == BNEP_SUCCESS) in BNEP_ConnectResp()
242 if (resp == BNEP_SUCCESS) in BNEP_ConnectResp()
Dbnep_utils.cc634 tBNEP_RESULT resp; in bnep_process_setup_conn_responce() local
656 resp = BNEP_CONN_FAILED_SRC_UUID; in bnep_process_setup_conn_responce()
660 resp = BNEP_CONN_FAILED_DST_UUID; in bnep_process_setup_conn_responce()
664 resp = BNEP_CONN_FAILED_UUID_SIZE; in bnep_process_setup_conn_responce()
669 resp = BNEP_CONN_FAILED; in bnep_process_setup_conn_responce()
690 (*bnep_cb.p_conn_state_cb)(p_bcb->handle, p_bcb->rem_bda, resp, true); in bnep_process_setup_conn_responce()
700 (*bnep_cb.p_conn_state_cb)(p_bcb->handle, p_bcb->rem_bda, resp, false); in bnep_process_setup_conn_responce()
/system/bt/bta/hf_client/
Dbta_hf_client_sco.cc105 enh_esco_params_t resp; in bta_hf_client_sco_conn_rsp() local
112 resp = esco_parameters_for_codec(ESCO_CODEC_CVSD); in bta_hf_client_sco_conn_rsp()
115 resp = esco_parameters_for_codec(ESCO_CODEC_MSBC_T2); in bta_hf_client_sco_conn_rsp()
118 resp = esco_parameters_for_codec(ESCO_CODEC_CVSD); in bta_hf_client_sco_conn_rsp()
128 BTM_EScoConnRsp(p_data->sco_inx, hci_status, &resp); in bta_hf_client_sco_conn_rsp()
/system/chre/platform/slpi/smgr/
Dplatform_sensor.cc777 const sns_smgr_client_request_info_resp_msg_v01& resp, in onClientRequestInfoResponse() argument
783 } else if (resp.resp.sns_result_t != SNS_RESULT_SUCCESS_V01) { in onClientRequestInfoResponse()
785 resp.resp.sns_err_t, sensorId); in onClientRequestInfoResponse()
789 bool otherClientPresent = resp.other_client_present; in onClientRequestInfoResponse()
836 [](UniquePtr<sns_smgr_client_request_info_resp_msg_v01> resp, in onStatusChange()
841 onClientRequestInfoResponse(*resp.get(), in onStatusChange()
1022 } else if (monitorResponse->resp.sns_result_t != SNS_RESULT_SUCCESS_V01) { in setSensorMonitorRequest()
1025 monitorResponse->resp.sns_err_t, sensorId, enable); in setSensorMonitorRequest()
/system/bt/stack/include/
Dbnep_api.h269 extern tBNEP_RESULT BNEP_ConnectResp(uint16_t handle, tBNEP_RESULT resp);