Searched refs:bta_hf_client_cb (Results 1 – 7 of 7) sorted by relevance
/external/bluetooth/bluedroid/bta/hf_client/ |
D | bta_hf_client_sco.c | 99 if (bta_hf_client_cb.scb.sco_idx != BTM_INVALID_SCO_INDEX) in bta_hf_client_sco_remove() 101 status = BTM_RemoveSco(bta_hf_client_cb.scb.sco_idx); in bta_hf_client_sco_remove() 103 …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() 112 bta_hf_client_cb.scb.sco_idx = BTM_INVALID_SCO_INDEX; in bta_hf_client_sco_remove() 135 (*bta_hf_client_cb.p_cback)(event, (tBTA_HF_CLIENT *) &evt); in bta_hf_client_cback_sco() 155 if (bta_hf_client_cb.scb.sco_state == BTA_HF_CLIENT_SCO_LISTEN_ST) in bta_hf_client_sco_conn_rsp() 163 resp = bta_hf_client_esco_params[bta_hf_client_cb.scb.negotiated_codec]; in bta_hf_client_sco_conn_rsp() 167 bta_sys_sco_use(BTA_ID_HS, 1, bta_hf_client_cb.scb.peer_addr); in bta_hf_client_sco_conn_rsp() 199 bta_hf_client_cb.scb.sco_idx = p_data->conn_evt.sco_inx; in bta_hf_client_esco_connreq_cback() 203 bta_hf_client_cb.scb.sco_state = BTA_HF_CLIENT_SCO_OPENING_ST; in bta_hf_client_esco_connreq_cback() [all …]
|
D | bta_hf_client_rfc.c | 50 if (port_handle != bta_hf_client_cb.scb.conn_handle) in bta_hf_client_port_cback() 53 port_handle, bta_hf_client_cb.scb.conn_handle); in bta_hf_client_port_cback() 80 … code, port_handle, bta_hf_client_cb.scb.conn_handle, bta_hf_client_cb.scb.serv_handle); in bta_hf_client_mgmt_cback() 83 if ((code != PORT_SUCCESS) && (port_handle != bta_hf_client_cb.scb.conn_handle)) in bta_hf_client_mgmt_cback() 91 …if ((bta_hf_client_cb.scb.conn_handle && (port_handle == bta_hf_client_cb.scb.conn_handle)) || /* … in bta_hf_client_mgmt_cback() 92 … (port_handle == bta_hf_client_cb.scb.serv_handle)) /* incoming connection */ in bta_hf_client_mgmt_cback() 103 else if (port_handle == bta_hf_client_cb.scb.conn_handle) in bta_hf_client_mgmt_cback() 151 if (bta_hf_client_cb.scb.serv_handle > 0) in bta_hf_client_start_server() 153 …APPL_TRACE_DEBUG("%s already started, handle: %d", __FUNCTION__, bta_hf_client_cb.scb.serv_handle); in bta_hf_client_start_server() 157 … BTM_SetSecurityLevel(FALSE, "", BTM_SEC_SERVICE_HF_HANDSFREE, bta_hf_client_cb.scb.serv_sec_mask, in bta_hf_client_start_server() [all …]
|
D | bta_hf_client_act.c | 66 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); 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 …]
|
D | bta_hf_client_sdp.c | 58 if (bta_hf_client_cb.scb.role == BTA_HF_CLIENT_ACP) in bta_hf_client_sdp_cback() 173 if (bta_hf_client_cb.sdp_handle == 0) in bta_hf_client_create_record() 175 bta_hf_client_cb.sdp_handle = SDP_CreateRecord(); in bta_hf_client_create_record() 176 bta_hf_client_cb.scn = BTM_AllocateSCN(); in bta_hf_client_create_record() 178 bta_hf_client_cb.scn, in bta_hf_client_create_record() 180 bta_hf_client_cb.sdp_handle); in bta_hf_client_create_record() 203 if (bta_hf_client_cb.sdp_handle != 0) in bta_hf_client_del_record() 205 SDP_DeleteRecord(bta_hf_client_cb.sdp_handle); in bta_hf_client_del_record() 206 bta_hf_client_cb.sdp_handle = 0; in bta_hf_client_del_record() 207 BTM_FreeSCN(bta_hf_client_cb.scn); in bta_hf_client_del_record() [all …]
|
D | bta_hf_client_main.c | 226 tBTA_HF_CLIENT_CB bta_hf_client_cb; variable 242 memset(&bta_hf_client_cb.scb, 0, sizeof(tBTA_HF_CLIENT_SCB)); in bta_hf_client_scb_init() 243 bta_hf_client_cb.scb.sco_idx = BTM_INVALID_SCO_INDEX; in bta_hf_client_scb_init() 244 bta_hf_client_cb.scb.negotiated_codec = BTM_SCO_CODEC_CVSD; in bta_hf_client_scb_init() 263 (*bta_hf_client_cb.p_cback)(BTA_HF_CLIENT_DISABLE_EVT, NULL); in bta_hf_client_scb_disable() 281 if (bta_hf_client_cb.scb.state == BTA_HF_CLIENT_INIT_ST) in bta_hf_client_resume_open() 283 bta_hf_client_cb.scb.state = BTA_HF_CLIENT_OPENING_ST; in bta_hf_client_resume_open() 304 bta_hf_client_cb.scb.colli_tmr_on = FALSE; in bta_hf_client_colli_timer_cback() 328 if (bta_hf_client_cb.scb.state == BTA_HF_CLIENT_OPENING_ST) in bta_hf_client_collision_cback() 343 bta_hf_client_cb.scb.state = BTA_HF_CLIENT_INIT_ST; in bta_hf_client_collision_cback() [all …]
|
D | bta_hf_client_at.c | 44 extern tBTA_HF_CLIENT_CB bta_hf_client_cb; 95 tBTA_HF_CLIENT_AT_QCMD *cur = bta_hf_client_cb.scb.at_cb.queued_cmd; in bta_hf_client_clear_queued_at() 104 bta_hf_client_cb.scb.at_cb.queued_cmd = NULL; in bta_hf_client_clear_queued_at() 120 if (bta_hf_client_cb.scb.at_cb.queued_cmd != NULL) in bta_hf_client_queue_at() 122 tBTA_HF_CLIENT_AT_QCMD *qcmd = bta_hf_client_cb.scb.at_cb.queued_cmd; in bta_hf_client_queue_at() 131 bta_hf_client_cb.scb.at_cb.queued_cmd = new_cmd; in bta_hf_client_queue_at() 140 bta_hf_client_cb.scb.at_cb.resp_timer_on = FALSE; in bta_hf_client_at_resp_timer_cback() 150 if (bta_hf_client_cb.scb.at_cb.resp_timer_on) in bta_hf_client_stop_at_resp_timer() 152 bta_hf_client_cb.scb.at_cb.resp_timer_on = FALSE; in bta_hf_client_stop_at_resp_timer() 153 bta_sys_stop_timer (&bta_hf_client_cb.scb.at_cb.resp_timer); in bta_hf_client_stop_at_resp_timer() [all …]
|
D | bta_hf_client_int.h | 195 extern tBTA_HF_CLIENT_CB bta_hf_client_cb;
|