Home
last modified time | relevance | path

Searched refs:client_cb (Results 1 – 10 of 10) sorted by relevance

/system/bt/bta/hf_client/
Dbta_hf_client_sco.cc50 static bool bta_hf_client_sco_remove(tBTA_HF_CLIENT_CB* client_cb) { in bta_hf_client_sco_remove() argument
56 if (client_cb->sco_idx != BTM_INVALID_SCO_INDEX) { in bta_hf_client_sco_remove()
57 status = BTM_RemoveSco(client_cb->sco_idx); in bta_hf_client_sco_remove()
60 client_cb->sco_idx, status); in bta_hf_client_sco_remove()
67 client_cb->sco_idx = BTM_INVALID_SCO_INDEX; in bta_hf_client_sco_remove()
83 void bta_hf_client_cback_sco(tBTA_HF_CLIENT_CB* client_cb, uint8_t event) { in bta_hf_client_cback_sco() argument
87 evt.bd_addr = client_cb->peer_addr; in bta_hf_client_cback_sco()
103 static void bta_hf_client_sco_conn_rsp(tBTA_HF_CLIENT_CB* client_cb, in bta_hf_client_sco_conn_rsp() argument
110 if (client_cb->sco_state == BTA_HF_CLIENT_SCO_LISTEN_ST) { in bta_hf_client_sco_conn_rsp()
114 } else if (client_cb->negotiated_codec == BTA_AG_CODEC_MSBC) { in bta_hf_client_sco_conn_rsp()
[all …]
Dbta_hf_client_act.cc52 tBTA_HF_CLIENT_CB* client_cb = in bta_hf_client_start_close() local
54 if (client_cb == NULL) { in bta_hf_client_start_close()
61 bta_dm_pm_active(client_cb->peer_addr); in bta_hf_client_start_close()
62 L2CA_SetIdleTimeoutByBdAddr(client_cb->peer_addr, 0, BT_TRANSPORT_BR_EDR); in bta_hf_client_start_close()
65 if (client_cb->sco_state == BTA_HF_CLIENT_SCO_OPEN_ST) { in bta_hf_client_start_close()
66 client_cb->sco_close_rfc = true; in bta_hf_client_start_close()
72 bta_hf_client_sco_shutdown(client_cb); in bta_hf_client_start_close()
86 tBTA_HF_CLIENT_CB* client_cb = in bta_hf_client_start_open() local
88 if (client_cb == NULL) { in bta_hf_client_start_open()
96 client_cb->peer_addr = p_data->api_open.bd_addr; in bta_hf_client_start_open()
[all …]
Dbta_hf_client_at.cc106 static void bta_hf_client_handle_ok(tBTA_HF_CLIENT_CB* client_cb);
108 static void bta_hf_client_clear_queued_at(tBTA_HF_CLIENT_CB* client_cb) { in bta_hf_client_clear_queued_at() argument
109 tBTA_HF_CLIENT_AT_QCMD* cur = client_cb->at_cb.queued_cmd; in bta_hf_client_clear_queued_at()
118 client_cb->at_cb.queued_cmd = NULL; in bta_hf_client_clear_queued_at()
121 static void bta_hf_client_queue_at(tBTA_HF_CLIENT_CB* client_cb, in bta_hf_client_queue_at() argument
134 if (client_cb->at_cb.queued_cmd != NULL) { in bta_hf_client_queue_at()
135 tBTA_HF_CLIENT_AT_QCMD* qcmd = client_cb->at_cb.queued_cmd; in bta_hf_client_queue_at()
141 client_cb->at_cb.queued_cmd = new_cmd; in bta_hf_client_queue_at()
146 tBTA_HF_CLIENT_CB* client_cb = (tBTA_HF_CLIENT_CB*)data; in bta_hf_client_at_resp_timer_cback() local
147 if (client_cb->at_cb.current_cmd == BTA_HF_CLIENT_AT_CNUM) { in bta_hf_client_at_resp_timer_cback()
[all …]
Dbta_hf_client_main.cc31 void bta_hf_client_cb_init(tBTA_HF_CLIENT_CB* client_cb, uint16_t handle);
294 void bta_hf_client_cb_init(tBTA_HF_CLIENT_CB* client_cb, uint16_t handle) { in bta_hf_client_cb_init() argument
298 alarm_free(client_cb->collision_timer); in bta_hf_client_cb_init()
301 client_cb->enabled_hf_indicators.clear(); in bta_hf_client_cb_init()
302 client_cb->peer_hf_indicators.clear(); in bta_hf_client_cb_init()
306 *client_cb = {}; in bta_hf_client_cb_init()
309 client_cb->collision_timer = alarm_new("bta_hf_client.scb_collision_timer"); in bta_hf_client_cb_init()
310 client_cb->handle = handle; in bta_hf_client_cb_init()
311 client_cb->sco_idx = BTM_INVALID_SCO_INDEX; in bta_hf_client_cb_init()
324 void bta_hf_client_resume_open(tBTA_HF_CLIENT_CB* client_cb) { in bta_hf_client_resume_open() argument
[all …]
Dbta_hf_client_rfc.cc49 tBTA_HF_CLIENT_CB* client_cb = in bta_hf_client_port_cback() local
51 if (client_cb == NULL) { in bta_hf_client_port_cback()
59 p_buf->hdr.layer_specific = client_cb->handle; in bta_hf_client_port_cback()
74 tBTA_HF_CLIENT_CB* client_cb = in bta_hf_client_mgmt_cback() local
81 if (code != PORT_SUCCESS && client_cb != NULL && in bta_hf_client_mgmt_cback()
82 port_handle != client_cb->conn_handle) { in bta_hf_client_mgmt_cback()
92 if (client_cb && port_handle == client_cb->conn_handle) { /* out conn */ in bta_hf_client_mgmt_cback()
110 client_cb = bta_hf_client_find_cb_by_handle(tmp_handle); in bta_hf_client_mgmt_cback()
113 if (client_cb == NULL) { in bta_hf_client_mgmt_cback()
118 client_cb->conn_handle = port_handle; in bta_hf_client_mgmt_cback()
[all …]
Dbta_hf_client_int.h223 extern void bta_hf_client_slc_seq(tBTA_HF_CLIENT_CB* client_cb, bool error);
230 extern void bta_hf_client_resume_open(tBTA_HF_CLIENT_CB* client_cb);
243 extern void bta_hf_client_create_record(tBTA_HF_CLIENT_CB_ARR* client_cb,
245 extern void bta_hf_client_del_record(tBTA_HF_CLIENT_CB_ARR* client_cb);
246 extern bool bta_hf_client_sdp_find_attr(tBTA_HF_CLIENT_CB* client_cb);
247 extern void bta_hf_client_do_disc(tBTA_HF_CLIENT_CB* client_cb);
263 extern void bta_hf_client_sco_shutdown(tBTA_HF_CLIENT_CB* client_cb);
264 extern void bta_hf_client_cback_sco(tBTA_HF_CLIENT_CB* client_cb,
268 extern void bta_hf_client_at_parse(tBTA_HF_CLIENT_CB* client_cb, char* buf,
270 extern void bta_hf_client_send_at_brsf(tBTA_HF_CLIENT_CB* client_cb,
[all …]
Dbta_hf_client_sdp.cc65 tBTA_HF_CLIENT_CB* client_cb = (tBTA_HF_CLIENT_CB*)data; in bta_hf_client_sdp_cback() local
68 if (client_cb->role == BTA_HF_CLIENT_ACP) in bta_hf_client_sdp_cback()
74 p_buf->hdr.layer_specific = client_cb->handle; in bta_hf_client_sdp_cback()
200 void bta_hf_client_del_record(tBTA_HF_CLIENT_CB_ARR* client_cb) { in bta_hf_client_del_record() argument
203 if (client_cb->sdp_handle != 0) { in bta_hf_client_del_record()
204 SDP_DeleteRecord(client_cb->sdp_handle); in bta_hf_client_del_record()
205 client_cb->sdp_handle = 0; in bta_hf_client_del_record()
206 BTM_FreeSCN(client_cb->scn); in bta_hf_client_del_record()
207 RFCOMM_ClearSecurityRecord(client_cb->scn); in bta_hf_client_del_record()
222 bool bta_hf_client_sdp_find_attr(tBTA_HF_CLIENT_CB* client_cb) { in bta_hf_client_sdp_find_attr() argument
[all …]
/system/nfc/src/nfc/include/
Dllcp_int.h226 client_cb[LLCP_MAX_CLIENT]; /* Application's registration for client */ member
/system/nfc/src/nfc/llcp/
Dllcp_api.cc496 if (llcp_cb.client_cb[sap].p_app_cback == nullptr) { in LLCP_RegisterClient()
497 p_app_cb = &llcp_cb.client_cb[sap]; in LLCP_RegisterClient()
Dllcp_util.cc884 p_app_cb = &llcp_cb.client_cb[local_sap - LLCP_LOWER_BOUND_LOCAL_SAP]; in llcp_util_get_app_cb()