/system/bt/stack/pan/ |
D | pan_api.c | 134 tPAN_RESULT PAN_SetRole (UINT8 role, in PAN_SetRole() argument 147 if ((!(role & (PAN_ROLE_CLIENT | PAN_ROLE_GN_SERVER | PAN_ROLE_NAP_SERVER))) && in PAN_SetRole() 148 role != PAN_ROLE_INACTIVE) in PAN_SetRole() 150 PAN_TRACE_ERROR ("PAN role %d is invalid", role); in PAN_SetRole() 155 if (pan_cb.role == role) in PAN_SetRole() 157 PAN_TRACE_EVENT ("PAN role already was set to: %d", role); in PAN_SetRole() 167 PAN_TRACE_API ("PAN_SetRole() called with role 0x%x", role); in PAN_SetRole() 173 if (role & PAN_ROLE_NAP_SERVER) in PAN_SetRole() 185 else if (pan_cb.role & PAN_ROLE_NAP_SERVER) in PAN_SetRole() 201 if (role & PAN_ROLE_GN_SERVER) in PAN_SetRole() [all …]
|
D | pan_main.c | 183 … handle, pan_cb.role, local_uuid->uu.uuid16, remote_uuid->uu.uuid16, is_role_change?"YES":"NO"); in pan_conn_ind_cb() 213 if (((!(pan_cb.role & UUID_SERVCLASS_PANU)) in pan_conn_ind_cb() 215 ((!(pan_cb.role & UUID_SERVCLASS_GN)) in pan_conn_ind_cb() 217 ((!(pan_cb.role & UUID_SERVCLASS_NAP)) in pan_conn_ind_cb()
|
/system/bt/bta/pan/ |
D | bta_pan_api.c | 103 void BTA_PanSetRole(tBTA_PAN_ROLE role, tBTA_PAN_ROLE_INFO *p_user_info, tBTA_PAN_ROLE_INFO *p_gn_i… in BTA_PanSetRole() argument 110 p_buf->role = role; in BTA_PanSetRole() 112 if (p_user_info && (role & BTA_PAN_ROLE_PANU)) { in BTA_PanSetRole() 122 if (p_gn_info && (role & BTA_PAN_ROLE_GN)) { in BTA_PanSetRole() 132 if (p_nap_info && (role & BTA_PAN_ROLE_NAP)) { in BTA_PanSetRole() 201 void BTA_PanSetRole(tBTA_PAN_ROLE role, tBTA_PAN_ROLE_INFO *p_user_info, tBTA_PAN_ROLE_INFO *p_gn_i… in BTA_PanSetRole() argument 204 UNUSED(role); in BTA_PanSetRole()
|
D | bta_pan_act.c | 370 status = PAN_SetRole(p_data->api_set_role.role, sec, in bta_pan_set_role() 375 set_role.role = p_data->api_set_role.role; in bta_pan_set_role() 378 if(p_data->api_set_role.role & PAN_ROLE_NAP_SERVER ) in bta_pan_set_role() 383 if(p_data->api_set_role.role & PAN_ROLE_GN_SERVER ) in bta_pan_set_role() 388 if(p_data->api_set_role.role & PAN_ROLE_CLIENT ) in bta_pan_set_role()
|
/system/bt/bta/jv/ |
D | bta_jv_api.c | 309 tBTA_JV_STATUS BTA_JvL2capConnectLE(tBTA_SEC sec_mask, tBTA_JV_ROLE role, in BTA_JvL2capConnectLE() argument 323 p_msg->role = role; in BTA_JvL2capConnectLE() 362 tBTA_JV_STATUS BTA_JvL2capConnect(int conn_type, tBTA_SEC sec_mask, tBTA_JV_ROLE role, in BTA_JvL2capConnect() argument 377 p_msg->role = role; in BTA_JvL2capConnect() 471 tBTA_JV_STATUS BTA_JvL2capStartServer(int conn_type, tBTA_SEC sec_mask, tBTA_JV_ROLE role, in BTA_JvL2capStartServer() argument 485 p_msg->role = role; in BTA_JvL2capStartServer() 522 tBTA_JV_STATUS BTA_JvL2capStartServerLE(tBTA_SEC sec_mask, tBTA_JV_ROLE role, in BTA_JvL2capStartServerLE() argument 535 p_msg->role = role; in BTA_JvL2capStartServerLE() 771 tBTA_JV_ROLE role, UINT8 remote_scn, BD_ADDR peer_bd_addr, in BTA_JvRfcommConnect() argument 783 p_msg->role = role; in BTA_JvRfcommConnect() [all …]
|
D | bta_jv_int.h | 168 tBTA_JV_ROLE role; member 189 tBTA_JV_ROLE role; member 253 tBTA_JV_ROLE role; member 265 tBTA_JV_ROLE role; member
|
/system/sepolicy/ |
D | roles | 1 role r; 2 role r types domain;
|
/system/bt/stack/avct/ |
D | avct_api.c | 139 AVCT_TRACE_API("AVCT_CreateConn: %d, control:%d", p_cc->role, p_cc->control); in AVCT_CreateConn() 152 if (p_cc->role == AVCT_INT) in AVCT_CreateConn() 237 UINT16 AVCT_CreateBrowse (UINT8 handle, UINT8 role) in AVCT_CreateBrowse() argument 245 AVCT_TRACE_API("AVCT_CreateBrowse: %d", role); in AVCT_CreateBrowse() 262 if (role == AVCT_INT) in AVCT_CreateBrowse() 296 UNUSED(role); in AVCT_CreateBrowse()
|
/system/bt/stack/smp/ |
D | smp_act.c | 109 __func__, p_cb->role, recv, p_cb->local_i_key, p_cb->local_r_key); in smp_update_key_mask() 121 if (p_cb->role == HCI_ROLE_SLAVE) in smp_update_key_mask() 570 if (p_dev_rec && (p_cb->role == HCI_ROLE_SLAVE)) in smp_proc_pair_cmd() 593 if (p_cb->role == HCI_ROLE_SLAVE) in smp_proc_pair_cmd() 845 if (!p_dev_rec->new_encryption_key_is_p256 && p_cb->role == HCI_ROLE_SLAVE) in smp_br_process_pairing_command() 853 if (p_dev_rec && (p_cb->role == HCI_ROLE_SLAVE)) in smp_br_process_pairing_command() 877 if (p_cb->role == HCI_ROLE_SLAVE) in smp_br_process_pairing_command() 933 if (p_cb->role == HCI_ROLE_MASTER) in smp_br_check_authorization_request() 949 if (p_cb->role == HCI_ROLE_MASTER && p_cb->local_r_key == 0) in smp_br_check_authorization_request() 967 __func__, p_cb->role, p_cb->local_r_key, p_cb->local_i_key); in smp_br_select_next_key() [all …]
|
D | smp_br_main.c | 338 tSMP_BR_ENTRY_TBL entry_table = smp_br_entry_table[p_cb->role]; in smp_br_state_machine_event() 348 (p_cb->role == HCI_ROLE_SLAVE) ? "Slave" : "Master", in smp_br_state_machine_event() 366 state_table = smp_br_state_table[curr_state][p_cb->role]; in smp_br_state_machine_event()
|
D | smp_l2c.c | 117 p_cb->role = L2CA_GetBleConnRole(bd_addr); in smp_connect_callback() 169 p_cb->role = L2CA_GetBleConnRole(bd_addr); in smp_data_received() 319 p_cb->role = HCI_ROLE_SLAVE; in smp_br_data_received()
|
D | smp_utils.c | 1211 if (p_cb->role == HCI_ROLE_MASTER) in smp_select_legacy_association_model() 1213 model = smp_association_table[p_cb->role][p_cb->peer_io_caps] in smp_select_legacy_association_model() 1218 model = smp_association_table[p_cb->role][p_cb->local_io_capability] in smp_select_legacy_association_model() 1249 if (p_cb->role == HCI_ROLE_MASTER) in smp_select_association_model_secure_connections() 1251 model = smp_association_table_sc[p_cb->role][p_cb->peer_io_caps] in smp_select_association_model_secure_connections() 1256 model = smp_association_table_sc[p_cb->role][p_cb->local_io_capability] in smp_select_association_model_secure_connections() 1477 if (p_cb->role == HCI_ROLE_MASTER) in smp_calculate_f5_mackey_and_long_term_key()
|
/system/bt/bta/ag/ |
D | bta_ag_sdp.c | 81 if (p_scb->role == BTA_AG_ACP) in bta_ag_sdp_cback() 318 else if (service & BTA_HSP_SERVICE_MASK && p_scb->role == BTA_AG_INT) in bta_ag_sdp_find_attr() 348 if (p_scb->role == BTA_AG_INT) in bta_ag_sdp_find_attr() 414 if (service & BTA_HFP_SERVICE_MASK && p_scb->role == BTA_AG_INT) in bta_ag_do_disc() 424 else if (service & BTA_HFP_SERVICE_MASK && p_scb->role == BTA_AG_ACP) in bta_ag_do_disc() 433 else if (service & BTA_HSP_SERVICE_MASK && p_scb->role == BTA_AG_INT) in bta_ag_do_disc()
|
/system/bt/bta/include/ |
D | bta_jv_api.h | 537 tBTA_JV_STATUS BTA_JvL2capConnectLE(tBTA_SEC sec_mask, tBTA_JV_ROLE role, 557 tBTA_JV_STATUS BTA_JvL2capConnect(int conn_type, tBTA_SEC sec_mask, tBTA_JV_ROLE role, 601 tBTA_JV_STATUS BTA_JvL2capStartServer(int conn_type, tBTA_SEC sec_mask, tBTA_JV_ROLE role, 621 tBTA_JV_STATUS BTA_JvL2capStartServerLE(tBTA_SEC sec_mask, tBTA_JV_ROLE role, 730 tBTA_JV_ROLE role, UINT8 remote_scn, BD_ADDR peer_bd_addr, 761 tBTA_JV_ROLE role, UINT8 local_scn, UINT8 max_session,
|
D | bta_pan_api.h | 73 tBTA_PAN_ROLE role; /* PAN roles successfully registered */ member 163 void BTA_PanSetRole(tBTA_PAN_ROLE role, tBTA_PAN_ROLE_INFO *p_user_info, tBTA_PAN_ROLE_INFO *p_gn_i…
|
/system/bt/stack/include/ |
D | avct_api.h | 116 UINT8 role; /* Initiator/acceptor role */ member 210 extern UINT16 AVCT_CreateBrowse(UINT8 handle, UINT8 role);
|
/system/bt/bta/av/ |
D | bta_av_aact.c | 324 p_scb->role &= ~BTA_AV_ROLE_START_INT; in notify_start_failed() 352 (p_scb->use_rc == TRUE || (p_scb->role & BTA_AV_ROLE_AD_ACP))) in bta_av_st_rc_timer() 828 …RACE_DEBUG("bta_av_role_res q_tag:%d, wait:x%x, role:x%x", p_scb->q_tag, p_scb->wait, p_scb->role); in bta_av_role_res() 829 if (p_scb->role & BTA_AV_ROLE_START_INT) in bta_av_role_res() 839 p_scb->role &= ~BTA_AV_ROLE_START_INT; in bta_av_role_res() 860 p_scb->role &= ~BTA_AV_ROLE_START_INT; in bta_av_role_res() 889 APPL_TRACE_DEBUG("wait:x%x, role:x%x", p_scb->wait, p_scb->role); in bta_av_role_res() 1051 UINT8 role = BTA_AV_ROLE_AD_INT; in bta_av_cleanup() local 1068 p_scb->role = role; in bta_av_cleanup() 1170 p_scb->role |= BTA_AV_ROLE_AD_ACP; in bta_av_config_ind() [all …]
|
D | bta_av_main.c | 401 APPL_TRACE_DEBUG("scb hndl x%x, role x%x", p_scb->hndl, p_scb->role); in bta_av_conn_cback() 847 ((0 == (p_scb->role & BTA_AV_ROLE_AD_ACP)) || /* Outgoing connection or */ in bta_av_chk_start() 1050 UINT8 role; in bta_av_switch_if_needed() local 1064 BTM_GetRole(p_scbi->peer_addr, &role); in bta_av_switch_if_needed() 1066 if(BTM_ROLE_MASTER != role) in bta_av_switch_if_needed() 1100 UINT8 role; in bta_av_link_role_ok() local 1103 if (BTM_GetRole(p_scb->peer_addr, &role) == BTM_SUCCESS) in bta_av_link_role_ok() 1106 __func__, p_scb->hndl, role, bta_av_cb.conn_audio, bits, in bta_av_link_role_ok() 1108 …if (BTM_ROLE_MASTER != role && (A2D_BitsSet(bta_av_cb.conn_audio) > bits || (bta_av_cb.features & … in bta_av_link_role_ok()
|
/system/bt/bta/hf_client/ |
D | bta_hf_client_sdp.c | 59 if (bta_hf_client_cb.scb.role == BTA_HF_CLIENT_ACP) in bta_hf_client_sdp_cback() 236 if (bta_hf_client_cb.scb.role == BTA_HF_CLIENT_INT) in bta_hf_client_sdp_find_attr() 310 if (bta_hf_client_cb.scb.role == BTA_HF_CLIENT_INT) in bta_hf_client_do_disc()
|
D | bta_hf_client_act.c | 195 bta_hf_client_cb.scb.role = BTA_HF_CLIENT_INT; in bta_hf_client_start_open() 271 bta_hf_client_cb.scb.role = BTA_HF_CLIENT_ACP; in bta_hf_client_rfc_acp_open() 326 bta_hf_client_cb.scb.role = BTA_HF_CLIENT_ACP; in bta_hf_client_rfc_fail() 396 bta_hf_client_cb.scb.role = BTA_HF_CLIENT_ACP; in bta_hf_client_rfc_close()
|
/system/bt/stack/avdt/ |
D | avdt_scb_act.c | 94 p_scb->role = AVDT_CLOSE_ACP; in avdt_scb_hdl_abort_cmd() 127 p_scb->role = AVDT_CLOSE_ACP; in avdt_scb_hdl_close_cmd() 229 p_scb->role = AVDT_OPEN_INT; in avdt_scb_hdl_open_rsp() 1027 if ((p_scb->role == AVDT_CLOSE_INT) || (p_scb->role == AVDT_OPEN_INT)) in avdt_scb_hdl_tc_close() 1032 event = (p_scb->role == AVDT_CLOSE_INT) ? AVDT_CLOSE_CFM_EVT : AVDT_CLOSE_IND_EVT; in avdt_scb_hdl_tc_close() 1033 p_scb->role = AVDT_CLOSE_ACP; in avdt_scb_hdl_tc_close() 1154 UINT8 role; in avdt_scb_hdl_tc_open() local 1159 event = (p_scb->role == AVDT_OPEN_INT) ? AVDT_OPEN_CFM_EVT : AVDT_OPEN_IND_EVT; in avdt_scb_hdl_tc_open() 1168 role = (p_scb->role == AVDT_OPEN_INT) ? AVDT_INT : AVDT_ACP; in avdt_scb_hdl_tc_open() 1169 avdt_ad_open_req(AVDT_CHAN_REPORT, p_scb->p_ccb, p_scb, role); in avdt_scb_hdl_tc_open() [all …]
|
D | avdt_ad.c | 537 void avdt_ad_open_req(UINT8 type, tAVDT_CCB *p_ccb, tAVDT_SCB *p_scb, UINT8 role) in avdt_ad_open_req() argument 551 type, role, p_tbl->tcid); in avdt_ad_open_req() 573 if (role == AVDT_ACP) in avdt_ad_open_req()
|
/system/bt/bta/gatt/ |
D | bta_gattc_utils.c | 600 BOOLEAN bta_gattc_check_bg_conn (tBTA_GATTC_IF client_if, BD_ADDR remote_bda, UINT8 role) in bta_gattc_check_bg_conn() argument 613 role == HCI_ROLE_MASTER) in bta_gattc_check_bg_conn() 617 role == HCI_ROLE_SLAVE) in bta_gattc_check_bg_conn() 763 if (p_msg->int_conn.role == HCI_ROLE_SLAVE) in bta_gattc_find_int_conn_clcb() 775 p_msg->int_conn.role)) in bta_gattc_find_int_conn_clcb()
|
/system/bt/btif/src/ |
D | btif_sock_rfc.c | 90 int role; member 245 accept_rs->role = srv_rs->role; in create_srv_accept_rfc_slot() 340 …tBTA_JV_STATUS ret = BTA_JvRfcommConnect(slot->security, slot->role, slot->scn, slot->addr.address… in btsock_rfc_connect() 653 BTA_JvRfcommStartServer(rs->security, rs->role, rs->scn, MAX_RFC_SESSION, in jv_dm_cback() 676 …BTA_JvRfcommStartServer(slot->security, slot->role, slot->scn, MAX_RFC_SESSION, rfcomm_cback, (voi… in jv_dm_cback() 692 …if (BTA_JvRfcommConnect(slot->security, slot->role, p_data->disc_comp.scn, slot->addr.address, rfc… in jv_dm_cback()
|
/system/bt/stack/btm/ |
D | btm_ble.c | 1777 UINT8 role, bda_type; in btm_ble_resolve_random_addr_on_conn_cmpl() local 1785 STREAM_TO_UINT8 (role, p); in btm_ble_resolve_random_addr_on_conn_cmpl() 1817 btm_ble_connected(bda, handle, HCI_ENCRYPT_MODE_DISABLED, role, bda_type, match); in btm_ble_resolve_random_addr_on_conn_cmpl() 1819 l2cble_conn_comp (handle, role, bda, bda_type, conn_interval, in btm_ble_resolve_random_addr_on_conn_cmpl() 1836 void btm_ble_connected (UINT8 *bda, UINT16 handle, UINT8 enc_mode, UINT8 role, in btm_ble_connected() argument 1884 if (role == HCI_ROLE_MASTER) in btm_ble_connected() 1912 UINT8 role, status, bda_type; in btm_ble_conn_complete() local 1921 STREAM_TO_UINT8 (role, p); in btm_ble_conn_complete() 1951 btm_ble_connected(bda, handle, HCI_ENCRYPT_MODE_DISABLED, role, bda_type, match); in btm_ble_conn_complete() 1953 l2cble_conn_comp (handle, role, bda, bda_type, conn_interval, in btm_ble_conn_complete() [all …]
|