/system/keymaster/ |
H A D | openssl_err.cpp | 34 static keymaster_error_t TranslateEvpError(int reason); 36 static keymaster_error_t TranslateASN1Error(int reason); 37 static keymaster_error_t TranslateCipherError(int reason); 38 static keymaster_error_t TranslatePKCS8Error(int reason); 39 static keymaster_error_t TranslateX509v3Error(int reason); 40 static keymaster_error_t TranslateRsaError(int reason); 50 int reason = ERR_GET_REASON(error); local 53 return static_cast<keymaster_error_t>(reason); 55 return TranslateEvpError(reason); 58 return TranslateASN1Error(reason); 80 TranslatePKCS8Error(int reason) argument 98 TranslateCipherError(int reason) argument 119 TranslateASN1Error(int reason) argument 137 TranslateX509v3Error(int reason) argument 147 TranslateRsaError(int reason) argument 164 TranslateEvpError(int reason) argument [all...] |
/system/bt/stack/smp/ |
H A D | smp_l2c.c | 38 static void smp_connect_callback(UINT16 channel, BD_ADDR bd_addr, BOOLEAN connected, UINT16 reason, 42 static void smp_br_connect_callback(UINT16 channel, BD_ADDR bd_addr, BOOLEAN connected, UINT16 reason, 89 static void smp_connect_callback (UINT16 channel, BD_ADDR bd_addr, BOOLEAN connected, UINT16 reason, argument 126 int_data.reason = reason; 221 UINT8 reason = SMP_SUCCESS; local 225 smp_sm_event(p_cb, SMP_AUTH_CMPL_EVT, &reason); 227 smp_br_state_machine_event(p_cb, SMP_BR_AUTH_CMPL_EVT, &reason); 241 UINT16 reason, tBT_TRANSPORT transport) 278 int_data.reason 240 smp_br_connect_callback(UINT16 channel, BD_ADDR bd_addr, BOOLEAN connected, UINT16 reason, tBT_TRANSPORT transport) argument [all...] |
/system/core/adb/ |
H A D | adb_io.cpp | 42 bool SendFail(int fd, const std::string& reason) { argument 43 return WriteFdExactly(fd, "FAIL", 4) && SendProtocolString(fd, reason);
|
H A D | file_sync_service.cpp | 154 static int fail_message(int s, const char *reason) argument 157 int len = strlen(reason); 159 D("sync: failure: %s\n", reason); 164 !WriteFdExactly(s, reason, len)) {
|
/system/bt/stack/sdp/ |
H A D | sdp_main.c | 592 void sdp_disconnect (tCONN_CB*p_ccb, UINT16 reason) argument 599 && ((reason == SDP_SUCCESS) || (reason == SDP_NO_RECS_MATCH))) 629 if ((reason == SDP_NO_RECS_MATCH) && (p_ccb->p_db->p_first_rec)) 630 reason = SDP_SUCCESS; 640 p_ccb->disconnect_reason = reason; 649 (*p_ccb->p_cb) (reason); 651 (*p_ccb->p_cb2) (reason, p_ccb->user_data);
|
/system/bt/btif/src/ |
H A D | btif_gatt_test.c | 104 BOOLEAN connected, tGATT_DISCONN_REASON reason, tBT_TRANSPORT transport) 108 UNUSED(reason); 103 btif_test_connect_cback(tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, BOOLEAN connected, tGATT_DISCONN_REASON reason, tBT_TRANSPORT transport) argument
|
/system/bt/stack/avdt/ |
H A D | avdt_ad.c | 315 ** the channel and sends it a close event. The reason 323 void avdt_ad_tc_close_ind(tAVDT_TC_TBL *p_tbl, UINT16 reason) argument 328 UNUSED(reason);
|
/system/bt/stack/mcap/ |
H A D | mca_l2c.c | 464 UINT16 reason = L2CAP_DISC_TIMEOUT; local 479 reason = L2CAP_DISC_OK; 480 mca_tc_close_ind(p_tbl, reason);
|
H A D | mca_main.c | 292 ** the channel and sends it a close event. The reason 299 void mca_tc_close_ind(tMCA_TC_TBL *p_tbl, UINT16 reason) argument 306 close.reason = reason;
|
/system/bt/bta/gatt/ |
H A D | bta_gatts_act.c | 45 BOOLEAN connected, tGATT_DISCONN_REASON reason, 915 BOOLEAN connected, tGATT_DISCONN_REASON reason, 922 APPL_TRACE_DEBUG ("bta_gatts_conn_cback gatt_if=%d conn_id=%d connected=%d reason = 0x%04d", 923 gatt_if, conn_id, connected, reason); 932 btif_debug_conn_state(bdaddr, BTIF_DEBUG_DISCONNECTED, reason); 949 cb_data.conn.reason = reason; 914 bta_gatts_conn_cback(tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, BOOLEAN connected, tGATT_DISCONN_REASON reason, tGATT_TRANSPORT transport) argument
|
H A D | bta_gattc_act.c | 52 BOOLEAN connected, tGATT_DISCONN_REASON reason, 778 cb_data.close.reason = BTA_GATT_CONN_NONE; 803 cb_data.close.reason = p_clcb->reason; 818 cb_data.close.status = p_data->int_conn.reason; 819 cb_data.close.reason = p_data->int_conn.reason; 1799 BOOLEAN connected, tGATT_DISCONN_REASON reason, 1804 if (reason != 0) 1806 APPL_TRACE_WARNING("%s() - cif=%d connected=%d conn_id=%d reason 1798 bta_gattc_conn_cback(tGATT_IF gattc_if, BD_ADDR bda, UINT16 conn_id, BOOLEAN connected, tGATT_DISCONN_REASON reason, tBT_TRANSPORT transport) argument [all...] |
/system/bt/bta/hh/ |
H A D | bta_hh_act.c | 828 UINT32 reason = p_data->hid_cback.data; /* Reason for closing (32-bit) */ local 832 conn_dat.status = (reason == HID_ERR_AUTH_FAILED) ? 869 UINT32 reason = p_data->hid_cback.data; /* Reason for closing (32-bit) */ local 877 /* Check reason for closing */ 878 if ((reason & (HID_L2CAP_CONN_FAIL|HID_L2CAP_REQ_FAIL)) || /* Failure to initialize connection (page timeout or l2cap error) */ 879 (reason == HID_ERR_AUTH_FAILED) || /* Authenication error (while initiating) */ 880 (reason == HID_ERR_L2CAP_FAILED)) /* Failure creating l2cap connection */ 884 conn_dat.status = (reason == HID_ERR_AUTH_FAILED) ? BTA_HH_ERR_AUTH_FAILED : BTA_HH_ERR;
|
/system/bt/stack/gatt/ |
H A D | att_protocol.c | 107 BT_HDR *attp_build_err_cmd(UINT8 cmd_code, UINT16 err_handle, UINT8 reason) argument 119 UINT8_TO_STREAM (p, reason); 418 p_cmd = attp_build_err_cmd(p_msg->error.cmd_code, p_msg->error.handle, p_msg->error.reason);
|
H A D | gatt_attr.c | 45 tGATT_DISCONN_REASON reason, tBT_TRANSPORT transport); 233 BOOLEAN connected, tGATT_DISCONN_REASON reason, 238 GATT_TRACE_EVENT ("%s: from %08x%04x connected:%d conn_id=%d reason = 0x%04x", __FUNCTION__, 240 (bda[4]<<8)+bda[5], connected, conn_id, reason); 232 gatt_connect_cback(tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, BOOLEAN connected, tGATT_DISCONN_REASON reason, tBT_TRANSPORT transport) argument
|
H A D | gatt_cl.c | 519 UINT16 handle, UINT8 reason) 521 tGATT_STATUS status = (tGATT_STATUS) reason; 526 GATT_TRACE_DEBUG("gatt_proc_disc_error_rsp reason: %02x cmd_code %04x", reason, opcode); 534 if (reason == GATT_NOT_FOUND) 561 UINT8 opcode, reason, * p= p_data; local 571 STREAM_TO_UINT8(reason, p); 575 gatt_proc_disc_error_rsp(p_tcb, p_clcb, opcode, handle, reason); 585 p_clcb->status = reason; 593 (reason 518 gatt_proc_disc_error_rsp(tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb, UINT8 opcode, UINT16 handle, UINT8 reason) argument [all...] |
H A D | gatt_main.c | 48 UINT16 reason, tBT_TRANSPORT transport); 406 UINT16 reason, tBT_TRANSPORT transport) 474 gatt_cleanup_upon_disc(bd_addr, reason, transport); 805 UINT16 reason; local 820 /* if ACL link is still up, no reason is logged, l2cap is disconnect from peer */ 821 if ((reason = L2CA_GetDisconnectReason(p_tcb->peer_bda, p_tcb->transport)) == 0) 822 reason = GATT_CONN_TERMINATE_PEER_USER; 825 gatt_cleanup_upon_disc(p_tcb->peer_bda, reason, GATT_TRANSPORT_BR_EDR); 842 UINT16 reason; local 856 /* if ACL link is still up, no reason i 405 gatt_le_connect_cback(UINT16 chan, BD_ADDR bd_addr, BOOLEAN connected, UINT16 reason, tBT_TRANSPORT transport) argument [all...] |
H A D | gatt_sr.c | 702 tGATT_STATUS reason = GATT_SUCCESS; local 716 reason = GATT_INVALID_HANDLE; 732 reason = GATT_INVALID_PDU; 738 reason = GATT_INVALID_PDU; 742 reason = GATT_INVALID_PDU; 749 return reason; 764 UINT8 reason = GATT_INVALID_PDU; local 771 reason = gatts_validate_packet_format(op_code, &len, &p_data, &uuid, &s_hdl, &e_hdl); 773 if (reason == GATT_SUCCESS) 780 reason 835 UINT8 reason = GATT_INVALID_PDU, *p; local 984 tGATT_STATUS reason, ret; local 1188 tGATT_STATUS reason; local [all...] |
/system/bt/stack/hid/ |
H A D | hidh_conn.c | 188 p_dev->conn.disc_reason = HID_ERR_AUTH_FAILED; /* Save reason for disconnecting */ 265 p_hcon->disc_reason = HID_L2CAP_CONN_FAIL; /* In case disconnection occurs before security is completed, then set CLOSE_EVT reason code to 'connection failure' */ 324 UINT32 reason; local 353 p_dev->conn.disc_reason = HID_ERR_AUTH_FAILED; /* Save reason for disconnecting */ 374 UINT32 reason; local 413 reason = HID_L2CAP_CONN_FAIL | (UINT32) result ; 414 hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, reason, NULL ) ; 423 p_hcon->disc_reason = HID_L2CAP_CONN_FAIL; /* In case disconnection occurs before security is completed, then set CLOSE_EVT reason code to "connection failure" */ 455 UINT32 reason; local 491 p_hcon->disc_reason = HID_L2CAP_CONN_FAIL; /* Reset initial reason fo 539 UINT32 reason; local [all...] |
/system/bt/stack/srvc/ |
H A D | srvc_eng.c | 36 tGATT_DISCONN_REASON reason, tBT_TRANSPORT transport); 354 BOOLEAN connected, tGATT_DISCONN_REASON reason, tBT_TRANSPORT transport) 359 GATT_TRACE_EVENT ("srvc_eng_connect_cback: from %08x%04x connected:%d conn_id=%d reason = 0x%04x", 361 (bda[4]<<8)+bda[5], connected, conn_id, reason); 353 srvc_eng_connect_cback(tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, BOOLEAN connected, tGATT_DISCONN_REASON reason, tBT_TRANSPORT transport) argument
|
/system/extras/latencytop/ |
H A D | latencytop.c | 39 char reason[MAX_LINE]; member in struct:latency_entry 55 static struct latency_entry *find_latency_entry(struct latency_entry *e, char *reason); 294 static struct latency_entry *find_latency_entry(struct latency_entry *head, char *reason) { argument 300 if (!strcmp(e->reason, reason)) 330 char reason[MAX_LINE]; local 346 sscanf(line, "%ld %ld %ld %s", &count, &total, &max, reason); 348 e = find_latency_entry(head, reason); 359 strcpy(e->reason, reason); [all...] |
/system/bt/stack/gap/ |
H A D | gap_ble.c | 47 tGATT_DISCONN_REASON reason, tGATT_TRANSPORT transport); 582 BOOLEAN connected, tGATT_DISCONN_REASON reason, 581 gap_ble_c_connect_cback(tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, BOOLEAN connected, tGATT_DISCONN_REASON reason, tGATT_TRANSPORT transport) argument
|
/system/bt/stack/l2cap/ |
H A D | l2c_ble.c | 211 ** Description This function returns the disconnect reason code. 213 ** Returns disconnect reason 219 UINT16 reason = 0; local 222 reason = p_lcb->disc_reason; 224 L2CAP_TRACE_DEBUG ("L2CA_GetDisconnectReason=%d ",reason); 226 return reason;
|
H A D | l2c_link.c | 139 /* Reject the connection with ACL Connection Already exist reason */ 360 BOOLEAN l2c_link_hci_disc_comp (UINT16 handle, UINT8 reason) argument 379 /* otherwise save a new reason */ 381 btm_cb.acl_disc_reason = reason; 407 l2c_csm_execute (p_ccb, L2CEVT_LP_DISCONNECT_IND, &reason);
|
/system/core/libnetutils/ |
H A D | dhcpclient.c | 81 int fatal(const char *reason) argument 83 printerr("%s: %s\n", reason, strerror(errno));
|
/system/bt/stack/btm/ |
H A D | btm_sco.c | 1094 void btm_sco_removed (UINT16 hci_handle, UINT8 reason) argument 1101 btm_cb.sco_cb.sco_disc_reason = reason; 1249 ** Description This function is returns the reason why an (e)SCO connection 1253 ** Returns HCI reason or BTM_INVALID_SCO_DISC_REASON if not set.
|