Home
last modified time | relevance | path

Searched refs:peer_addr (Results 1 – 25 of 75) sorted by relevance

123

/packages/modules/Bluetooth/system/bta/sys/
Dbta_sys_conn.cc89 void bta_sys_notify_role_chg(const RawAddress& peer_addr, tHCI_ROLE new_role, in bta_sys_notify_role_chg() argument
92 PRIVATE_ADDRESS(peer_addr), RoleText(new_role).c_str(), in bta_sys_notify_role_chg()
95 bta_sys_cb.p_role_cb(BTA_SYS_ROLE_CHANGE, new_role, hci_status, peer_addr); in bta_sys_notify_role_chg()
132 void bta_sys_notify_collision(const RawAddress& peer_addr) { in bta_sys_notify_collision() argument
139 peer_addr); in bta_sys_notify_collision()
184 const RawAddress& peer_addr) { 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()
206 const RawAddress& peer_addr) { 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()
[all …]
Dbta_sys.h166 uint8_t app_id, const RawAddress& peer_addr);
224 const RawAddress& peer_addr);
226 const RawAddress& peer_addr);
228 const RawAddress& peer_addr);
230 const RawAddress& peer_addr);
232 const RawAddress& peer_addr);
234 const RawAddress& peer_addr);
236 const RawAddress& peer_addr);
238 const RawAddress& peer_addr);
240 const RawAddress& peer_addr);
[all …]
/packages/modules/Bluetooth/system/bta/dm/
Dbta_dm_pm.cc42 uint8_t app_id, const RawAddress& peer_addr);
43 static void bta_dm_pm_set_mode(const RawAddress& peer_addr,
50 static bool bta_dm_pm_park(const RawAddress& peer_addr);
60 static void bta_dm_pm_ssr(const RawAddress& peer_addr, const int ssr);
149 static void bta_dm_pm_stop_timer(const RawAddress& peer_addr) { in bta_dm_pm_stop_timer() argument
154 bta_dm_cb.pm_timer[i].peer_bdaddr == peer_addr) { in bta_dm_pm_stop_timer()
206 static void bta_dm_pm_stop_timer_by_mode(const RawAddress& peer_addr, in bta_dm_pm_stop_timer_by_mode() argument
213 bta_dm_cb.pm_timer[i].peer_bdaddr == peer_addr) { in bta_dm_pm_stop_timer_by_mode()
239 static void bta_dm_pm_stop_timer_by_srvc_id(const RawAddress& peer_addr, in bta_dm_pm_stop_timer_by_srvc_id() argument
243 bta_dm_cb.pm_timer[i].peer_bdaddr == peer_addr) { in bta_dm_pm_stop_timer_by_srvc_id()
[all …]
/packages/modules/Bluetooth/system/bta/ag/
Dbta_ag_act.cc177 p_scb->peer_addr = data.api_open.bd_addr; in bta_ag_start_open()
186 bta_ag_collision_cback(BTA_SYS_CONN_OPEN, BTA_ID_AG, 0, p_scb->peer_addr); in bta_ag_start_open()
296 RawAddress peer_addr = p_scb->peer_addr; in bta_ag_disc_fail() local
297 p_scb->peer_addr = RawAddress::kEmpty; in bta_ag_disc_fail()
300 bta_ag_cback_open(p_scb, peer_addr, BTA_AG_FAIL_SDP); in bta_ag_disc_fail()
329 RawAddress peer_addr = p_scb->peer_addr; in bta_ag_rfc_fail() local
340 p_scb->peer_addr = RawAddress::kEmpty; in bta_ag_rfc_fail()
346 bta_ag_cback_open(p_scb, peer_addr, BTA_AG_FAIL_RFCOMM); in bta_ag_rfc_fail()
393 close.bd_addr = p_scb->peer_addr; 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()
[all …]
Dbta_ag_sco.cc317 << (p_scb ? p_scb->peer_addr : RawAddress::kEmpty); in bta_ag_esco_connreq_cback()
357 if (!bta_ag_sco_is_active_device(p_scb->peer_addr)) { in bta_ag_create_sco()
358 LOG(WARNING) << __func__ << ": device " << p_scb->peer_addr in bta_ag_create_sco()
371 p_scb->peer_addr.ToString().c_str(), p_scb->sco_idx); in bta_ag_create_sco()
419 bta_sys_sco_use(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_create_sco()
428 &p_scb->peer_addr, false, params.packet_types, &p_scb->sco_idx, in bta_ag_create_sco()
487 if (BTM_CreateSco(&p_scb->peer_addr, true, params.packet_types, in bta_ag_create_pending_sco()
547 uint8_t* p_rem_feat = BTM_ReadRemoteFeatures(p_scb->peer_addr); in bta_ag_codec_negotiate()
576 bta_sys_busy(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_codec_negotiate()
596 PRIVATE_ADDRESS(p_scb->peer_addr), p_scb->sco_idx, in bta_ag_sco_event()
[all …]
Dbta_ag_main.cc285 uint16_t bta_ag_idx_by_bdaddr(const RawAddress* peer_addr) { in bta_ag_idx_by_bdaddr() argument
287 if (peer_addr != nullptr) { in bta_ag_idx_by_bdaddr()
289 if (p_scb->in_use && *peer_addr == p_scb->peer_addr) { in bta_ag_idx_by_bdaddr()
350 const RawAddress& peer_addr) { in bta_ag_collision_cback() argument
352 uint16_t handle = bta_ag_idx_by_bdaddr(&peer_addr); in bta_ag_collision_cback()
358 << unsigned(handle) << " device " << peer_addr; in bta_ag_collision_cback()
361 << unsigned(handle) << " device " << peer_addr; in bta_ag_collision_cback()
364 << unsigned(handle) << " device " << peer_addr; in bta_ag_collision_cback()
382 LOG(INFO) << __func__ << ": Resume connection to " << p_scb->peer_addr in bta_ag_resume_open()
384 tBTA_AG_DATA open_data = {.api_open = {.bd_addr = p_scb->peer_addr}}; in bta_ag_resume_open()
[all …]
Dbta_ag_rfc.cc87 << handle << " peer_addr " << p_scb->peer_addr << " state " in bta_ag_port_cback()
222 << p_scb->peer_addr; in bta_ag_setup_port()
227 << p_scb->peer_addr; in bta_ag_setup_port()
250 << ", bd_addr=" << p_scb->peer_addr; in bta_ag_start_servers()
255 << ", bd_addr" << p_scb->peer_addr; in bta_ag_start_servers()
332 p_scb->peer_addr, &(p_scb->conn_handle), in bta_ag_rfc_do_open()
344 << " for " << p_scb->peer_addr; in bta_ag_rfc_do_open()
Dbta_ag_sdp.cc350 p_scb->peer_addr.ToString(), HFP_VERSION_CONFIG_KEY, in bta_ag_sdp_find_attr()
355 __func__, p_scb->peer_addr.ToString().c_str()); in bta_ag_sdp_find_attr()
378 p_scb->peer_addr.ToString(), HFP_SDP_FEATURES_CONFIG_KEY, in bta_ag_sdp_find_attr()
384 p_scb->peer_addr.ToString().c_str()); in bta_ag_sdp_find_attr()
489 p_scb->peer_addr, p_scb->p_disc_db, in bta_ag_do_disc()
494 << p_scb->peer_addr; in bta_ag_do_disc()
498 << p_scb->peer_addr; in bta_ag_do_disc()
/packages/modules/Bluetooth/system/test/mock/
Dmock_bta_sys_conn.cc43 const RawAddress& peer_addr) { 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
60 const RawAddress& peer_addr) { in bta_sys_conn_close() argument
64 const RawAddress& peer_addr) { 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
70 void bta_sys_notify_collision(const RawAddress& peer_addr) { in bta_sys_notify_collision() argument
73 void bta_sys_notify_role_chg(const RawAddress& peer_addr, tHCI_ROLE new_role, in bta_sys_notify_role_chg() argument
87 const RawAddress& peer_addr) { 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
[all …]
Dmock_stack_acl.h168 std::function<bool(const RawAddress& peer_addr)> body{
169 [](const RawAddress& peer_addr) { return false; }};
170 bool operator()(const RawAddress& peer_addr) { return body(peer_addr); }; in operator()
629 std::function<void(const RawAddress& peer_addr)> body{
630 [](const RawAddress& peer_addr) { ; }};
631 void operator()(const RawAddress& peer_addr) { body(peer_addr); }; in operator()
638 std::function<void(const RawAddress& peer_addr)> body{
639 [](const RawAddress& peer_addr) { ; }};
640 void operator()(const RawAddress& peer_addr) { body(peer_addr); }; in operator()
663 std::function<void(const RawAddress& peer_addr)> body{
[all …]
/packages/modules/Bluetooth/system/btif/src/
Dbtif_a2dp.cc51 bool btif_a2dp_on_started(const RawAddress& peer_addr, tBTA_AV_START* p_av_start) { in btif_a2dp_on_started() argument
52 …LOG(INFO) << __func__ << ": ## ON A2DP STARTED ## peer " << peer_addr << " p_av_start:" << p_av_st… in btif_a2dp_on_started()
57 … LOG(ERROR) << __func__ << ": peer " << peer_addr << " call in progress, do not start A2DP stream"; in btif_a2dp_on_started()
70 LOG(INFO) << __func__ << ": peer " << peer_addr << " status:" << +p_av_start->status in btif_a2dp_on_started()
75 …LOG(WARNING) << __func__ << ": peer " << peer_addr << " A2DP is suspending and ignores the started… in btif_a2dp_on_started()
97 …LOG(ERROR) << __func__ << ": peer " << peer_addr << " A2DP start request failed: status = " << +p_… in btif_a2dp_on_started()
134 void btif_a2dp_on_offload_started(const RawAddress& peer_addr, in btif_a2dp_on_offload_started() argument
137 LOG_INFO("%s: peer %s status %d", __func__, peer_addr.ToString().c_str(), in btif_a2dp_on_offload_started()
146 peer_addr.ToString().c_str()); in btif_a2dp_on_offload_started()
151 peer_addr.ToString().c_str(), status); in btif_a2dp_on_offload_started()
[all …]
/packages/modules/Bluetooth/system/bta/hf_client/
Dbta_hf_client_act.cc63 bta_dm_pm_active(client_cb->peer_addr); in bta_hf_client_start_close()
64 L2CA_SetIdleTimeoutByBdAddr(client_cb->peer_addr, 0, BT_TRANSPORT_BR_EDR); in bta_hf_client_start_close()
98 client_cb->peer_addr = p_data->api_open.bd_addr; in bta_hf_client_start_open()
108 client_cb->peer_addr); in bta_hf_client_start_open()
139 bta_sys_conn_open(BTA_ID_HS, 1, client_cb->peer_addr); in bta_hf_client_rfc_open()
181 if (dev_addr == client_cb->peer_addr) { in bta_hf_client_rfc_acp_open()
191 client_cb->peer_addr = dev_addr; in bta_hf_client_rfc_acp_open()
291 bta_sys_conn_close(BTA_ID_HS, 1, client_cb->peer_addr); in bta_hf_client_rfc_close()
296 evt.conn.bd_addr = client_cb->peer_addr; in bta_hf_client_rfc_close()
303 bta_sys_sco_unuse(BTA_ID_HS, 1, client_cb->peer_addr); in bta_hf_client_rfc_close()
[all …]
Dbta_hf_client_main.cc336 msg.api_open.bd_addr = client_cb->peer_addr; in bta_hf_client_resume_open()
371 const RawAddress& peer_addr) { in bta_hf_client_collision_cback() argument
372 tBTA_HF_CLIENT_CB* client_cb = bta_hf_client_find_cb_by_bda(peer_addr); in bta_hf_client_collision_cback()
493 tBTA_HF_CLIENT_CB* bta_hf_client_find_cb_by_bda(const RawAddress& peer_addr) { in bta_hf_client_find_cb_by_bda() argument
497 if (client_cb->is_allocated && peer_addr == client_cb->peer_addr) { in bta_hf_client_find_cb_by_bda()
609 client_cb->peer_addr = bd_addr; in bta_hf_client_allocate_handle()
749 << client_cb->state << " device " << client_cb->peer_addr; in bta_hf_client_sm_execute()
752 evt.bd_addr = client_cb->peer_addr; in bta_hf_client_sm_execute()
763 VLOG(2) << __func__ << ": device " << client_cb->peer_addr in bta_hf_client_sm_execute()
953 uint8_t* a = client_cb->peer_addr.address; in bta_hf_client_dump_statistics()
Dbta_hf_client_sco.cc87 evt.bd_addr = client_cb->peer_addr; in bta_hf_client_cback_sco()
126 bta_sys_sco_use(BTA_ID_HS, 1, client_cb->peer_addr); in bta_hf_client_sco_conn_rsp()
257 bta_sys_sco_use(BTA_ID_HS, 1, client_cb->peer_addr); in bta_hf_client_sco_create()
260 status = BTM_CreateSco(&client_cb->peer_addr, is_orig, params.packet_types, in bta_hf_client_sco_create()
578 bta_sys_sco_open(BTA_ID_HS, 1, client_cb->peer_addr); in bta_hf_client_sco_conn_open()
613 bta_sys_sco_close(BTA_ID_HS, 1, client_cb->peer_addr); in bta_hf_client_sco_conn_close()
615 bta_sys_sco_unuse(BTA_ID_HS, 1, client_cb->peer_addr); in bta_hf_client_sco_conn_close()
Dbta_hf_client_rfc.cc103 RawAddress peer_addr = RawAddress::kEmpty; in bta_hf_client_mgmt_cback() local
105 int status = PORT_CheckConnection(port_handle, &peer_addr, &lcid); in bta_hf_client_mgmt_cback()
112 bta_hf_client_allocate_handle(peer_addr, &tmp_handle); in bta_hf_client_mgmt_cback()
138 << client_cb->peer_addr; in bta_hf_client_mgmt_cback()
245 BTA_HF_CLIENT_MTU, client_cb->peer_addr, &(client_cb->conn_handle), in bta_hf_client_rfc_do_open()
/packages/modules/Bluetooth/system/stack/include/
Dacl_api.h32 bool BTM_is_sniff_allowed_for(const RawAddress& peer_addr);
34 void BTM_unblock_sniff_mode_for(const RawAddress& peer_addr);
35 void BTM_block_sniff_mode_for(const RawAddress& peer_addr);
36 void BTM_unblock_role_switch_for(const RawAddress& peer_addr);
37 void BTM_block_role_switch_for(const RawAddress& peer_addr);
38 void BTM_unblock_role_switch_and_sniff_mode_for(const RawAddress& peer_addr);
39 void BTM_block_role_switch_and_sniff_mode_for(const RawAddress& peer_addr);
/packages/modules/Bluetooth/system/bta/av/
Dbta_av_act.cc204 const RawAddress* peer_addr) { in bta_av_rc_ctrl_cback() argument
226 p_msg->peer_addr = (peer_addr) ? (*peer_addr) : RawAddress::kEmpty; in bta_av_rc_ctrl_cback()
493 if (p_scb && p_scb->PeerAddress() == p_data->rc_conn_chg.peer_addr) { in bta_av_rc_opened()
546 p_lcb->addr = p_data->rc_conn_chg.peer_addr; in bta_av_rc_opened()
556 rc_open.peer_addr = p_data->rc_conn_chg.peer_addr; in bta_av_rc_opened()
1130 p_lcb = bta_av_find_lcb(p_data->conn_chg.peer_addr, BTA_AV_LCB_FIND); in bta_av_conn_chg()
1169 p_data->conn_chg.peer_addr.ToString().c_str()); in bta_av_conn_chg()
1172 p_lcb_rc->addr == p_data->conn_chg.peer_addr) { in bta_av_conn_chg()
2015 rc_open.peer_addr = p_scb->PeerAddress(); in bta_av_rc_disc_done()
2030 rc_open.peer_addr = p_scb->PeerAddress(); in bta_av_rc_disc_done()
[all …]
Dbta_av_int.h172 const RawAddress& peer_addr,
176 const RawAddress& peer_addr,
182 const RawAddress& peer_addr,
188 const RawAddress& peer_addr, uint16_t mtu);
190 const RawAddress& peer_addr);
192 const RawAddress& peer_addr,
196 const RawAddress& peer_addr);
200 const RawAddress& peer_addr, uint16_t delay);
202 const RawAddress& peer_addr,
206 const RawAddress& peer_addr);
[all …]
/packages/modules/Bluetooth/system/stack/avct/
Davct_lcb_act.cc188 L2CA_ConnectReq2(AVCT_PSM, p_lcb->peer_addr, BTA_SEC_AUTHENTICATE); in avct_lcb_chnl_open()
237 &p_lcb->peer_addr); in avct_lcb_open_ind()
247 &p_lcb->peer_addr); in avct_lcb_open_ind()
276 &p_lcb->peer_addr); in avct_lcb_open_fail()
299 avct_ccb_dealloc(p_ccb, AVCT_DISCONNECT_IND_EVT, 0, &p_lcb->peer_addr); in avct_lcb_close_ind()
304 &p_lcb->peer_addr); in avct_lcb_close_ind()
337 avct_ccb_dealloc(p_ccb, event, p_data->result, &p_lcb->peer_addr); in avct_lcb_close_cfm()
341 &p_lcb->peer_addr); in avct_lcb_close_cfm()
360 AVCT_CONNECT_CFM_EVT, 0, &p_lcb->peer_addr); in avct_lcb_bind_conn()
447 &p_lcb->peer_addr); in avct_lcb_cong_ind()
Davct_bcb_act.cc118 L2CA_ConnectReq2(AVCT_BR_PSM, p_lcb->peer_addr, BTA_SEC_AUTHENTICATE); in avct_bcb_chnl_open()
171 0, &p_ccb->p_lcb->peer_addr); in avct_bcb_open_ind()
177 p_bcb->peer_addr == p_ccb->p_lcb->peer_addr) { in avct_bcb_open_ind()
183 0, &p_ccb->p_lcb->peer_addr); in avct_bcb_open_ind()
252 &p_lcb->peer_addr); in avct_bcb_close_ind()
256 &p_lcb->peer_addr); in avct_bcb_close_ind()
296 &p_bcb->peer_addr); in avct_bcb_close_cfm()
316 &p_lcb->peer_addr); in avct_bcb_bind_conn()
396 &p_lcb->peer_addr); in avct_bcb_cong_ind()
Davct_api.cc120 const RawAddress& peer_addr) { in AVCT_CreateConn() argument
138 p_lcb = avct_lcb_by_bd(peer_addr); in AVCT_CreateConn()
140 p_lcb = avct_lcb_alloc(peer_addr); in AVCT_CreateConn()
259 p_bcb->peer_addr = p_ccb->p_lcb->peer_addr; in AVCT_CreateBrowse()
/packages/modules/Bluetooth/system/profile/avrcp/
Dconnection_handler.cc227 const RawAddress* peer_addr) { in InitiatorControlCb() argument
232 << " addr=" << (peer_addr ? peer_addr->ToString() : "none"); in InitiatorControlCb()
238 const auto& feature_iter = feature_map_.find(*peer_addr); in InitiatorControlCb()
260 *peer_addr, !supports_browsing, callback, ctrl_mtu, browse_mtu); in InitiatorControlCb()
315 const RawAddress* peer_addr) { in AcceptorControlCb() argument
320 << " addr=" << (peer_addr ? peer_addr->ToString() : "none"); in AcceptorControlCb()
331 *peer_addr, false, callback, ctrl_mtu, browse_mtu); in AcceptorControlCb()
338 << peer_addr->ToString(); in AcceptorControlCb()
361 SdpLookup(*peer_addr, base::Bind(sdp_lambda, this, handle), false); in AcceptorControlCb()
/packages/modules/Bluetooth/system/btif/include/
Dbtif_rc.h26 uint8_t btif_rc_get_connected_peer_handle(const RawAddress& peer_addr);
27 void btif_rc_check_handle_pending_play(const RawAddress& peer_addr,
29 bool btif_rc_is_connected_peer(const RawAddress& peer_addr);
Dbtif_av_co.h28 bool bta_av_co_set_active_peer(const RawAddress& peer_addr);
34 void bta_av_co_get_peer_params(const RawAddress& peer_addr,
55 const RawAddress& peer_addr,
/packages/modules/Bluetooth/system/bta/include/
Dbta_av_api.h239 RawAddress peer_addr; member
246 RawAddress peer_addr; member
252 RawAddress peer_addr; member
259 RawAddress peer_addr; member
266 RawAddress peer_addr; member
273 RawAddress peer_addr; member

123