Searched defs:reason (Results 1 - 25 of 43) sorted by relevance

12

/system/keymaster/
H A Dopenssl_err.cpp34 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 Dsmp_l2c.c38 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 Dadb_io.cpp42 bool SendFail(int fd, const std::string& reason) { argument
43 return WriteFdExactly(fd, "FAIL", 4) && SendProtocolString(fd, reason);
H A Dfile_sync_service.cpp154 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 Dsdp_main.c592 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 Dbtif_gatt_test.c104 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 Davdt_ad.c315 ** 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 Dmca_l2c.c464 UINT16 reason = L2CAP_DISC_TIMEOUT; local
479 reason = L2CAP_DISC_OK;
480 mca_tc_close_ind(p_tbl, reason);
H A Dmca_main.c292 ** 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 Dbta_gatts_act.c45 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 Dbta_gattc_act.c52 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 Dbta_hh_act.c828 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 Datt_protocol.c107 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 Dgatt_attr.c45 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 Dgatt_cl.c519 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 Dgatt_main.c48 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 Dgatt_sr.c702 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 Dhidh_conn.c188 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 Dsrvc_eng.c36 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 Dlatencytop.c39 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 Dgap_ble.c47 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 Dl2c_ble.c211 ** 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 Dl2c_link.c139 /* 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 Ddhcpclient.c81 int fatal(const char *reason) argument
83 printerr("%s: %s\n", reason, strerror(errno));
/system/bt/stack/btm/
H A Dbtm_sco.c1094 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.

Completed in 462 milliseconds

12