Home
last modified time | relevance | path

Searched refs:app_id (Results 1 – 25 of 60) sorted by relevance

123

/system/bt/bta/sys/
Dbta_sys_conn.c202 void bta_sys_conn_open(UINT8 id, UINT8 app_id, BD_ADDR peer_addr) in bta_sys_conn_open() argument
207 bta_sys_cb.prm_cb(BTA_SYS_CONN_OPEN, id, app_id, peer_addr); in bta_sys_conn_open()
214 bta_sys_cb.ppm_cb(BTA_SYS_CONN_OPEN, id, app_id, peer_addr); in bta_sys_conn_open()
232 void bta_sys_conn_close(UINT8 id, UINT8 app_id, BD_ADDR peer_addr) in bta_sys_conn_close() argument
237 bta_sys_cb.prm_cb(BTA_SYS_CONN_CLOSE, id, app_id, peer_addr); in bta_sys_conn_close()
244 bta_sys_cb.ppm_cb(BTA_SYS_CONN_CLOSE, id, app_id, peer_addr); in bta_sys_conn_close()
261 void bta_sys_app_open(UINT8 id, UINT8 app_id, BD_ADDR peer_addr) in bta_sys_app_open() argument
265 bta_sys_cb.ppm_cb(BTA_SYS_APP_OPEN, id, app_id, peer_addr); in bta_sys_app_open()
281 void bta_sys_app_close(UINT8 id, UINT8 app_id, BD_ADDR peer_addr) in bta_sys_app_close() argument
285 bta_sys_cb.ppm_cb(BTA_SYS_APP_CLOSE, id, app_id, peer_addr); in bta_sys_app_close()
[all …]
Dbta_sys.h141 typedef void (tBTA_SYS_CONN_CBACK)(tBTA_SYS_CONN_STATUS status,UINT8 id, UINT8 app_id, BD_ADDR peer…
144 typedef void (tBTA_SYS_SSR_CFG_CBACK)(UINT8 id, UINT8 app_id, UINT16 latency, UINT16 tout);
246 extern void bta_sys_conn_open(UINT8 id, UINT8 app_id, BD_ADDR peer_addr);
247 extern void bta_sys_conn_close(UINT8 id, UINT8 app_id, BD_ADDR peer_addr);
248 extern void bta_sys_app_open(UINT8 id, UINT8 app_id, BD_ADDR peer_addr);
249 extern void bta_sys_app_close(UINT8 id, UINT8 app_id, BD_ADDR peer_addr);
250 extern void bta_sys_sco_open(UINT8 id, UINT8 app_id, BD_ADDR peer_addr);
251 extern void bta_sys_sco_close(UINT8 id, UINT8 app_id, BD_ADDR peer_addr);
252 extern void bta_sys_sco_use(UINT8 id, UINT8 app_id, BD_ADDR peer_addr);
253 extern void bta_sys_sco_unuse(UINT8 id, UINT8 app_id, BD_ADDR peer_addr);
[all …]
/system/bt/bta/include/
Dbta_hl_co.h53 extern BOOLEAN bta_hl_co_get_num_of_mdep(UINT8 app_id, UINT8 *p_num_of_mdep);
67 extern BOOLEAN bta_hl_co_advrtise_source_sdp(UINT8 app_id);
85 extern BOOLEAN bta_hl_co_get_mdep_config(UINT8 app_id,
105 extern BOOLEAN bta_hl_co_get_echo_config(UINT8 app_id,
123 extern void bta_hl_co_save_mdl(UINT8 app_id, UINT8 item_idx, tBTA_HL_MDL_CFG *p_mdl_cfg );
137 extern void bta_hl_co_delete_mdl(UINT8 app_id, UINT8 item_idx);
154 extern BOOLEAN bta_hl_co_load_mdl_config (UINT8 app_id, UINT8 buffer_size,
174 extern void bta_hl_co_get_tx_data (UINT8 app_id, tBTA_HL_MDL_HANDLE mdl_handle,
194 extern void bta_hl_co_put_rx_data (UINT8 app_id, tBTA_HL_MDL_HANDLE mdl_handle,
212 extern void bta_hl_co_get_echo_data (UINT8 app_id, tBTA_HL_MCL_HANDLE mcl_handle,
[all …]
Dbta_hh_co.h51 UINT8 ctry_code, BD_ADDR peer_addr, UINT8 app_id);
65 UINT16 attr_mask, UINT8 app_id);
77 extern void bta_hh_co_close(UINT8 dev_handle, UINT8 app_id);
98 UINT8 app_id);
117 UINT8 app_id);
130 extern void bta_hh_le_co_reset_rpt_cache (BD_ADDR remote_bda, UINT8 app_id);
Dbta_pan_co.h81 extern void bta_pan_co_open(UINT16 handle, UINT8 app_id, tBTA_PAN_ROLE local_role, tBTA_PAN_ROLE pe…
94 extern void bta_pan_co_close(UINT16 handle, UINT8 app_id);
109 extern void bta_pan_co_tx_path(UINT16 handle, UINT8 app_id);
124 extern void bta_pan_co_rx_path(UINT16 handle, UINT8 app_id);
139 extern void bta_pan_co_tx_write(UINT16 handle, UINT8 app_id, BD_ADDR src, BD_ADDR dst, UINT16 proto…
155 extern void bta_pan_co_tx_writebuf(UINT16 handle, UINT8 app_id, BD_ADDR src, BD_ADDR dst, UINT16 pr…
173 extern void bta_pan_co_rx_flow(UINT16 handle, UINT8 app_id, BOOLEAN enable);
Dbta_hl_api.h437 UINT8 app_id; member
445 UINT8 app_id; member
481 UINT8 app_id; member
587 UINT8 app_id; member
678 extern void BTA_HlUpdate(UINT8 app_id,
697 extern void BTA_HlRegister(UINT8 app_id,
712 extern void BTA_HlDeregister(UINT8 app_id,tBTA_HL_APP_HANDLE app_handle);
732 extern void BTA_HlCchOpen(UINT8 app_id, tBTA_HL_APP_HANDLE app_handle,
867 extern void BTA_HlSdpQuery(UINT8 app_id,tBTA_HL_APP_HANDLE app_handle,
Dbta_ag_co.h63 extern void bta_ag_co_audio_state(UINT16 handle, UINT8 app_id, UINT8 state,
67 extern void bta_ag_co_audio_state(UINT16 handle, UINT8 app_id, UINT8 state);
/system/bt/btif/co/
Dbta_hl_co.c71 BOOLEAN bta_hl_co_get_num_of_mdep(UINT8 app_id, UINT8 *p_num_of_mdep) in bta_hl_co_get_num_of_mdep() argument
76 if (btif_hl_find_app_idx(app_id, &app_idx)) in bta_hl_co_get_num_of_mdep()
101 BOOLEAN bta_hl_co_advrtise_source_sdp(UINT8 app_id) in bta_hl_co_advrtise_source_sdp() argument
106 if (btif_hl_find_app_idx(app_id, &app_idx)) in bta_hl_co_advrtise_source_sdp()
133 BOOLEAN bta_hl_co_get_mdep_config(UINT8 app_id, in bta_hl_co_get_mdep_config() argument
144 __FUNCTION__, app_id,mdep_idx,mdep_id,mdep_counter); in bta_hl_co_get_mdep_config()
146 if (btif_hl_find_app_idx(app_id, &app_idx)) in bta_hl_co_get_mdep_config()
177 BOOLEAN bta_hl_co_get_echo_config(UINT8 app_id, in bta_hl_co_get_echo_config() argument
185 BTIF_TRACE_DEBUG("%s app_id=%d",__FUNCTION__, app_id ); in bta_hl_co_get_echo_config()
187 if (btif_hl_find_app_idx(app_id, &app_idx)) in bta_hl_co_get_echo_config()
[all …]
Dbta_pan_co.c75 void bta_pan_co_open(UINT16 handle, UINT8 app_id, tBTA_PAN_ROLE local_role, in bta_pan_co_open() argument
79 "handle:%d", app_id, local_role, peer_role, handle); in bta_pan_co_open()
120 void bta_pan_co_close(UINT16 handle, UINT8 app_id) in bta_pan_co_close() argument
122 BTIF_TRACE_API("bta_pan_co_close:app_id:%d, handle:%d", app_id, handle); in bta_pan_co_close()
159 void bta_pan_co_tx_path(UINT16 handle, UINT8 app_id) in bta_pan_co_tx_path() argument
168 BTIF_TRACE_API("%s, handle:%d, app_id:%d", __func__, handle, app_id); in bta_pan_co_tx_path()
222 void bta_pan_co_rx_path(UINT16 handle, UINT8 app_id) in bta_pan_co_rx_path() argument
225 UNUSED(app_id); in bta_pan_co_rx_path()
243 void bta_pan_co_tx_write(UINT16 handle, UINT8 app_id, BD_ADDR src, BD_ADDR dst, in bta_pan_co_tx_write() argument
248 UNUSED(app_id); in bta_pan_co_tx_write()
[all …]
Dbta_ag_co.c64 void bta_ag_co_audio_state(UINT16 handle, UINT8 app_id, UINT8 state, tBTA_AG_PEER_CODEC codec) in bta_ag_co_audio_state() argument
66 void bta_ag_co_audio_state(UINT16 handle, UINT8 app_id, UINT8 state) in bta_ag_co_audio_state()
97 handle, app_id, state, codec); in bta_ag_co_audio_state()
100 handle, app_id, state); in bta_ag_co_audio_state()
Dbta_hh_co.c278 UINT8 app_id) in bta_hh_co_open() argument
301 __FUNCTION__, p_dev->attr_mask, p_dev->sub_class, p_dev->app_id); in bta_hh_co_open()
328 p_dev->app_id = app_id; in bta_hh_co_open()
372 void bta_hh_co_close(UINT8 dev_handle, UINT8 app_id) in bta_hh_co_close() argument
377 APPL_TRACE_WARNING("%s: dev_handle = %d, app_id = %d", __FUNCTION__, dev_handle, app_id); in bta_hh_co_close()
414 UINT8 sub_class, UINT8 ctry_code, BD_ADDR peer_addr, UINT8 app_id) in bta_hh_co_data() argument
421 __FUNCTION__, dev_handle, sub_class, mode, ctry_code, app_id); in bta_hh_co_data()
517 void bta_hh_le_co_rpt_info(BD_ADDR remote_bda, tBTA_HH_RPT_CACHE_ENTRY *p_entry, UINT8 app_id) in bta_hh_le_co_rpt_info() argument
519 UNUSED(app_id); in bta_hh_le_co_rpt_info()
561 UINT8 *p_num_rpt, UINT8 app_id) in bta_hh_le_co_cache_load() argument
[all …]
/system/bt/bta/pan/
Dbta_pan_act.c58 bta_sys_busy(BTA_ID_PAN, p_scb->app_id, p_scb->bd_addr); in bta_pan_pm_conn_busy()
75 bta_sys_idle(BTA_ID_PAN, p_scb->app_id, p_scb->bd_addr); in bta_pan_pm_conn_idle()
114 p_scb->app_id = bta_pan_cb.app_id[0]; in bta_pan_conn_state_cback()
116 p_scb->app_id = bta_pan_cb.app_id[1]; in bta_pan_conn_state_cback()
118 p_scb->app_id = bta_pan_cb.app_id[2]; in bta_pan_conn_state_cback()
154 bta_pan_co_rx_flow(handle, p_scb->app_id, TRUE); in bta_pan_data_flow_cb()
157 bta_pan_co_rx_flow(handle, p_scb->app_id, FALSE); in bta_pan_data_flow_cb()
259 static BOOLEAN bta_pan_has_multiple_connections(UINT8 app_id) in bta_pan_has_multiple_connections() argument
268 if (p_scb->in_use == TRUE && app_id == p_scb->app_id) in bta_pan_has_multiple_connections()
286 if (p_scb->in_use == TRUE && p_scb->app_id != bta_pan_cb.app_id[0] && in bta_pan_has_multiple_connections()
[all …]
Dbta_pan_api.c118 p_buf->user_app_id = p_user_info->app_id; in BTA_PanSetRole()
128 p_buf->gn_app_id = p_gn_info->app_id; in BTA_PanSetRole()
138 p_buf->nap_app_id = p_nap_info->app_id; in BTA_PanSetRole()
/system/bt/bta/hl/
Dbta_hl_api.c107 void BTA_HlUpdate(UINT8 app_id, tBTA_HL_REG_PARAM *p_reg_param, in BTA_HlUpdate() argument
116 p_buf->app_id = app_id; in BTA_HlUpdate()
155 void BTA_HlRegister(UINT8 app_id, in BTA_HlRegister() argument
163 p_buf->app_id = app_id; in BTA_HlRegister()
196 void BTA_HlDeregister(UINT8 app_id,tBTA_HL_APP_HANDLE app_handle) in BTA_HlDeregister() argument
202 p_buf->app_id = app_id; in BTA_HlDeregister()
224 void BTA_HlCchOpen(UINT8 app_id, tBTA_HL_APP_HANDLE app_handle, in BTA_HlCchOpen() argument
231 p_buf->app_id = app_id; in BTA_HlCchOpen()
457 void BTA_HlSdpQuery(UINT8 app_id,tBTA_HL_APP_HANDLE app_handle, in BTA_HlSdpQuery() argument
464 p_buf->app_id = app_id; in BTA_HlSdpQuery()
Dbta_hl_utils.c1011 BOOLEAN bta_hl_find_app_idx(UINT8 app_id, UINT8 *p_app_idx) in bta_hl_find_app_idx() argument
1019 (bta_hl_cb.acb[i].app_id == app_id)) in bta_hl_find_app_idx()
1029 found, app_id, i); in bta_hl_find_app_idx()
2070 BOOLEAN bta_hl_is_a_duplicate_id(UINT8 app_id) in bta_hl_is_a_duplicate_id() argument
2078 (bta_hl_cb.acb[i].app_id == app_id)) in bta_hl_is_a_duplicate_id()
2091 app_id, is_duplicate); in bta_hl_is_a_duplicate_id()
2143 tBTA_HL_STATUS bta_hl_app_update(UINT8 app_id, BOOLEAN is_register) in bta_hl_app_update() argument
2153 APPL_TRACE_DEBUG("bta_hl_app_update app_id=%d", app_id); in bta_hl_app_update()
2159 bta_hl_co_get_num_of_mdep(app_id, &num_of_mdeps)) in bta_hl_app_update()
2189 if (bta_hl_co_get_mdep_config(app_id, in bta_hl_app_update()
[all …]
Dbta_hl_int.h240 UINT8 app_id; member
254 UINT8 app_id; member
266 UINT8 app_id; member
274 UINT8 app_id; member
389 UINT8 app_id; member
511 UINT8 app_id; member
520 UINT8 app_id; member
609 extern tBTA_HL_STATUS bta_hl_sdp_update (UINT8 app_id);
744 extern BOOLEAN bta_hl_find_app_idx(UINT8 app_id, UINT8 *p_app_idx);
784 extern BOOLEAN bta_hl_is_a_duplicate_id(UINT8 app_id);
[all …]
/system/bt/stack/srvc/
Dsrvc_battery.c96 (* p_inst->p_cback)(p_inst->app_id, BA_WRITE_CLT_CFG_REQ, &cfg); in battery_s_write_attr_value()
142 (* p_inst->p_cback)(p_inst->app_id, p_inst->pending_evt, NULL); in battery_s_read_attr_value()
198 UINT16 Battery_Instantiate (UINT8 app_id, tBA_REG_INFO *p_reg_info) in Battery_Instantiate() argument
228 p_inst->app_id = app_id; in Battery_Instantiate()
307 void Battery_Rsp (UINT8 app_id, tGATT_STATUS st, UINT8 event, tBA_RSP_DATA *p_rsp) in Battery_Rsp() argument
316 if (p_inst->app_id == app_id && p_inst->ba_level_hdl != 0) in Battery_Rsp()
375 void Battery_Notify (UINT8 app_id, BD_ADDR remote_bda, UINT8 battery_level) in Battery_Notify() argument
382 if (p_inst->app_id == app_id && p_inst->ba_level_hdl != 0) in Battery_Notify()
/system/bt/bta/ag/
Dbta_ag_act.c95 open.hdr.app_id = p_scb->app_id; in bta_ag_cback_open()
130 p_scb->app_id = p_data->api_register.app_id; in bta_ag_register()
140 reg.hdr.app_id = p_scb->app_id; in bta_ag_register()
442 close.hdr.app_id = p_scb->app_id; in bta_ag_rfc_close()
445 bta_sys_conn_close(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_rfc_close()
482 bta_sys_sco_unuse(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_rfc_close()
524 bta_sys_conn_open(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_rfc_open()
666 bta_sys_busy(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_rfc_data()
671 bta_sys_sco_open(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_rfc_data()
673 bta_sys_idle(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_rfc_data()
[all …]
Dbta_ag_sco.c420 sco.app_id = p_scb->app_id; in bta_ag_cback_sco()
551 bta_sys_sco_use(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_create_sco()
555 bta_ag_co_audio_state(bta_ag_scb_to_idx(p_scb), p_scb->app_id, SCO_STATE_SETUP, in bta_ag_create_sco()
568 bta_ag_co_audio_state(bta_ag_scb_to_idx(p_scb), p_scb->app_id, SCO_STATE_SETUP); in bta_ag_create_sco()
579 … sco_route = bta_dm_sco_co_init(pcm_sample_rate, pcm_sample_rate, &codec_info, p_scb->app_id); in bta_ag_create_sco()
673 bta_sys_busy(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_codec_negotiate()
1451 bta_sys_sco_open(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_sco_conn_open()
1454 bta_ag_co_audio_state(bta_ag_scb_to_idx(p_scb), p_scb->app_id, SCO_STATE_ON, in bta_ag_sco_conn_open()
1457 bta_ag_co_audio_state(bta_ag_scb_to_idx(p_scb), p_scb->app_id, SCO_STATE_ON); in bta_ag_sco_conn_open()
1520 bta_ag_co_audio_state(handle, p_scb->app_id, sco_state, p_scb->inuse_codec); in bta_ag_sco_conn_close()
[all …]
Dbta_ag_api.c111 char * p_service_names[], UINT8 app_id) in BTA_AgRegister() argument
120 p_buf->app_id = app_id; in BTA_AgRegister()
/system/bt/bta/dm/
Dbta_dm_pm.c38 static void bta_dm_pm_cback(tBTA_SYS_CONN_STATUS status, UINT8 id, UINT8 app_id, BD_ADDR peer_addr);
79 if(p_bta_dm_pm_cfg[0].app_id != 0) in bta_dm_init_pm()
342 static void bta_dm_pm_cback(tBTA_SYS_CONN_STATUS status, UINT8 id, UINT8 app_id, BD_ADDR peer_addr) in bta_dm_pm_cback() argument
354 APPL_TRACE_DEBUG("bta_dm_pm_cback: st(%d), id(%d), app(%d)", status, id, app_id); in bta_dm_pm_cback()
359 for(i=1; i<=p_bta_dm_pm_cfg[0].app_id; i++) in bta_dm_pm_cback()
363 … && ((p_bta_dm_pm_cfg[i].app_id == BTA_ALL_APP_ID ) || (p_bta_dm_pm_cfg[i].app_id == app_id ))) in bta_dm_pm_cback()
369 if(i> p_bta_dm_pm_cfg[0].app_id) in bta_dm_pm_cback()
396 && (bta_dm_conn_srvcs.conn_srvc[j].app_id == app_id ) in bta_dm_pm_cback()
437 bta_dm_conn_srvcs.conn_srvc[j].app_id = app_id; in bta_dm_pm_cback()
441 APPL_TRACE_WARNING("new conn_srvc id:%d, app_id:%d", id, app_id); in bta_dm_pm_cback()
[all …]
/system/bt/stack/include/
Dsrvc_api.h102 typedef void (tBA_CBACK)(UINT8 app_id, UINT8 event, tBA_WRITE_DATA *p_data);
192 extern UINT16 Battery_Instantiate (UINT8 app_id, tBA_REG_INFO *p_reg_info);
201 extern void Battery_Rsp (UINT8 app_id, tGATT_STATUS st, UINT8 event, tBA_RSP_DATA *p_rsp);
209 extern void Battery_Notify (UINT8 app_id, BD_ADDR remote_bda, UINT8 battery_level);
/system/bt/btif/src/
Dbtif_hl.c101 static int btif_hl_get_next_channel_id(UINT8 app_id);
674 BOOLEAN btif_hl_dch_open(UINT8 app_id, BD_ADDR bd_addr, in btif_hl_dch_open() argument
687 __FUNCTION__, app_id ); in btif_hl_dch_open()
691 if (btif_hl_find_app_idx(app_id, &app_idx)) in btif_hl_dch_open()
704 p_pcb->channel_id = (int) btif_hl_get_next_channel_id(app_id); in btif_hl_dch_open()
737 BTA_HlSdpQuery(app_id,p_acb->app_handle, bd_addr); in btif_hl_dch_open()
811 BOOLEAN btif_hl_cch_open(UINT8 app_id, BD_ADDR bd_addr, UINT16 ctrl_psm, in btif_hl_cch_open() argument
822 __FUNCTION__, app_id, ctrl_psm, mdep_cfg_idx, op); in btif_hl_cch_open()
826 if (btif_hl_find_app_idx(app_id, &app_idx)) in btif_hl_cch_open()
860 p_pcb->channel_id = (int) btif_hl_get_next_channel_id(app_id); in btif_hl_cch_open()
[all …]
/system/bt/bta/hh/
Dbta_hh_act.c223 p_cb->app_id = 0; in bta_hh_sdp_cback()
232 if (p_cb->app_id != 0) in bta_hh_sdp_cback()
240 p_cb->app_id); in bta_hh_sdp_cback()
356 if (p_cb->app_id) in bta_hh_start_sdp()
372 p_cb->app_id); in bta_hh_start_sdp()
483 (p_cb->incoming_conn) &&(p_cb->app_id == 0)) in bta_hh_sdp_cmpl()
496 if (p_cb->app_id == 0 && !p_cb->incoming_conn) in bta_hh_sdp_cmpl()
567 p_cb->attr_mask, p_cb->app_id); in bta_hh_open_cmpl_act()
578 bta_sys_conn_open( BTA_ID_HH ,p_cb->app_id, p_cb->addr); in bta_hh_open_cmpl_act()
631 if (p_cb->app_id != 0) in bta_hh_open_act()
[all …]
/system/bt/btif/include/
Dbtif_hl.h235 UINT8 app_id; member
275 int app_id; member
315 extern BOOLEAN btif_hl_find_app_idx(UINT8 app_id, UINT8 *p_app_idx);
321 extern BOOLEAN btif_hl_save_mdl_cfg(UINT8 app_id, UINT8 item_idx, tBTA_HL_MDL_CFG *p_mdl_cfg);
322 extern BOOLEAN btif_hl_delete_mdl_cfg(UINT8 app_id, UINT8 item_idx);
328 extern BOOLEAN btif_hl_load_mdl_config (UINT8 app_id, UINT8 buffer_size,

123