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 if (client_cb->negotiated_codec == BTA_AG_CODEC_MSBC) { in bta_hf_client_sco_conn_rsp()
[all …]
Dbta_hf_client_act.cc57 tBTA_HF_CLIENT_CB* client_cb = in bta_hf_client_start_close() local
59 if (client_cb == NULL) { in bta_hf_client_start_close()
66 bta_dm_pm_active(client_cb->peer_addr); in bta_hf_client_start_close()
67 L2CA_SetIdleTimeoutByBdAddr(client_cb->peer_addr, 0, BT_TRANSPORT_BR_EDR); in bta_hf_client_start_close()
70 if (client_cb->sco_state == BTA_HF_CLIENT_SCO_OPEN_ST) { in bta_hf_client_start_close()
71 client_cb->sco_close_rfc = true; in bta_hf_client_start_close()
77 bta_hf_client_sco_shutdown(client_cb); in bta_hf_client_start_close()
91 tBTA_HF_CLIENT_CB* client_cb = in bta_hf_client_start_open() local
93 if (client_cb == NULL) { in bta_hf_client_start_open()
101 client_cb->peer_addr = p_data->api_open.bd_addr; in bta_hf_client_start_open()
[all …]
Dbta_hf_client_at.cc104 static void bta_hf_client_handle_ok(tBTA_HF_CLIENT_CB* client_cb);
106 static void bta_hf_client_clear_queued_at(tBTA_HF_CLIENT_CB* client_cb) { in bta_hf_client_clear_queued_at() argument
107 tBTA_HF_CLIENT_AT_QCMD* cur = client_cb->at_cb.queued_cmd; in bta_hf_client_clear_queued_at()
116 client_cb->at_cb.queued_cmd = NULL; in bta_hf_client_clear_queued_at()
119 static void bta_hf_client_queue_at(tBTA_HF_CLIENT_CB* client_cb, in bta_hf_client_queue_at() argument
132 if (client_cb->at_cb.queued_cmd != NULL) { in bta_hf_client_queue_at()
133 tBTA_HF_CLIENT_AT_QCMD* qcmd = client_cb->at_cb.queued_cmd; in bta_hf_client_queue_at()
139 client_cb->at_cb.queued_cmd = new_cmd; in bta_hf_client_queue_at()
144 tBTA_HF_CLIENT_CB* client_cb = (tBTA_HF_CLIENT_CB*)data; in bta_hf_client_at_resp_timer_cback() local
145 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.cc36 void bta_hf_client_cb_init(tBTA_HF_CLIENT_CB* client_cb, uint16_t handle);
299 void bta_hf_client_cb_init(tBTA_HF_CLIENT_CB* client_cb, uint16_t handle) { in bta_hf_client_cb_init() argument
303 alarm_free(client_cb->collision_timer); in bta_hf_client_cb_init()
306 memset(client_cb, 0, sizeof(tBTA_HF_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
328 if (client_cb->state == BTA_HF_CLIENT_INIT_ST) { in bta_hf_client_resume_open()
329 client_cb->state = BTA_HF_CLIENT_OPENING_ST; in bta_hf_client_resume_open()
[all …]
Dbta_hf_client_rfc.cc50 tBTA_HF_CLIENT_CB* client_cb = in bta_hf_client_port_cback() local
52 if (client_cb == NULL) { in bta_hf_client_port_cback()
60 p_buf->hdr.layer_specific = client_cb->handle; in bta_hf_client_port_cback()
75 tBTA_HF_CLIENT_CB* client_cb = in bta_hf_client_mgmt_cback() local
82 if (code != PORT_SUCCESS && client_cb != NULL && in bta_hf_client_mgmt_cback()
83 port_handle != client_cb->conn_handle) { in bta_hf_client_mgmt_cback()
93 if (client_cb && port_handle == client_cb->conn_handle) { /* out conn */ in bta_hf_client_mgmt_cback()
111 client_cb = bta_hf_client_find_cb_by_handle(tmp_handle); in bta_hf_client_mgmt_cback()
114 if (client_cb == NULL) { in bta_hf_client_mgmt_cback()
119 client_cb->conn_handle = port_handle; in bta_hf_client_mgmt_cback()
[all …]
Dbta_hf_client_int.h215 extern void bta_hf_client_slc_seq(tBTA_HF_CLIENT_CB* client_cb, bool error);
222 extern void bta_hf_client_resume_open(tBTA_HF_CLIENT_CB* client_cb);
236 extern void bta_hf_client_create_record(tBTA_HF_CLIENT_CB_ARR* client_cb,
238 extern void bta_hf_client_del_record(tBTA_HF_CLIENT_CB_ARR* client_cb);
239 extern bool bta_hf_client_sdp_find_attr(tBTA_HF_CLIENT_CB* client_cb);
240 extern void bta_hf_client_do_disc(tBTA_HF_CLIENT_CB* client_cb);
256 extern void bta_hf_client_sco_shutdown(tBTA_HF_CLIENT_CB* client_cb);
257 extern void bta_hf_client_cback_sco(tBTA_HF_CLIENT_CB* client_cb,
261 extern void bta_hf_client_at_parse(tBTA_HF_CLIENT_CB* client_cb, char* buf,
263 extern void bta_hf_client_send_at_brsf(tBTA_HF_CLIENT_CB* client_cb,
[all …]
Dbta_hf_client_sdp.cc61 tBTA_HF_CLIENT_CB* client_cb = (tBTA_HF_CLIENT_CB*)data; in bta_hf_client_sdp_cback() local
64 if (client_cb->role == BTA_HF_CLIENT_ACP) in bta_hf_client_sdp_cback()
70 p_buf->hdr.layer_specific = client_cb->handle; in bta_hf_client_sdp_cback()
196 void bta_hf_client_del_record(tBTA_HF_CLIENT_CB_ARR* client_cb) { in bta_hf_client_del_record() argument
199 if (client_cb->sdp_handle != 0) { in bta_hf_client_del_record()
200 SDP_DeleteRecord(client_cb->sdp_handle); in bta_hf_client_del_record()
201 client_cb->sdp_handle = 0; in bta_hf_client_del_record()
202 BTM_FreeSCN(client_cb->scn); in bta_hf_client_del_record()
218 bool bta_hf_client_sdp_find_attr(tBTA_HF_CLIENT_CB* client_cb) { in bta_hf_client_sdp_find_attr() argument
224 client_cb->peer_version = HFP_VERSION_1_1; /* Default version */ in bta_hf_client_sdp_find_attr()
[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.cc883 p_app_cb = &llcp_cb.client_cb[local_sap - LLCP_LOWER_BOUND_LOCAL_SAP]; in llcp_util_get_app_cb()