/system/bt/bta/hf_client/ |
D | bta_hf_client_sco.c | 98 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() 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() 223 if (rem_bd && bdcmp(bta_hf_client_cb.scb.peer_addr, rem_bd) == 0 && in bta_hf_client_sco_conn_cback() [all …]
|
D | bta_hf_client_rfc.c | 48 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 …]
|
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() 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() 178 bta_hf_client_cb.scb.cli_sec_mask = p_data->api_open.sec_mask; in bta_hf_client_start_open() [all …]
|
D | bta_hf_client_main.c | 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() 290 if (bta_hf_client_cb.scb.state == BTA_HF_CLIENT_INIT_ST) in bta_hf_client_resume_open() 292 bta_hf_client_cb.scb.state = BTA_HF_CLIENT_OPENING_ST; in bta_hf_client_resume_open() 332 if (bta_hf_client_cb.scb.state == BTA_HF_CLIENT_OPENING_ST) in bta_hf_client_collision_cback() [all …]
|
D | bta_hf_client_sdp.c | 59 if (bta_hf_client_cb.scb.role == BTA_HF_CLIENT_ACP) in bta_hf_client_sdp_cback() 224 bta_hf_client_cb.scb.peer_version = HFP_VERSION_1_1; /* Default version */ in bta_hf_client_sdp_find_attr() 230 …if ((p_rec = SDP_FindServiceInDb(bta_hf_client_cb.scb.p_disc_db, UUID_SERVCLASS_AG_HANDSFREE, p_re… in bta_hf_client_sdp_find_attr() 236 if (bta_hf_client_cb.scb.role == BTA_HF_CLIENT_INT) in bta_hf_client_sdp_find_attr() 240 bta_hf_client_cb.scb.peer_scn = (UINT8) pe.params[0]; in bta_hf_client_sdp_find_attr() 249 …SDP_FindProfileVersionInRec(p_rec, UUID_SERVCLASS_HF_HANDSFREE, &bta_hf_client_cb.scb.peer_version… in bta_hf_client_sdp_find_attr() 257 if (bta_hf_client_cb.scb.peer_features == 0) in bta_hf_client_sdp_find_attr() 259 bta_hf_client_cb.scb.peer_features = p_attr->attr_value.v.u16; in bta_hf_client_sdp_find_attr() 262 if (bta_hf_client_cb.scb.peer_features & 0x0020) in bta_hf_client_sdp_find_attr() 264 bta_hf_client_cb.scb.peer_features &= ~0x0020; in bta_hf_client_sdp_find_attr() [all …]
|
D | bta_hf_client_at.c | 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() 172 bta_hf_client_cb.scb.svc_conn == FALSE) && in bta_hf_client_send_at() [all …]
|
D | bta_hf_client_int.h | 182 tBTA_HF_CLIENT_SCB scb; /* service control block */ member
|
/system/bt/bta/ag/ |
D | bta_ag_main.c | 289 tBTA_AG_SCB *p_scb = &bta_ag_cb.scb[0]; in bta_ag_scb_alloc() 360 if (bta_ag_cb.scb[idx].in_use) in bta_ag_scb_dealloc() 388 return ((UINT16) (p_scb - bta_ag_cb.scb)) + 1; in bta_ag_scb_to_idx() 408 p_scb = &bta_ag_cb.scb[idx - 1]; in bta_ag_scb_by_idx() 457 tBTA_AG_SCB *p_scb = &bta_ag_cb.scb[0]; in bta_ag_idx_by_bdaddr() 488 tBTA_AG_SCB *p_scb = &bta_ag_cb.scb[0]; in bta_ag_other_scb_open() 536 tBTA_AG_SCB *p_scb = &bta_ag_cb.scb[0]; in bta_ag_get_other_idle_scb() 674 alarm_free(bta_ag_cb.scb[i].ring_timer); in bta_ag_api_enable() 676 alarm_free(bta_ag_cb.scb[i].codec_negotiation_timer); in bta_ag_api_enable() 678 alarm_free(bta_ag_cb.scb[i].collision_timer); in bta_ag_api_enable() [all …]
|
D | bta_ag_sco.c | 205 … &bta_ag_cb.scb[0], bta_ag_cb.scb[0].in_use, bta_ag_cb.scb[0].sco_idx, bta_ag_cb.scb[0].state); in bta_ag_sco_disc_cback() 207 … &bta_ag_cb.scb[1], bta_ag_cb.scb[1].in_use, bta_ag_cb.scb[1].sco_idx, bta_ag_cb.scb[1].state); in bta_ag_sco_disc_cback()
|
D | bta_ag_api.c | 61 if (bta_ag_cb.scb[idx].in_use) { in BTA_AgEnable()
|
D | bta_ag_act.c | 479 if (bta_ag_cb.scb[i].in_use && bta_ag_cb.scb[i].svc_conn) in bta_ag_rfc_close() 572 for (i = 0, ag_scb = &bta_ag_cb.scb[0]; i < BTA_AG_NUM_SCB; i++, ag_scb++) in bta_ag_rfc_acp_open()
|
D | bta_ag_sdp.c | 254 tBTA_AG_SCB *p = &bta_ag_cb.scb[0]; in bta_ag_del_records()
|
D | bta_ag_int.h | 321 tBTA_AG_SCB scb[BTA_AG_NUM_SCB]; /* service control blocks */ member
|
D | bta_ag_cmd.c | 1230 for (i = 0, ag_scb = &bta_ag_cb.scb[0]; i < BTA_AG_NUM_SCB; i++, ag_scb++) in bta_ag_at_hfp_cback() 1383 for (i = 0, ag_scb = &bta_ag_cb.scb[0]; i < BTA_AG_NUM_SCB; i++, ag_scb++) in bta_ag_at_hfp_cback()
|
/system/bt/bta/hl/ |
D | bta_hl_act.c | 1941 bta_hl_sdp_cback(bta_hl_cb.scb[0].sdp_oper, in bta_hl_sdp_cback0() 1942 bta_hl_cb.scb[0].app_idx, in bta_hl_sdp_cback0() 1943 bta_hl_cb.scb[0].mcl_idx, in bta_hl_sdp_cback0() 1944 bta_hl_cb.scb[0].mdl_idx, in bta_hl_sdp_cback0() 1962 bta_hl_sdp_cback(bta_hl_cb.scb[1].sdp_oper, in bta_hl_sdp_cback1() 1963 bta_hl_cb.scb[1].app_idx, in bta_hl_sdp_cback1() 1964 bta_hl_cb.scb[1].mcl_idx, in bta_hl_sdp_cback1() 1965 bta_hl_cb.scb[1].mdl_idx, in bta_hl_sdp_cback1() 1981 bta_hl_sdp_cback(bta_hl_cb.scb[2].sdp_oper, in bta_hl_sdp_cback2() 1982 bta_hl_cb.scb[2].app_idx, in bta_hl_sdp_cback2() [all …]
|
D | bta_hl_int.h | 562 tBTA_HL_SDP_CB scb[BTA_HL_NUM_SDP_CBACKS]; member
|
/system/bt/bta/pan/ |
D | bta_pan_main.c | 166 tBTA_PAN_SCB *p_scb = &bta_pan_cb.scb[0]; in bta_pan_scb_alloc() 324 return ((UINT8) (p_scb - bta_pan_cb.scb)) + 1; in bta_pan_scb_to_idx() 341 tBTA_PAN_SCB *p_scb = &bta_pan_cb.scb[0]; in bta_pan_scb_by_handle()
|
D | bta_pan_act.c | 267 p_scb = &bta_pan_cb.scb[index]; in bta_pan_has_multiple_connections() 285 p_scb = &bta_pan_cb.scb[index]; in bta_pan_has_multiple_connections() 424 tBTA_PAN_SCB *p_scb = &bta_pan_cb.scb[0]; in bta_pan_disable()
|
D | bta_pan_int.h | 160 tBTA_PAN_SCB scb[BTA_PAN_NUM_CONN]; /* state machine control blocks */ member
|
/system/bt/stack/avdt/ |
D | avdt_scb.c | 572 memset(&avdt_cb.scb[0], 0, sizeof(tAVDT_SCB) * AVDT_NUM_SEPS); in avdt_scb_init() 589 tAVDT_SCB *p_scb = &avdt_cb.scb[0]; in avdt_scb_alloc() 671 return (UINT8) (p_scb - avdt_cb.scb + 1); in avdt_scb_to_hdl() 692 p_scb = &avdt_cb.scb[hdl - 1]; in avdt_scb_by_hdl()
|
D | avdt_ccb_act.c | 121 tAVDT_SCB *p_scb = &avdt_cb.scb[0]; in avdt_ccb_chk_close() 161 tAVDT_SCB *p_scb = &avdt_cb.scb[0]; in avdt_ccb_hdl_discover_cmd() 669 tAVDT_SCB *p_scb = &avdt_cb.scb[0]; in avdt_ccb_clear_cmds()
|
D | avdt_api.c | 159 tAVDT_SCB *p_scb = &avdt_cb.scb[0]; in AVDT_SINK_Activate() 189 tAVDT_SCB *p_scb = &avdt_cb.scb[0]; in AVDT_SINK_Deactivate()
|
D | avdt_int.h | 548 tAVDT_SCB scb[AVDT_NUM_SEPS]; /* stream control blocks */ member
|