Searched refs:role (Results 1 - 25 of 61) sorted by path

123

/system/bt/bta/ag/
H A Dbta_ag_act.cc196 /* set role */
197 p_scb->role = BTA_AG_INT;
339 p_scb->role = 0;
377 p_scb->role = 0;
519 /* set role */
520 p_scb->role = BTA_AG_ACP;
H A Dbta_ag_int.h52 /* profile role for connection */
222 uint8_t role; /* initiator/acceptor role */ member in struct:tBTA_AG_SCB
H A Dbta_ag_sdp.cc84 if (p_scb->role == BTA_AG_ACP) {
304 } else if (service & BTA_HSP_SERVICE_MASK && p_scb->role == BTA_AG_INT) {
330 if (p_scb->role == BTA_AG_INT) {
431 if (service & BTA_HFP_SERVICE_MASK && p_scb->role == BTA_AG_INT) {
440 else if (service & BTA_HFP_SERVICE_MASK && p_scb->role == BTA_AG_ACP) {
448 else if (service & BTA_HSP_SERVICE_MASK && p_scb->role == BTA_AG_INT) {
/system/bt/bta/av/
H A Dbta_av_aact.cc297 LOG_ERROR(LOG_TAG, "%s: peer %s role:0x%x channel:%d handle:0x%x", __func__,
298 p_scb->PeerAddress().ToString().c_str(), p_scb->role, p_scb->chnl,
301 /* if start failed, clear role */
302 p_scb->role &= ~BTA_AV_ROLE_START_INT;
331 (p_scb->use_rc || (p_scb->role & BTA_AV_ROLE_AD_ACP))) {
622 * Description Switch role was not started and a timer was started.
623 * another attempt to switch role now - still opening.
652 APPL_TRACE_ERROR("%s: peer %s role switch failed (wait=0x%x)", __func__,
672 * Description Handle the role changed event
681 APPL_TRACE_DEBUG("%s: peer %s q_tag:%d, wait:0x%x, role
893 uint8_t role = BTA_AV_ROLE_AD_INT; local
[all...]
H A Dbta_av_act.cc305 uint8_t bta_av_rc_create(tBTA_AV_CB* p_cb, uint8_t role, uint8_t shdl, argument
321 if (role == AVCT_INT) {
335 ccb.conn = role;
364 "%s: create %d, role: %d, shdl:%d, rc_handle:%d, lidx:%d, status:0x%x",
365 __func__, i, role, shdl, p_rcb->handle, lidx, p_rcb->status);
1255 * restore the switch role in default link policy */
1257 /* allow role switch, if this is the last connection */
1789 /* check peer version and whether support CT and TG role */
1795 * TG role
H A Dbta_av_int.h232 BTA_AV_RS_OK, /* the role switch result - successful */
233 BTA_AV_RS_FAIL, /* the role switch result - failed */
234 BTA_AV_RS_DONE /* the role switch is done - continue */
389 /* initiator/acceptor role for adaption */
425 tBTA_AV_API_OPEN open; /* used only before open and role switch
437 0x04 /* waiting for role switch result after API_OPEN, before STR_OPENED */
439 0x08 /* waiting for role switch result before streaming */
441 0x10 /* started while waiting for role switch result */
444 0x40 /* set when the timer is used by role switch */
445 #define BTA_AV_WAIT_ROLE_SW_FAILED 0x80 /* role switc
493 uint8_t role; member in struct:final
[all...]
H A Dbta_av_main.cc63 /* the delay time in milliseconds to retry role switch */
432 APPL_TRACE_DEBUG("%s: scb hndl x%x, role x%x", __func__, p_scb->hndl,
433 p_scb->role);
545 /* For the Audio Sink role we support additional TG to support
681 /* if the AV and AVK are both supported, it cannot support the CT role
823 (((p_scb->role & BTA_AV_ROLE_AD_ACP) == 0) || // Outgoing connection or
844 "%s: peer %s channel:%d bta_av_cb.audio_open_cnt:%d role:0x%x "
847 bta_av_cb.audio_open_cnt, p_scb->role, bta_av_cb.features,
885 * Description Receives the role change event from dm
905 * role chang
1084 uint8_t role; local
[all...]
/system/bt/bta/dm/
H A Dbta_dm_act.cc908 /* want to restore/set the role switch policy */
911 /* if nobody wants to insist on the role */
918 /* want to remove the role switch policy */
2662 /* more than one connections and the AV connection is role switched
2678 /* there's AV no activity on this link and role switch happened
2860 * Description Receives the role switch complete event
2893 /* avoid role switch upon inquiry if a2dp is actively streaming as it
2908 /* make master and take away the role switch policy */
2912 /* the role switch command is actually sent */
2967 tBTA_PREF_ROLES role; local
[all...]
/system/bt/bta/gatt/
H A Dbta_gattc_act.cc1056 p_buf->int_conn.role = L2CA_GetBleConnRole(bdaddr);
H A Dbta_gattc_int.h168 uint8_t role; member in struct:__anon113
410 const RawAddress& remote_bda, uint8_t role);
H A Dbta_gattc_utils.cc466 uint8_t role) {
475 role == HCI_ROLE_MASTER)
609 if (p_msg->int_conn.role == HCI_ROLE_SLAVE)
618 if (/*p_msg->int_conn.role == HCI_ROLE_SLAVE || */
621 p_msg->int_conn.role)) {
465 bta_gattc_check_bg_conn(tGATT_IF client_if, const RawAddress& remote_bda, uint8_t role) argument
/system/bt/bta/hf_client/
H A Dbta_hf_client_act.cc115 /* set role */
116 client_cb->role = BTA_HF_CLIENT_INT;
172 /* set role */
173 client_cb->role = BTA_HF_CLIENT_ACP;
229 client_cb->role = BTA_HF_CLIENT_ACP;
H A Dbta_hf_client_int.h35 /* profile role for connection */
173 uint8_t role; /* initiator/acceptor role */ member in struct:__anon160
H A Dbta_hf_client_sdp.cc64 if (client_cb->role == BTA_HF_CLIENT_ACP)
236 if (client_cb->role == BTA_HF_CLIENT_INT) {
302 if (client_cb->role == BTA_HF_CLIENT_INT) {
/system/bt/bta/include/
H A Dbta_jv_api.h532 void BTA_JvL2capConnect(int conn_type, tBTA_SEC sec_mask, tBTA_JV_ROLE role,
578 void BTA_JvL2capStartServer(int conn_type, tBTA_SEC sec_mask, tBTA_JV_ROLE role,
704 tBTA_JV_STATUS BTA_JvRfcommConnect(tBTA_SEC sec_mask, tBTA_JV_ROLE role,
737 tBTA_JV_STATUS BTA_JvRfcommStartServer(tBTA_SEC sec_mask, tBTA_JV_ROLE role,
H A Dbta_pan_api.h58 const char* p_srv_name; /* service name for the PAN role */
60 tBTA_SEC sec_mask; /* security setting for the role */
66 tBTA_PAN_STATUS status; /* status of set role event */
67 tBTA_PAN_ROLE role; /* PAN roles successfully registered */ member in struct:__anon432
82 tBTA_PAN_ROLE local_role; /* Local device PAN role for the connection */
83 tBTA_PAN_ROLE peer_role; /* Peer device PAN role for the connection */
148 void BTA_PanSetRole(tBTA_PAN_ROLE role, tBTA_PAN_ROLE_INFO* p_user_info,
/system/bt/bta/jv/
H A Dbta_jv_act.cc906 void bta_jv_l2cap_connect(int32_t type, tBTA_SEC sec_mask, tBTA_JV_ROLE role, argument
930 /* TODO: DM role manager
931 L2CA_SetDesireRole(role);
1059 tBTA_JV_ROLE role, uint16_t local_psm,
1087 /* TODO DM role manager
1088 L2CA_SetDesireRole(role);
1329 void bta_jv_rfcomm_connect(tBTA_SEC sec_mask, tBTA_JV_ROLE role, argument
1337 /* TODO DM role manager
1338 L2CA_SetDesireRole(role);
1628 void bta_jv_rfcomm_start_server(tBTA_SEC sec_mask, tBTA_JV_ROLE role, argument
1058 bta_jv_l2cap_start_server(int32_t type, tBTA_SEC sec_mask, tBTA_JV_ROLE role, uint16_t local_psm, uint16_t rx_mtu, std::unique_ptr<tL2CAP_CFG_INFO> cfg_param, std::unique_ptr<tL2CAP_ERTM_INFO> ertm_info, tBTA_JV_L2CAP_CBACK* p_cback, uint32_t l2cap_socket_id) argument
[all...]
H A Dbta_jv_api.cc264 void BTA_JvL2capConnect(int conn_type, tBTA_SEC sec_mask, tBTA_JV_ROLE role, argument
275 Bind(&bta_jv_l2cap_connect, conn_type, sec_mask, role,
333 void BTA_JvL2capStartServer(int conn_type, tBTA_SEC sec_mask, tBTA_JV_ROLE role, argument
343 Bind(&bta_jv_l2cap_start_server, conn_type, sec_mask, role,
535 tBTA_JV_STATUS BTA_JvRfcommConnect(tBTA_SEC sec_mask, tBTA_JV_ROLE role, argument
545 Bind(&bta_jv_rfcomm_connect, sec_mask, role, remote_scn,
590 tBTA_JV_STATUS BTA_JvRfcommStartServer(tBTA_SEC sec_mask, tBTA_JV_ROLE role, argument
606 Bind(&bta_jv_rfcomm_start_server, sec_mask, role, local_scn,
H A Dbta_jv_int.h154 tBTA_JV_ROLE role, uint16_t remote_psm,
163 int32_t type, tBTA_SEC sec_mask, tBTA_JV_ROLE role, uint16_t local_psm,
171 extern void bta_jv_rfcomm_connect(tBTA_SEC sec_mask, tBTA_JV_ROLE role,
177 extern void bta_jv_rfcomm_start_server(tBTA_SEC sec_mask, tBTA_JV_ROLE role,
/system/bt/bta/pan/
H A Dbta_pan_act.cc359 p_data->api_set_role.role, sec, p_data->api_set_role.user_name,
362 bta_pan.set_role.role = p_data->api_set_role.role;
364 if (p_data->api_set_role.role & PAN_ROLE_NAP_SERVER)
369 if (p_data->api_set_role.role & PAN_ROLE_GN_SERVER)
374 if (p_data->api_set_role.role & PAN_ROLE_CLIENT)
525 If there are, provide a special app_id to dm to enforce master role only.
H A Dbta_pan_api.cc97 void BTA_PanSetRole(tBTA_PAN_ROLE role, tBTA_PAN_ROLE_INFO* p_user_info, argument
104 p_buf->role = role;
106 if (p_user_info && (role & BTA_PAN_ROLE_PANU)) {
114 if (p_gn_info && (role & BTA_PAN_ROLE_GN)) {
122 if (p_nap_info && (role & BTA_PAN_ROLE_NAP)) {
182 void BTA_PanSetRole(UNUSED_ATTR tBTA_PAN_ROLE role, argument
H A Dbta_pan_int.h75 tBTA_PAN_ROLE role; member in struct:__anon459
88 tBTA_PAN_ROLE local_role; /* local role */
89 tBTA_PAN_ROLE peer_role; /* peer role */
127 tBTA_PAN_ROLE local_role; /* local role */
128 tBTA_PAN_ROLE peer_role; /* peer role */
/system/bt/btif/src/
H A Dbtif_pan.cc586 int btpan_role = bta_role_to_btpan(p_data->set_role.role);
632 /* debug("conn bta local_role:%d, bta remote role:%d", conn->local_role,
H A Dbtif_sock_rfc.cc98 int role; member in struct:__anon605
251 accept_rs->role = srv_rs->role;
355 BTA_JvRfcommConnect(slot->security, slot->role, slot->scn, slot->addr,
666 BTA_JvRfcommStartServer(rs->security, rs->role, rs->scn,
689 BTA_JvRfcommStartServer(slot->security, slot->role, slot->scn,
706 if (BTA_JvRfcommConnect(slot->security, slot->role,
/system/bt/stack/avct/
H A Davct_api.cc121 * the p_cc->role parameter. When this function is called to
138 AVCT_TRACE_API("AVCT_CreateConn: %d, control:%d", p_cc->role, p_cc->control);
149 if (p_cc->role == AVCT_INT) {
222 * the role parameter. When this function is called to
233 uint16_t AVCT_CreateBrowse(uint8_t handle, uint8_t role) { argument
239 AVCT_TRACE_API("AVCT_CreateBrowse: %d", role);
253 if (role == AVCT_INT) {

Completed in 310 milliseconds

123