/packages/modules/Bluetooth/system/bta/sys/ |
D | bta_sys_conn.cc | 183 void bta_sys_conn_open(uint8_t id, uint8_t app_id, in bta_sys_conn_open() argument 186 bta_sys_cb.prm_cb(BTA_SYS_CONN_OPEN, id, app_id, peer_addr); in bta_sys_conn_open() 190 bta_sys_cb.ppm_cb(BTA_SYS_CONN_OPEN, id, app_id, peer_addr); in bta_sys_conn_open() 205 void bta_sys_conn_close(uint8_t id, uint8_t app_id, in bta_sys_conn_close() argument 208 bta_sys_cb.prm_cb(BTA_SYS_CONN_CLOSE, id, app_id, peer_addr); in bta_sys_conn_close() 212 bta_sys_cb.ppm_cb(BTA_SYS_CONN_CLOSE, id, app_id, peer_addr); in bta_sys_conn_close() 227 void bta_sys_app_open(uint8_t id, uint8_t app_id, const RawAddress& peer_addr) { in bta_sys_app_open() argument 229 bta_sys_cb.ppm_cb(BTA_SYS_APP_OPEN, id, app_id, peer_addr); in bta_sys_app_open() 243 void bta_sys_app_close(uint8_t id, uint8_t app_id, in bta_sys_app_close() argument 246 bta_sys_cb.ppm_cb(BTA_SYS_APP_CLOSE, id, app_id, peer_addr); in bta_sys_app_close() [all …]
|
D | bta_sys.h | 166 uint8_t app_id, const RawAddress& peer_addr); 169 typedef void(tBTA_SYS_SSR_CFG_CBACK)(uint8_t id, uint8_t app_id, 223 extern void bta_sys_conn_open(uint8_t id, uint8_t app_id, 225 extern void bta_sys_conn_close(uint8_t id, uint8_t app_id, 227 extern void bta_sys_app_open(uint8_t id, uint8_t app_id, 229 extern void bta_sys_app_close(uint8_t id, uint8_t app_id, 231 extern void bta_sys_sco_open(uint8_t id, uint8_t app_id, 233 extern void bta_sys_sco_close(uint8_t id, uint8_t app_id, 235 extern void bta_sys_sco_use(uint8_t id, uint8_t app_id, 237 extern void bta_sys_sco_unuse(uint8_t id, uint8_t app_id, [all …]
|
/packages/modules/Bluetooth/system/stack/gatt/ |
D | connection_manager.cc | 155 static void schedule_direct_connect_add(uint8_t app_id, 190 auto app_id = *(it->second.doing_targeted_announcements_conn.begin()); in target_announcement_observe_results_cb() local 194 base::BindOnce(schedule_direct_connect_add, app_id, addr)); in target_announcement_observe_results_cb() 214 bool background_connect_targeted_announcement_add(tAPP_ID app_id, in background_connect_targeted_announcement_add() argument 216 LOG_INFO("app_id=%d, address=%s", static_cast<int>(app_id), in background_connect_targeted_announcement_add() 224 if (it->second.doing_targeted_announcements_conn.count(app_id)) { in background_connect_targeted_announcement_add() 228 static_cast<int>(app_id), address.ToString().c_str()); in background_connect_targeted_announcement_add() 238 static_cast<int>(app_id), address.ToString().c_str()); in background_connect_targeted_announcement_add() 256 bgconn_dev[address].doing_targeted_announcements_conn.insert(app_id); in background_connect_targeted_announcement_add() 270 bool background_connect_add(uint8_t app_id, const RawAddress& address) { in background_connect_add() argument [all …]
|
D | connection_manager.h | 41 tAPP_ID app_id, const RawAddress& address); 42 extern bool background_connect_add(tAPP_ID app_id, const RawAddress& address); 43 extern bool background_connect_remove(tAPP_ID app_id, 49 extern void on_app_deregistered(tAPP_ID app_id); 54 extern bool direct_connect_add(tAPP_ID app_id, const RawAddress& address); 55 extern bool direct_connect_remove(tAPP_ID app_id, const RawAddress& address); 61 extern void on_connection_timed_out(uint8_t app_id, const RawAddress& address);
|
/packages/modules/Bluetooth/system/test/mock/ |
D | mock_btif_bta_pan_co_rx.h | 67 std::function<void(uint16_t handle, uint8_t app_id)> body{ 68 [](uint16_t handle, uint8_t app_id) { ; }}; 69 void operator()(uint16_t handle, uint8_t app_id) { body(handle, app_id); }; in operator() 112 std::function<void(UNUSED_ATTR uint16_t handle, UNUSED_ATTR uint8_t app_id, 114 body{[](UNUSED_ATTR uint16_t handle, UNUSED_ATTR uint8_t app_id, 116 void operator()(UNUSED_ATTR uint16_t handle, UNUSED_ATTR uint8_t app_id, in operator() 118 body(handle, app_id, enable); in operator() 126 std::function<void(UNUSED_ATTR uint16_t handle, UNUSED_ATTR uint8_t app_id)> 127 body{[](UNUSED_ATTR uint16_t handle, UNUSED_ATTR uint8_t app_id) { ; }}; 128 void operator()(UNUSED_ATTR uint16_t handle, UNUSED_ATTR uint8_t app_id) { in operator() [all …]
|
D | mock_bta_sys_conn.cc | 42 void bta_sys_app_close(uint8_t id, uint8_t app_id, in bta_sys_app_close() argument 46 void bta_sys_app_open(uint8_t id, uint8_t app_id, const RawAddress& peer_addr) { in bta_sys_app_open() argument 49 void bta_sys_busy(uint8_t id, uint8_t app_id, const RawAddress& peer_addr) { in bta_sys_busy() argument 52 void bta_sys_chg_ssr_config(uint8_t id, uint8_t app_id, uint16_t max_latency, in bta_sys_chg_ssr_config() argument 59 void bta_sys_conn_close(uint8_t id, uint8_t app_id, in bta_sys_conn_close() argument 63 void bta_sys_conn_open(uint8_t id, uint8_t app_id, in bta_sys_conn_open() argument 67 void bta_sys_idle(uint8_t id, uint8_t app_id, const RawAddress& peer_addr) { in bta_sys_idle() argument 86 void bta_sys_sco_close(uint8_t id, uint8_t app_id, in bta_sys_sco_close() argument 90 void bta_sys_sco_open(uint8_t id, uint8_t app_id, const RawAddress& peer_addr) { in bta_sys_sco_open() argument 96 void bta_sys_sco_unuse(uint8_t id, uint8_t app_id, in bta_sys_sco_unuse() argument [all …]
|
D | mock_btif_bta_pan_co_rx.cc | 63 void bta_pan_co_close(uint16_t handle, uint8_t app_id) { in bta_pan_co_close() argument 65 test::mock::btif_bta_pan_co_rx::bta_pan_co_close(handle, app_id); in bta_pan_co_close() 85 void bta_pan_co_rx_flow(UNUSED_ATTR uint16_t handle, UNUSED_ATTR uint8_t app_id, in bta_pan_co_rx_flow() argument 88 test::mock::btif_bta_pan_co_rx::bta_pan_co_rx_flow(handle, app_id, enable); in bta_pan_co_rx_flow() 91 UNUSED_ATTR uint8_t app_id) { in bta_pan_co_rx_path() argument 93 test::mock::btif_bta_pan_co_rx::bta_pan_co_rx_path(handle, app_id); in bta_pan_co_rx_path() 95 void bta_pan_co_tx_path(uint16_t handle, uint8_t app_id) { in bta_pan_co_tx_path() argument 97 test::mock::btif_bta_pan_co_rx::bta_pan_co_tx_path(handle, app_id); in bta_pan_co_tx_path()
|
D | mock_btif_co_bta_hh_co.cc | 43 UNUSED_ATTR uint8_t app_id) { in bta_hh_le_co_cache_load() argument 47 void bta_hh_co_close(uint8_t dev_handle, uint8_t app_id) { in bta_hh_co_close() argument 53 uint8_t app_id) { in bta_hh_co_data() argument 62 tBTA_HH_ATTR_MASK attr_mask, uint8_t app_id) { in bta_hh_co_open() argument 75 UNUSED_ATTR uint8_t app_id) { in bta_hh_le_co_reset_rpt_cache() argument 80 UNUSED_ATTR uint8_t app_id) { in bta_hh_le_co_rpt_info() argument
|
D | mock_stack_gatt_connection_manager.cc | 50 bool connection_manager::background_connect_add(uint8_t app_id, in background_connect_add() argument 55 bool connection_manager::background_connect_remove(uint8_t app_id, in background_connect_remove() argument 60 bool connection_manager::direct_connect_add(uint8_t app_id, in direct_connect_add() argument 65 bool connection_manager::direct_connect_remove(uint8_t app_id, in direct_connect_remove() argument 80 void connection_manager::on_app_deregistered(uint8_t app_id) { in on_app_deregistered() argument
|
D | mock_bta_hh_utils.h | 64 uint8_t app_id)> 68 uint8_t app_id) {}}; 72 uint8_t app_id) { in operator() 74 ssr_min_tout, app_id); in operator()
|
/packages/modules/Bluetooth/system/bta/pan/ |
D | bta_pan_act.cc | 66 bta_sys_busy(BTA_ID_PAN, p_scb->app_id, p_scb->bd_addr); in bta_pan_pm_conn_busy() 82 bta_sys_idle(BTA_ID_PAN, p_scb->app_id, p_scb->bd_addr); in bta_pan_pm_conn_idle() 122 p_scb->app_id = bta_pan_cb.app_id[0]; in bta_pan_conn_state_cback() 124 p_scb->app_id = bta_pan_cb.app_id[2]; in bta_pan_conn_state_cback() 158 bta_pan_co_rx_flow(handle, p_scb->app_id, true); in bta_pan_data_flow_cb() 161 bta_pan_co_rx_flow(handle, p_scb->app_id, false); in bta_pan_data_flow_cb() 257 static bool bta_pan_has_multiple_connections(uint8_t app_id) { in bta_pan_has_multiple_connections() argument 264 if (p_scb->in_use && app_id == p_scb->app_id) { in bta_pan_has_multiple_connections() 280 if (p_scb->in_use && p_scb->app_id != bta_pan_cb.app_id[0] && in bta_pan_has_multiple_connections() 328 bta_pan_cb.app_id[0] = p_data->api_set_role.user_app_id; in bta_pan_set_role() [all …]
|
/packages/modules/Bluetooth/system/bta/dm/ |
D | bta_dm_pm.cc | 42 uint8_t app_id, const RawAddress& peer_addr); 80 if (p_bta_dm_pm_cfg[0].app_id != 0) { in bta_dm_init_pm() 330 uint8_t app_id, const RawAddress& peer_addr) { in bta_dm_pm_cback() argument 337 BtaIdSysText(id).c_str(), id, app_id); in bta_dm_pm_cback() 340 for (i = 1; i <= p_bta_dm_pm_cfg[0].app_id; i++) { in bta_dm_pm_cback() 342 ((p_bta_dm_pm_cfg[i].app_id == BTA_ALL_APP_ID) || in bta_dm_pm_cback() 343 (p_bta_dm_pm_cfg[i].app_id == app_id))) in bta_dm_pm_cback() 349 if (i > p_bta_dm_pm_cfg[0].app_id) { in bta_dm_pm_cback() 390 (bta_dm_conn_srvcs.conn_srvc[j].app_id == app_id) && in bta_dm_pm_cback() 423 bta_dm_conn_srvcs.conn_srvc[j].app_id = app_id; in bta_dm_pm_cback() [all …]
|
D | bta_dm_int.h | 252 uint8_t app_id, const RawAddress& peer_addr); 278 uint8_t app_id; member 285 PRIVATE_ADDRESS(peer_bdaddr), BtaIdSysText(id).c_str(), app_id, in ToString() 430 uint8_t app_id; member 440 uint8_t app_id; member
|
/packages/modules/Bluetooth/system/bta/include/ |
D | bta_hh_co.h | 55 uint8_t app_id); 69 uint16_t attr_mask, uint8_t app_id); 81 extern void bta_hh_co_close(uint8_t dev_handle, uint8_t app_id); 126 uint8_t app_id); 145 const RawAddress& remote_bda, uint8_t* p_num_rpt, uint8_t app_id); 159 uint8_t app_id);
|
D | bta_pan_co.h | 76 extern void bta_pan_co_close(uint16_t handle, uint8_t app_id); 91 extern void bta_pan_co_tx_path(uint16_t handle, uint8_t app_id); 106 extern void bta_pan_co_rx_path(uint16_t handle, uint8_t app_id); 122 extern void bta_pan_co_rx_flow(uint16_t handle, uint8_t app_id, bool enable);
|
/packages/modules/Bluetooth/system/bta/test/ |
D | bta_pan_test.cc | 103 .app_id = 12, in TEST_F() 108 .app_id = 34, in TEST_F() 117 ASSERT_EQ(12, bta_pan_cb.app_id[0]); in TEST_F() 118 ASSERT_EQ(0, bta_pan_cb.app_id[1]); in TEST_F() 119 ASSERT_EQ(34, bta_pan_cb.app_id[2]); in TEST_F() 132 .app_id = 12, in TEST_F() 136 .app_id = 34, in TEST_F() 179 .app_id = 12, in TEST_F() 185 .app_id = 34, in TEST_F()
|
/packages/modules/Bluetooth/system/bta/ag/ |
D | bta_ag_act.cc | 83 open.hdr.app_id = p_scb->app_id; in bta_ag_cback_open() 107 p_scb->app_id = data.api_register.app_id; in bta_ag_register() 118 reg.hdr.app_id = p_scb->app_id; in bta_ag_register() 392 close.hdr.app_id = p_scb->app_id; in bta_ag_rfc_close() 395 bta_sys_conn_close(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_rfc_close() 429 bta_sys_sco_unuse(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_rfc_close() 491 bta_sys_conn_open(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_rfc_open() 625 bta_sys_busy(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_rfc_data() 630 bta_sys_sco_open(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_rfc_data() 632 bta_sys_idle(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_rfc_data() [all …]
|
D | bta_ag_sco.cc | 337 sco.app_id = p_scb->app_id; in bta_ag_cback_sco() 419 bta_sys_sco_use(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_create_sco() 576 bta_sys_busy(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_codec_negotiate() 1248 bta_sys_sco_open(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_sco_conn_open() 1284 bta_sys_sco_close(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_sco_conn_close() 1291 bta_sys_sco_unuse(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_sco_conn_close() 1323 bta_sys_sco_use(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_sco_conn_rsp()
|
/packages/modules/Bluetooth/system/bta/hh/ |
D | bta_hh_act.cc | 206 p_cb->app_id = 0; in bta_hh_sdp_cback() 214 if (p_cb->app_id != 0) { in bta_hh_sdp_cback() 218 sdp_rec->ssr_min_tout, p_cb->app_id); in bta_hh_sdp_cback() 322 if (p_cb->app_id) { in bta_hh_start_sdp() 331 p_cb->dscp_info.ssr_min_tout, p_cb->app_id); in bta_hh_start_sdp() 440 (p_cb->app_id == 0)) { in bta_hh_sdp_cmpl() 452 if (p_cb->app_id == 0 && !p_cb->incoming_conn) { in bta_hh_sdp_cmpl() 528 p_cb->app_id); in bta_hh_open_cmpl_act() 542 bta_sys_conn_open(BTA_ID_HH, p_cb->app_id, p_cb->addr); in bta_hh_open_cmpl_act() 583 if (p_cb->app_id != 0) { in bta_hh_open_act() [all …]
|
D | bta_hh_utils.cc | 172 uint16_t ssr_min_tout, uint8_t app_id) { in bta_hh_add_device_to_list() argument 182 p_cb->app_id = app_id; in bta_hh_add_device_to_list() 216 p_cb->app_id = p_bta_hh_cfg->p_devt_list[xx].app_id; in bta_hh_tod_spt()
|
D | bta_hh_le.cc | 529 bta_hh_le_co_rpt_info(p_dev_cb->addr, &rpt_entry, p_dev_cb->app_id); in bta_hh_le_save_report_ref() 925 bta_hh_le_co_reset_rpt_cache(p_cb->addr, p_cb->app_id); in bta_hh_le_pri_service_discovery() 990 p_cb->app_id)) != NULL) { in bta_hh_security_cmpl() 995 if (p_cb->app_id != 0 && p_cb->hid_srvc.in_use) { in bta_hh_security_cmpl() 1055 p_cb->app_id = 0; in bta_hh_clear_service_cache() 1203 p_cb->app_id = BTA_HH_APP_ID_LE; in bta_hh_le_gatt_disc_cmpl() 1533 uint8_t app_id; in bta_hh_le_input_rpt_notify() local 1554 app_id = p_dev_cb->app_id; in bta_hh_le_input_rpt_notify() 1570 app_id = BTA_HH_APP_ID_MI; in bta_hh_le_input_rpt_notify() 1572 app_id = BTA_HH_APP_ID_KB; in bta_hh_le_input_rpt_notify() [all …]
|
/packages/modules/Bluetooth/system/btif/co/ |
D | bta_pan_co.cc | 77 void bta_pan_co_close(uint16_t handle, uint8_t app_id) { in bta_pan_co_close() argument 78 BTIF_TRACE_API("bta_pan_co_close:app_id:%d, handle:%d", app_id, handle); in bta_pan_co_close() 113 void bta_pan_co_tx_path(uint16_t handle, uint8_t app_id) { in bta_pan_co_tx_path() argument 121 BTIF_TRACE_API("%s, handle:%d, app_id:%d", __func__, handle, app_id); in bta_pan_co_tx_path() 168 UNUSED_ATTR uint8_t app_id) { in bta_pan_co_rx_path() argument 186 void bta_pan_co_rx_flow(UNUSED_ATTR uint16_t handle, UNUSED_ATTR uint8_t app_id, in bta_pan_co_rx_flow() argument
|
D | bta_hh_co.cc | 343 tBTA_HH_ATTR_MASK attr_mask, uint8_t app_id) { in bta_hh_co_open() argument 362 p_dev->attr_mask, p_dev->sub_class, p_dev->app_id); in bta_hh_co_open() 390 p_dev->app_id = app_id; in bta_hh_co_open() 440 void bta_hh_co_close(uint8_t dev_handle, uint8_t app_id) { in bta_hh_co_close() argument 445 app_id); in bta_hh_co_close() 493 uint8_t app_id) { in bta_hh_co_data() argument 499 __func__, dev_handle, sub_class, mode, ctry_code, app_id); in bta_hh_co_data() 709 UNUSED_ATTR uint8_t app_id) { in bta_hh_le_co_rpt_info() argument 749 UNUSED_ATTR uint8_t app_id) { in bta_hh_le_co_cache_load() argument 763 bta_hh_le_co_reset_rpt_cache(remote_bda, app_id); in bta_hh_le_co_cache_load() [all …]
|
/packages/modules/Bluetooth/system/bta/av/ |
D | bta_av_main.cc | 105 uint8_t app_id, const RawAddress& peer_addr); 107 uint8_t app_id, const RawAddress& peer_addr); 409 p_data->api_reg.app_id); in bta_av_api_register() 425 registr.app_id = p_data->api_reg.app_id; in bta_av_api_register() 459 p_scb->app_id = registr.app_id; in bta_av_api_register() 583 if (AVDT_CreateStream(p_scb->app_id, &p_scb->seps[codec_index].av_handle, in bta_av_api_register() 587 __func__, p_scb->hndl, p_scb->app_id, codec_index); in bta_av_api_register() 819 uint8_t id, uint8_t app_id, in bta_av_sys_rs_cback() argument 828 peer_addr.ToString().c_str(), id, app_id, bta_av_cb.rs_idx); in bta_av_sys_rs_cback() 840 __func__, peer_addr.ToString().c_str(), id, app_id, p_scb->hndl); in bta_av_sys_rs_cback() [all …]
|
/packages/modules/Bluetooth/system/bta/jv/ |
D | bta_jv_act.cc | 373 bta_sys_conn_close(BTA_ID_JV, p_pm_cb->app_id, p_pm_cb->peer_bd_addr); in bta_jv_clear_pm_cb() 375 p_pm_cb->app_id = BTA_JV_PM_ALL; in bta_jv_clear_pm_cb() 403 if (bta_jv_cb.pm_cb[j].app_id == bta_jv_cb.pm_cb[i].app_id) in bta_jv_free_set_pm_profile_cb() 408 << ", idx=" << i << "app_id=" << bta_jv_cb.pm_cb[i].app_id in bta_jv_free_set_pm_profile_cb() 466 tBTA_JV_PM_ID app_id) { in bta_jv_alloc_set_pm_profile_cb() argument 504 << ", app_id=" << app_id << ", idx=" << i in bta_jv_alloc_set_pm_profile_cb() 514 bta_jv_cb.pm_cb[i].app_id = app_id; in bta_jv_alloc_set_pm_profile_cb() 520 << ", app_id=" << app_id << ", return NULL"; in bta_jv_alloc_set_pm_profile_cb() 1714 void bta_jv_set_pm_profile(uint32_t handle, tBTA_JV_PM_ID app_id, in bta_jv_set_pm_profile() argument 1719 VLOG(2) << __func__ << " handle=" << loghex(handle) << ", app_id=" << app_id in bta_jv_set_pm_profile() [all …]
|