Home
last modified time | relevance | path

Searched refs:new_role (Results 1 – 25 of 38) sorted by relevance

12

/packages/modules/Bluetooth/system/stack/acl/
Dbtm_acl.cc114 tHCI_ROLE new_role);
124 tHCI_ROLE new_role = HCI_ROLE_UNKNOWN; member
187 void NotifyAclRoleSwitchComplete(const RawAddress& bda, tHCI_ROLE new_role, in NotifyAclRoleSwitchComplete() argument
189 BTA_dm_report_role_change(bda, new_role, hci_status); in NotifyAclRoleSwitchComplete()
1337 void acl_cache_role(const RawAddress& bd_addr, tHCI_ROLE new_role, in acl_cache_role() argument
1341 role_change.new_role = new_role; in acl_cache_role()
1362 tHCI_ROLE new_role) { in btm_acl_role_changed() argument
1367 acl_cache_role(bd_addr, new_role, /*overwrite_cache=*/true); in btm_acl_role_changed()
1374 bd_addr, hci_error_code_text(hci_status), RoleText(new_role)); in btm_acl_role_changed()
1378 p_switch_role->role = new_role; in btm_acl_role_changed()
[all …]
/packages/modules/Bluetooth/system/bta/sys/
Dbta_sys_conn.cc77 void bta_sys_notify_role_chg(const RawAddress& peer_addr, tHCI_ROLE new_role, in bta_sys_notify_role_chg() argument
80 RoleText(new_role), hci_error_code_text(hci_status)); in bta_sys_notify_role_chg()
82 bta_sys_cb.p_role_cb(BTA_SYS_ROLE_CHANGE, new_role, hci_status, peer_addr); in bta_sys_notify_role_chg()
Dbta_sys.h195 tHCI_ROLE new_role,
267 void bta_sys_notify_role_chg(const RawAddress& peer_addr, tHCI_ROLE new_role,
/packages/modules/Bluetooth/system/stack/include/
Dacl_hci_link_interface.h43 tHCI_ROLE new_role);
76 void acl_cache_role(const RawAddress& bd_addr, tHCI_ROLE new_role,
Dacl_client_callbacks.h31 virtual void on_acl_role_change(const RawAddress bd_addr, hci_role_t new_role,
/packages/modules/Bluetooth/tools/rootcanal/test/LMP/LIH/
DBV_02_C.py71 … hci.RoleChange(status=ErrorCode.SUCCESS, bd_addr=peer_address, new_role=hci.Role.PERIPHERAL))
80 …pect_evt(hci.RoleChange(status=ErrorCode.SUCCESS, bd_addr=peer_address, new_role=hci.Role.CENTRAL))
DBV_149_C.py68 …hci.RoleChange(status=ErrorCode.ROLE_SWITCH_FAILED, bd_addr=peer_address, new_role=hci.Role.CENTRA…
82 …hci.RoleChange(status=ErrorCode.ROLE_CHANGE_NOT_ALLOWED, bd_addr=peer_address, new_role=hci.Role.C…
DBV_143_C.py79 new_role=hci.Role.PERIPHERAL))
86 …hci.RoleChange(status=ErrorCode.ROLE_SWITCH_FAILED, bd_addr=peer_address, new_role=hci.Role.PERIPH…
DBV_78_C.py48 … hci.RoleChange(status=ErrorCode.SUCCESS, bd_addr=peer_address, new_role=hci.Role.PERIPHERAL))
DBV_79_C.py50 …pect_evt(hci.RoleChange(status=ErrorCode.SUCCESS, bd_addr=peer_address, new_role=hci.Role.CENTRAL))
DBV_01_C.py77 …pect_evt(hci.RoleChange(status=ErrorCode.SUCCESS, bd_addr=peer_address, new_role=hci.Role.CENTRAL))
/packages/modules/Bluetooth/system/bta/dm/
Dbta_dm_act.cc602 static void handle_role_change(const RawAddress& bd_addr, tHCI_ROLE new_role, in handle_role_change() argument
609 bd_addr, RoleText(new_role), hci_error_code_text(hci_status)); in handle_role_change()
616 bd_addr, p_dev->info_text(), RoleText(new_role), in handle_role_change()
623 if (new_role == HCI_ROLE_PERIPHERAL && bta_dm_cb.device_list.count > 1 && in handle_role_change()
643 } else if (p_bta_dm_cfg->avoid_scatter && (new_role == HCI_ROLE_CENTRAL)) { in handle_role_change()
659 bta_sys_notify_role_chg(bd_addr, new_role, hci_status); in handle_role_change()
662 void BTA_dm_report_role_change(const RawAddress bd_addr, tHCI_ROLE new_role, in BTA_dm_report_role_change() argument
665 new_role, hci_status)); in BTA_dm_report_role_change()
/packages/modules/Bluetooth/system/bta/av/
Dbta_av_main.cc114 static void bta_av_sys_rs_cback(tBTA_SYS_CONN_STATUS status, tHCI_ROLE new_role,
926 tHCI_ROLE new_role, tHCI_STATUS hci_status, in bta_av_sys_rs_cback() argument
934 peer_addr, new_role, hci_status, bta_av_cb.rs_idx); in bta_av_sys_rs_cback()
946 peer_addr, new_role, hci_status, p_scb->hndl); in bta_av_sys_rs_cback()
949 p_buf->new_role = new_role; in bta_av_sys_rs_cback()
982 peer_addr, p_scb->PeerAddress(), new_role, hci_status); in bta_av_sys_rs_cback()
Dbta_av_aact.cc2276 uint8_t new_role = p_scb->role; in bta_av_start_ok() local
2300 if (new_role & BTA_AV_ROLE_START_INT) initiator = true; in bta_av_start_ok()
2390 if (new_role & BTA_AV_ROLE_START_INT) { in bta_av_start_ok()
2391 new_role &= ~BTA_AV_ROLE_START_INT; in bta_av_start_ok()
2392 } else if ((new_role & BTA_AV_ROLE_AD_ACP) && in bta_av_start_ok()
2393 (new_role & BTA_AV_ROLE_SUSPEND_OPT)) { in bta_av_start_ok()
2418 p_scb->role = new_role; in bta_av_start_ok()
/packages/modules/Bluetooth/system/bta/include/
Dbta_dm_acl.h31 void BTA_dm_report_role_change(const RawAddress bd_addr, tHCI_ROLE new_role,
/packages/modules/Bluetooth/system/test/mock/
Dmock_bta_dm_act.h127 std::function<void(const RawAddress bd_addr, tHCI_ROLE new_role,
131 void operator()(const RawAddress bd_addr, tHCI_ROLE new_role, in operator()
133 body(bd_addr, new_role, hci_status); in operator()
Dmock_bta_dm_act.cc114 void BTA_dm_report_role_change(const RawAddress bd_addr, tHCI_ROLE new_role, in BTA_dm_report_role_change() argument
117 test::mock::bta_dm_act::BTA_dm_report_role_change(bd_addr, new_role, in BTA_dm_report_role_change()
Dmock_stack_btm_sec.h815 tHCI_ROLE new_role)>
819 tHCI_ROLE new_role) { in operator()
820 body(hci_status, bd_addr, new_role); in operator()
Dmock_stack_btm_sec.cc435 tHCI_ROLE new_role) { in btm_sec_role_changed() argument
438 new_role); in btm_sec_role_changed()
Dmock_stack_acl.h863 tHCI_ROLE new_role)>
867 tHCI_ROLE new_role) { in operator()
868 body(hci_status, bd_addr, new_role); in operator()
/packages/modules/Bluetooth/system/gd/l2cap/classic/internal/
Dlink.cc436 void Link::OnRoleChange(hci::ErrorCode hci_status, hci::Role new_role) { in OnRoleChange() argument
437 role_ = new_role; in OnRoleChange()
438 link_manager_->OnRoleChange(hci_status, GetDevice().GetAddress(), new_role); in OnRoleChange()
/packages/modules/Bluetooth/system/gd/hci/acl_manager/
Dconnection_management_callbacks.h84 virtual void OnRoleChange(hci::ErrorCode hci_status, Role new_role) = 0;
Dconnection_management_callbacks_mock.h86 MOCK_METHOD(void, OnRoleChange, (ErrorCode hci_status, Role new_role), (override));
/packages/modules/Bluetooth/system/main/shim/
Dacl_legacy_interface.h102 tHCI_ROLE new_role);
/packages/modules/Bluetooth/system/stack/btm/
Dbtm_sec.h653 tHCI_ROLE new_role);

12