Home
last modified time | relevance | path

Searched refs:bta_hf_client_cb (Results 1 – 7 of 7) sorted by relevance

/system/bt/bta/hf_client/
Dbta_hf_client_sco.c98 if (bta_hf_client_cb.scb.sco_idx != BTM_INVALID_SCO_INDEX) in bta_hf_client_sco_remove()
100 status = BTM_RemoveSco(bta_hf_client_cb.scb.sco_idx); in bta_hf_client_sco_remove()
102 …APPL_TRACE_DEBUG("%s idx 0x%04x, status:0x%x", __FUNCTION__, bta_hf_client_cb.scb.sco_idx, status); in bta_hf_client_sco_remove()
111 bta_hf_client_cb.scb.sco_idx = BTM_INVALID_SCO_INDEX; in bta_hf_client_sco_remove()
134 (*bta_hf_client_cb.p_cback)(event, (tBTA_HF_CLIENT *) &evt); in bta_hf_client_cback_sco()
154 if (bta_hf_client_cb.scb.sco_state == BTA_HF_CLIENT_SCO_LISTEN_ST) in bta_hf_client_sco_conn_rsp()
162 resp = bta_hf_client_esco_params[bta_hf_client_cb.scb.negotiated_codec]; in bta_hf_client_sco_conn_rsp()
166 bta_sys_sco_use(BTA_ID_HS, 1, bta_hf_client_cb.scb.peer_addr); in bta_hf_client_sco_conn_rsp()
198 bta_hf_client_cb.scb.sco_idx = p_data->conn_evt.sco_inx; in bta_hf_client_esco_connreq_cback()
202 bta_hf_client_cb.scb.sco_state = BTA_HF_CLIENT_SCO_OPENING_ST; in bta_hf_client_esco_connreq_cback()
[all …]
Dbta_hf_client_rfc.c48 if (port_handle != bta_hf_client_cb.scb.conn_handle) in bta_hf_client_port_cback()
51 port_handle, bta_hf_client_cb.scb.conn_handle); in bta_hf_client_port_cback()
76 … code, port_handle, bta_hf_client_cb.scb.conn_handle, bta_hf_client_cb.scb.serv_handle); in bta_hf_client_mgmt_cback()
79 if ((code != PORT_SUCCESS) && (port_handle != bta_hf_client_cb.scb.conn_handle)) in bta_hf_client_mgmt_cback()
87 …if ((bta_hf_client_cb.scb.conn_handle && (port_handle == bta_hf_client_cb.scb.conn_handle)) || /* … in bta_hf_client_mgmt_cback()
88 … (port_handle == bta_hf_client_cb.scb.serv_handle)) /* incoming connection */ in bta_hf_client_mgmt_cback()
99 else if (port_handle == bta_hf_client_cb.scb.conn_handle) in bta_hf_client_mgmt_cback()
146 if (bta_hf_client_cb.scb.serv_handle > 0) in bta_hf_client_start_server()
148 …APPL_TRACE_DEBUG("%s already started, handle: %d", __FUNCTION__, bta_hf_client_cb.scb.serv_handle); in bta_hf_client_start_server()
152 … BTM_SetSecurityLevel(FALSE, "", BTM_SEC_SERVICE_HF_HANDSFREE, bta_hf_client_cb.scb.serv_sec_mask, in bta_hf_client_start_server()
[all …]
Dbta_hf_client_act.c66 bta_hf_client_cb.scb.serv_sec_mask = p_data->api_register.sec_mask; in bta_hf_client_register()
67 bta_hf_client_cb.scb.features = p_data->api_register.features; in bta_hf_client_register()
84 (*bta_hf_client_cb.p_cback)(BTA_HF_CLIENT_REGISTER_EVT, &evt); in bta_hf_client_register()
100 bta_hf_client_cb.scb.deregister = TRUE; in bta_hf_client_deregister()
124 bta_hf_client_cb.scb.deregister = TRUE; in bta_hf_client_start_dereg()
143 bta_dm_pm_active(bta_hf_client_cb.scb.peer_addr); in bta_hf_client_start_close()
144 L2CA_SetIdleTimeoutByBdAddr(bta_hf_client_cb.scb.peer_addr, 0, BT_TRANSPORT_BR_EDR); in bta_hf_client_start_close()
147 if (bta_hf_client_cb.scb.sco_state == BTA_HF_CLIENT_SCO_OPEN_ST) in bta_hf_client_start_close()
149 bta_hf_client_cb.scb.sco_close_rfc = TRUE; in bta_hf_client_start_close()
177 bdcpy(bta_hf_client_cb.scb.peer_addr, p_data->api_open.bd_addr); in bta_hf_client_start_open()
[all …]
Dbta_hf_client_sdp.c59 if (bta_hf_client_cb.scb.role == BTA_HF_CLIENT_ACP) in bta_hf_client_sdp_cback()
167 if (bta_hf_client_cb.sdp_handle == 0) in bta_hf_client_create_record()
169 bta_hf_client_cb.sdp_handle = SDP_CreateRecord(); in bta_hf_client_create_record()
170 bta_hf_client_cb.scn = BTM_AllocateSCN(); in bta_hf_client_create_record()
172 bta_hf_client_cb.scn, in bta_hf_client_create_record()
174 bta_hf_client_cb.sdp_handle); in bta_hf_client_create_record()
197 if (bta_hf_client_cb.sdp_handle != 0) in bta_hf_client_del_record()
199 SDP_DeleteRecord(bta_hf_client_cb.sdp_handle); in bta_hf_client_del_record()
200 bta_hf_client_cb.sdp_handle = 0; in bta_hf_client_del_record()
201 BTM_FreeSCN(bta_hf_client_cb.scn); in bta_hf_client_del_record()
[all …]
Dbta_hf_client_main.c230 tBTA_HF_CLIENT_CB bta_hf_client_cb; variable
246 alarm_free(bta_hf_client_cb.scb.collision_timer); in bta_hf_client_scb_init()
247 alarm_free(bta_hf_client_cb.scb.at_cb.resp_timer); in bta_hf_client_scb_init()
248 alarm_free(bta_hf_client_cb.scb.at_cb.hold_timer); in bta_hf_client_scb_init()
249 memset(&bta_hf_client_cb.scb, 0, sizeof(tBTA_HF_CLIENT_SCB)); in bta_hf_client_scb_init()
250 bta_hf_client_cb.scb.collision_timer = in bta_hf_client_scb_init()
252 bta_hf_client_cb.scb.sco_idx = BTM_INVALID_SCO_INDEX; in bta_hf_client_scb_init()
253 bta_hf_client_cb.scb.negotiated_codec = BTM_SCO_CODEC_CVSD; in bta_hf_client_scb_init()
272 (*bta_hf_client_cb.p_cback)(BTA_HF_CLIENT_DISABLE_EVT, NULL); in bta_hf_client_scb_disable()
290 if (bta_hf_client_cb.scb.state == BTA_HF_CLIENT_INIT_ST) in bta_hf_client_resume_open()
[all …]
Dbta_hf_client_at.c50 extern tBTA_HF_CLIENT_CB bta_hf_client_cb;
108 tBTA_HF_CLIENT_AT_QCMD *cur = bta_hf_client_cb.scb.at_cb.queued_cmd; in bta_hf_client_clear_queued_at()
117 bta_hf_client_cb.scb.at_cb.queued_cmd = NULL; in bta_hf_client_clear_queued_at()
132 if (bta_hf_client_cb.scb.at_cb.queued_cmd != NULL) { in bta_hf_client_queue_at()
133 tBTA_HF_CLIENT_AT_QCMD *qcmd = bta_hf_client_cb.scb.at_cb.queued_cmd; in bta_hf_client_queue_at()
140 bta_hf_client_cb.scb.at_cb.queued_cmd = new_cmd; in bta_hf_client_queue_at()
146 if (bta_hf_client_cb.scb.at_cb.current_cmd == BTA_HF_CLIENT_AT_CNUM) { in bta_hf_client_at_resp_timer_cback()
157 alarm_set_on_queue(bta_hf_client_cb.scb.at_cb.resp_timer, in bta_hf_client_start_at_resp_timer()
166 alarm_cancel(bta_hf_client_cb.scb.at_cb.resp_timer); in bta_hf_client_stop_at_resp_timer()
171 if ((bta_hf_client_cb.scb.at_cb.current_cmd == BTA_HF_CLIENT_AT_NONE || in bta_hf_client_send_at()
[all …]
Dbta_hf_client_int.h194 extern tBTA_HF_CLIENT_CB bta_hf_client_cb;