Searched defs:new_role (Results 1 - 9 of 9) sorted by relevance

/system/bt/bta/sys/
H A Dbta_sys_conn.cc100 void bta_sys_notify_role_chg(const RawAddress& peer_addr, uint8_t new_role, argument
102 APPL_TRACE_DEBUG("%s: peer %s new_role:%d hci_status:0x%x", __func__,
103 peer_addr.ToString().c_str(), new_role, hci_status);
105 bta_sys_cb.p_role_cb(BTA_SYS_ROLE_CHANGE, new_role, hci_status, peer_addr);
/system/bt/stack/l2cap/
H A Dl2c_link.cc853 void l2c_link_role_changed(const RawAddress* bd_addr, uint8_t new_role, argument
858 /* Make sure not called from HCI Command Status (bd_addr and new_role are
864 p_lcb->link_role = new_role;
H A Dl2c_api.cc1206 uint8_t L2CA_SetDesireRole(uint8_t new_role) { argument
1207 L2CAP_TRACE_API("L2CA_SetDesireRole() new:x%x, disallow_switch:%d", new_role,
1210 if (L2CAP_ROLE_CHECK_SWITCH != (L2CAP_ROLE_CHECK_SWITCH & new_role)) {
1212 if (new_role & L2CAP_ROLE_ALLOW_SWITCH) {
1215 if (new_role & L2CAP_ROLE_DISALLOW_SWITCH) {
1220 if (new_role == HCI_ROLE_MASTER || new_role == HCI_ROLE_SLAVE)
1221 l2cb.desire_role = new_role;
/system/bt/stack/btm/
H A Dbtm_acl.cc536 tBTM_STATUS BTM_SwitchRole(const RawAddress& remote_bd_addr, uint8_t new_role, argument
547 LOG_INFO(LOG_TAG, "%s: peer %s new_role=0x%x p_cb=%p p_switch_role_cb=%p",
548 __func__, remote_bd_addr.ToString().c_str(), new_role, p_cb,
565 if (p->link_role == new_role) return (BTM_SUCCESS);
615 btsnd_hcic_switch_role(remote_bd_addr, new_role);
627 btm_cb.devcb.switch_role_ref_data.role = new_role;
691 evt.new_role = btm_cb.devcb.switch_role_ref_data.role;
699 "%s: Role Switch Event: new_role 0x%02x, HCI Status 0x%02x, rs_st:%d",
700 __func__, evt.new_role, evt.hci_status, p->switch_role_state);
1455 uint8_t new_role) {
1454 btm_acl_role_changed(uint8_t hci_status, const RawAddress* bd_addr, uint8_t new_role) argument
[all...]
/system/bt/bta/av/
H A Dbta_av_aact.cc2225 uint8_t new_role = p_scb->role; local
2249 if (new_role & BTA_AV_ROLE_START_INT) initiator = true;
2343 if (new_role & BTA_AV_ROLE_START_INT) {
2344 new_role &= ~BTA_AV_ROLE_START_INT;
2345 } else if ((new_role & BTA_AV_ROLE_AD_ACP) &&
2346 (new_role & BTA_AV_ROLE_SUSPEND_OPT)) {
2370 p_scb->role = new_role;
H A Dbta_av_int.h365 uint8_t new_role; member in struct:__anon56
/system/bt/bta/dm/
H A Dbta_dm_act.cc2645 static void handle_role_change(const RawAddress& bd_addr, uint8_t new_role, argument
2653 "%s: peer %s info:0x%x new_role:0x%x dev count:%d hci_status=%d",
2654 __func__, bd_addr.ToString().c_str(), p_dev->info, new_role,
2660 if (new_role == HCI_ROLE_SLAVE && bta_dm_cb.device_list.count > 1 &&
2667 } else if (p_bta_dm_cfg->avoid_scatter && (new_role == HCI_ROLE_MASTER)) {
2683 bta_sys_notify_role_chg(bd_addr, new_role, hci_status);
2685 conn.role_chg.new_role = (uint8_t)new_role;
2844 tmp.new_role, tmp.hci_status));
/system/bt/bta/include/
H A Dbta_api.h548 uint8_t new_role; /* the new connection role */ member in struct:__anon244
/system/bt/stack/include/
H A Dbtm_api_types.h876 uint8_t new_role; member in struct:__anon1136

Completed in 395 milliseconds