Lines Matching full:role
56 /* the delay time in milliseconds to retry role switch */
413 if (/*((p_scb && (p_scb->role & BTA_AV_ROLE_AD_ACP)) ||
427 APPL_TRACE_DEBUG2("scb hndl x%x, role x%x", p_scb->hndl, p_scb->role);
616 /* if the AV and AVK are both supported, it cannot support the CT role */
764 ((0 == (p_scb->role & BTA_AV_ROLE_AD_ACP)) || /* Outgoing connection or */
823 ** Description Receives the role change event from dm
839 /* loop through all the SCBs to find matching peer addresses and report the role change event */
862 /* restore role switch policy, if role switch failed */
870 /* if BTA_AvOpen() was called for other device, which caused the role switch of the peer_addr, */
954 ** channel that is local as slave role.
955 ** If so, role switch and remove it from link policy.
957 ** Returns TRUE, if role switch is done
962 UINT8 role;
976 BTM_GetRole(p_scbi->peer_addr, &role);
977 /* this channel is open - clear the role switch link policy for this link */
978 if(BTM_ROLE_MASTER != role)
984 /* can not switch role on SCBI
1003 ** If so, check if the link role fits the requirements.
1005 ** Returns TRUE, if role is ok
1010 UINT8 role;
1014 if (BTM_GetRole(p_scb->peer_addr, &role) == BTM_SUCCESS)
1016 APPL_TRACE_ERROR5("bta_av_link_role_ok hndl:x%x role:%d, conn_audio:x%x, bits:%d, features:x%x", p_scb->hndl, role, bta_av_cb.conn_audio, bits, bta_av_cb.features);
1017 if (BTM_ROLE_MASTER != role && (A2D_BitsSet(bta_av_cb.conn_audio) > bits || (bta_av_cb.features & BTA_AV_FEAT_MASTER)))
1024 /* can not switch role on SCB - start the timer on SCB */