/hardware/interfaces/gatekeeper/1.0/default/ |
D | Gatekeeper.cpp | 61 GatekeeperResponse rsp; in enroll() local 71 rsp.data.setToExternal(enrolled_password_handle, in enroll() 74 rsp.code = GatekeeperStatusCode::STATUS_OK; in enroll() 76 rsp.timeout = ret; in enroll() 77 rsp.code = GatekeeperStatusCode::ERROR_RETRY_TIMEOUT; in enroll() 79 rsp.code = GatekeeperStatusCode::ERROR_GENERAL_FAILURE; in enroll() 81 cb(rsp); in enroll() 91 GatekeeperResponse rsp; in verify() local 102 rsp.data.setToExternal(auth_token, auth_token_length, true); in verify() 104 rsp.code = GatekeeperStatusCode::STATUS_REENROLL; in verify() [all …]
|
/hardware/interfaces/gatekeeper/1.0/vts/functional/ |
D | VtsHalGatekeeperV1_0TargetTest.cpp | 58 static const hw_auth_token_t *toAuthToken(GatekeeperResponse &rsp) { in toAuthToken() argument 60 reinterpret_cast<hw_auth_token_t *>(rsp.data.data()); in toAuthToken() 61 const size_t auth_token_size = rsp.data.size(); in toAuthToken() 100 void doEnroll(GatekeeperRequest &req, GatekeeperResponse &rsp) { in doEnroll() argument 104 [&rsp](const GatekeeperResponse &cbRsp) { rsp = cbRsp; }); in doEnroll() 106 if (rsp.code != GatekeeperStatusCode::ERROR_RETRY_TIMEOUT) break; in doEnroll() 112 void doVerify(GatekeeperRequest &req, GatekeeperResponse &rsp) { in doVerify() argument 116 [&rsp](const GatekeeperResponse &cb_rsp) { rsp = cb_rsp; }); in doVerify() 118 if (rsp.code != GatekeeperStatusCode::ERROR_RETRY_TIMEOUT) break; in doVerify() 124 void doDeleteUser(GatekeeperResponse &rsp) { in doDeleteUser() argument [all …]
|
/hardware/qcom/bt/msm8996/libbt-vendor/src/ |
D | hw_rome.c | 134 int get_vs_hci_event(unsigned char *rsp) in get_vs_hci_event() argument 145 if( (rsp[EVENTCODE_OFFSET] == VSEVENT_CODE) || (rsp[EVENTCODE_OFFSET] == EVT_CMD_COMPLETE)) in get_vs_hci_event() 153 ALOGI("%s: length 0x%x resp 0x%x type 0x%x", __FUNCTION__, paramlen = rsp[EVT_PLEN], in get_vs_hci_event() 154 rsp[CMD_RSP_OFFSET], rsp[RSP_TYPE_OFFSET]); in get_vs_hci_event() 157 switch ( rsp[CMD_RSP_OFFSET] ) in get_vs_hci_event() 161 switch(rsp[RSP_TYPE_OFFSET]) in get_vs_hci_event() 166 productid = (unsigned int)(rsp[PATCH_PROD_ID_OFFSET +3] << 24 | in get_vs_hci_event() 167 rsp[PATCH_PROD_ID_OFFSET+2] << 16 | in get_vs_hci_event() 168 rsp[PATCH_PROD_ID_OFFSET+1] << 8 | in get_vs_hci_event() 169 rsp[PATCH_PROD_ID_OFFSET] )); in get_vs_hci_event() [all …]
|
D | hw_ar3k.c | 392 unsigned char cmd[MAX_CMD_LEN], rsp[HCI_MAX_EVENT_SIZE]; in set_cntrlr_baud() local 416 if (read_hci_event(fd, rsp, sizeof(rsp)) < 0) in set_cntrlr_baud() 1060 unsigned char rsp[HCI_MAX_EVENT_SIZE]; in ath3k_init() local 1118 if (read_hci_event(fd, rsp, sizeof(rsp)) < 0) { in ath3k_init() 1137 if (read_hci_event(fd, rsp, sizeof(rsp)) < 0) { in ath3k_init()
|
/hardware/qcom/sdm845/bt/libbt-vendor/src/ |
D | hw_rome.c | 125 int get_vs_hci_event(unsigned char *rsp) in get_vs_hci_event() argument 138 if( (rsp[EVENTCODE_OFFSET] == VSEVENT_CODE) || (rsp[EVENTCODE_OFFSET] == EVT_CMD_COMPLETE)) in get_vs_hci_event() 146 ALOGI("%s: Parameter Length: 0x%x", __FUNCTION__, paramlen = rsp[EVT_PLEN]); in get_vs_hci_event() 147 ALOGI("%s: Command response: 0x%x", __FUNCTION__, rsp[CMD_RSP_OFFSET]); in get_vs_hci_event() 148 ALOGI("%s: Response type : 0x%x", __FUNCTION__, rsp[RSP_TYPE_OFFSET]); in get_vs_hci_event() 151 switch ( rsp[CMD_RSP_OFFSET] ) in get_vs_hci_event() 155 switch(rsp[RSP_TYPE_OFFSET]) in get_vs_hci_event() 160 productid = (unsigned int)(rsp[PATCH_PROD_ID_OFFSET +3] << 24 | in get_vs_hci_event() 161 rsp[PATCH_PROD_ID_OFFSET+2] << 16 | in get_vs_hci_event() 162 rsp[PATCH_PROD_ID_OFFSET+1] << 8 | in get_vs_hci_event() [all …]
|
D | hw_ar3k.c | 392 unsigned char cmd[MAX_CMD_LEN], rsp[HCI_MAX_EVENT_SIZE]; in set_cntrlr_baud() local 416 if (read_hci_event(fd, rsp, sizeof(rsp)) < 0) in set_cntrlr_baud() 1060 unsigned char rsp[HCI_MAX_EVENT_SIZE]; in ath3k_init() local 1118 if (read_hci_event(fd, rsp, sizeof(rsp)) < 0) { in ath3k_init() 1137 if (read_hci_event(fd, rsp, sizeof(rsp)) < 0) { in ath3k_init()
|
/hardware/qcom/bt/msm8909w_3100/libbt-vendor/src/ |
D | hw_rome.c | 124 int get_vs_hci_event(unsigned char *rsp) in get_vs_hci_event() argument 137 if( (rsp[EVENTCODE_OFFSET] == VSEVENT_CODE) || (rsp[EVENTCODE_OFFSET] == EVT_CMD_COMPLETE)) in get_vs_hci_event() 145 ALOGI("%s: Parameter Length: 0x%x", __FUNCTION__, paramlen = rsp[EVT_PLEN]); in get_vs_hci_event() 146 ALOGI("%s: Command response: 0x%x", __FUNCTION__, rsp[CMD_RSP_OFFSET]); in get_vs_hci_event() 147 ALOGI("%s: Response type : 0x%x", __FUNCTION__, rsp[RSP_TYPE_OFFSET]); in get_vs_hci_event() 150 switch ( rsp[CMD_RSP_OFFSET] ) in get_vs_hci_event() 154 switch(rsp[RSP_TYPE_OFFSET]) in get_vs_hci_event() 159 productid = (unsigned int)(rsp[PATCH_PROD_ID_OFFSET +3] << 24 | in get_vs_hci_event() 160 rsp[PATCH_PROD_ID_OFFSET+2] << 16 | in get_vs_hci_event() 161 rsp[PATCH_PROD_ID_OFFSET+1] << 8 | in get_vs_hci_event() [all …]
|
D | hw_ar3k.c | 390 unsigned char cmd[MAX_CMD_LEN], rsp[HCI_MAX_EVENT_SIZE]; in set_cntrlr_baud() local 414 if (read_hci_event(fd, rsp, sizeof(rsp)) < 0) in set_cntrlr_baud() 1058 unsigned char rsp[HCI_MAX_EVENT_SIZE]; in ath3k_init() local 1116 if (read_hci_event(fd, rsp, sizeof(rsp)) < 0) { in ath3k_init() 1135 if (read_hci_event(fd, rsp, sizeof(rsp)) < 0) { in ath3k_init()
|
/hardware/qcom/bt/msm8909/libbt-vendor/src/ |
D | hw_rome.c | 120 int get_vs_hci_event(unsigned char *rsp) in get_vs_hci_event() argument 132 if( (rsp[EVENTCODE_OFFSET] == VSEVENT_CODE) || (rsp[EVENTCODE_OFFSET] == EVT_CMD_COMPLETE)) in get_vs_hci_event() 140 ALOGI("%s: Parameter Length: 0x%x", __FUNCTION__, paramlen = rsp[EVT_PLEN]); in get_vs_hci_event() 141 ALOGI("%s: Command response: 0x%x", __FUNCTION__, rsp[CMD_RSP_OFFSET]); in get_vs_hci_event() 142 ALOGI("%s: Response type : 0x%x", __FUNCTION__, rsp[RSP_TYPE_OFFSET]); in get_vs_hci_event() 145 switch ( rsp[CMD_RSP_OFFSET] ) in get_vs_hci_event() 149 switch(rsp[RSP_TYPE_OFFSET]) in get_vs_hci_event() 154 productid = (unsigned int)(rsp[PATCH_PROD_ID_OFFSET +3] << 24 | in get_vs_hci_event() 155 rsp[PATCH_PROD_ID_OFFSET+2] << 16 | in get_vs_hci_event() 156 rsp[PATCH_PROD_ID_OFFSET+1] << 8 | in get_vs_hci_event() [all …]
|
D | hw_ar3k.c | 388 unsigned char cmd[MAX_CMD_LEN], rsp[HCI_MAX_EVENT_SIZE]; in set_cntrlr_baud() local 412 if (read_hci_event(fd, rsp, sizeof(rsp)) < 0) in set_cntrlr_baud() 1054 unsigned char rsp[HCI_MAX_EVENT_SIZE]; in ath3k_init() local 1112 if (read_hci_event(fd, rsp, sizeof(rsp)) < 0) { in ath3k_init() 1131 if (read_hci_event(fd, rsp, sizeof(rsp)) < 0) { in ath3k_init()
|
/hardware/qcom/bt/msm8998/libbt-vendor/src/ |
D | hw_rome.c | 125 int get_vs_hci_event(unsigned char *rsp) in get_vs_hci_event() argument 138 if( (rsp[EVENTCODE_OFFSET] == VSEVENT_CODE) || (rsp[EVENTCODE_OFFSET] == EVT_CMD_COMPLETE)) in get_vs_hci_event() 146 ALOGI("%s: Parameter Length: 0x%x", __FUNCTION__, paramlen = rsp[EVT_PLEN]); in get_vs_hci_event() 147 ALOGI("%s: Command response: 0x%x", __FUNCTION__, rsp[CMD_RSP_OFFSET]); in get_vs_hci_event() 148 ALOGI("%s: Response type : 0x%x", __FUNCTION__, rsp[RSP_TYPE_OFFSET]); in get_vs_hci_event() 151 switch ( rsp[CMD_RSP_OFFSET] ) in get_vs_hci_event() 155 switch(rsp[RSP_TYPE_OFFSET]) in get_vs_hci_event() 159 productid = (unsigned int)(rsp[PATCH_PROD_ID_OFFSET +3] << 24 | in get_vs_hci_event() 160 rsp[PATCH_PROD_ID_OFFSET+2] << 16 | in get_vs_hci_event() 161 rsp[PATCH_PROD_ID_OFFSET+1] << 8 | in get_vs_hci_event() [all …]
|
D | hw_ar3k.c | 394 unsigned char cmd[MAX_CMD_LEN], rsp[HCI_MAX_EVENT_SIZE]; in set_cntrlr_baud() local 418 if (read_hci_event(fd, rsp, sizeof(rsp)) < 0) in set_cntrlr_baud() 1062 unsigned char rsp[HCI_MAX_EVENT_SIZE]; in ath3k_init() local 1120 if (read_hci_event(fd, rsp, sizeof(rsp)) < 0) { in ath3k_init() 1139 if (read_hci_event(fd, rsp, sizeof(rsp)) < 0) { in ath3k_init()
|
/hardware/qcom/bt/msm8992/libbt-vendor/src/ |
D | hw_rome.c | 118 int get_vs_hci_event(unsigned char *rsp) in get_vs_hci_event() argument 130 if( (rsp[EVENTCODE_OFFSET] == VSEVENT_CODE) || (rsp[EVENTCODE_OFFSET] == EVT_CMD_COMPLETE)) in get_vs_hci_event() 138 ALOGI("%s: length 0x%x resp 0x%x type 0x%x", __FUNCTION__, paramlen = rsp[EVT_PLEN], in get_vs_hci_event() 139 rsp[CMD_RSP_OFFSET], rsp[RSP_TYPE_OFFSET]); in get_vs_hci_event() 142 switch ( rsp[CMD_RSP_OFFSET] ) in get_vs_hci_event() 146 switch(rsp[RSP_TYPE_OFFSET]) in get_vs_hci_event() 151 productid = (unsigned int)(rsp[PATCH_PROD_ID_OFFSET +3] << 24 | in get_vs_hci_event() 152 rsp[PATCH_PROD_ID_OFFSET+2] << 16 | in get_vs_hci_event() 153 rsp[PATCH_PROD_ID_OFFSET+1] << 8 | in get_vs_hci_event() 154 rsp[PATCH_PROD_ID_OFFSET] )); in get_vs_hci_event() [all …]
|
D | hw_ar3k.c | 388 unsigned char cmd[MAX_CMD_LEN], rsp[HCI_MAX_EVENT_SIZE]; in set_cntrlr_baud() local 412 if (read_hci_event(fd, rsp, sizeof(rsp)) < 0) in set_cntrlr_baud() 1054 unsigned char rsp[HCI_MAX_EVENT_SIZE]; in ath3k_init() local 1112 if (read_hci_event(fd, rsp, sizeof(rsp)) < 0) { in ath3k_init() 1131 if (read_hci_event(fd, rsp, sizeof(rsp)) < 0) { in ath3k_init()
|
/hardware/ril/libril/ |
D | RilSapSocket.cpp | 244 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 …]
|
D | sap_service.cpp | 766 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 …]
|
D | sap_service.h | 28 void processResponse(MsgHeader *rsp, RilSapSocket *sapSocket); 29 void processUnsolResponse(MsgHeader *rsp, RilSapSocket *sapSocket);
|
/hardware/nxp/nfc/halimpl/utils/ |
D | NfccPowerTracker.cpp | 166 void NfccPowerTracker::ProcessNtf(uint8_t *rsp, uint16_t rsp_len) { in ProcessNtf() argument 170 if ((rsp[0] == 0x6F && rsp[1] == 0x05)) { in ProcessNtf() 171 ProcessPowerTrackNtf(rsp, rsp_len); in ProcessNtf() 172 } else if (rsp[0] == 0x61 && rsp[1] == 0x05) { in ProcessNtf() 179 } else if (rsp[0] == 0x61 && rsp[1] == 0x06) { in ProcessNtf() 204 void NfccPowerTracker::ProcessPowerTrackNtf(uint8_t *rsp, uint16_t rsp_len) { in ProcessPowerTrackNtf() argument 228 uint16_t sPollCount = (TIMER_COUNT_MASK & ((rsp[5] << 8) | rsp[4])); in ProcessPowerTrackNtf() 247 if (rsp[3]) { in ProcessPowerTrackNtf() 257 if (rsp[3]) { in ProcessPowerTrackNtf()
|
D | NfccPowerTracker.h | 145 void ProcessPowerTrackNtf(uint8_t *rsp, uint16_t rsp_len);
|
/hardware/interfaces/contexthub/1.0/default/ |
D | Contexthub.cpp | 242 status_response_t *rsp) { in isValidOsStatus() argument 245 rsp->result = msg[0]; in isValidOsStatus() 249 if (msg == nullptr || msgLen != sizeof(*rsp)) { in isValidOsStatus() 256 memcpy(rsp, msg, sizeof(*rsp)); in isValidOsStatus() 275 struct status_response_t rsp; in handleOsMessage() local 277 if (isValidOsStatus(msg, msgLen, &rsp) && rsp.result == 0) { in handleOsMessage()
|