/system/bt/stack/l2cap/ |
D | l2c_utils.cc | 511 tL2CAP_LE_CFG_INFO* p_cfg) { in l2cu_send_credit_based_reconfig_req() argument 538 p_lcb->pending_ecoc_reconfig_cnt, p_cfg->mtu, p_cfg->mps); in l2cu_send_credit_based_reconfig_req() 540 UINT16_TO_STREAM(p, p_cfg->mtu); in l2cu_send_credit_based_reconfig_req() 541 UINT16_TO_STREAM(p, p_cfg->mps); in l2cu_send_credit_based_reconfig_req() 563 void l2cu_send_peer_config_req(tL2C_CCB* p_ccb, tL2CAP_CFG_INFO* p_cfg) { in l2cu_send_peer_config_req() argument 574 if (p_cfg->mtu_present) in l2cu_send_peer_config_req() 576 if (p_cfg->flush_to_present) in l2cu_send_peer_config_req() 578 if (p_cfg->qos_present) in l2cu_send_peer_config_req() 580 if (p_cfg->fcr_present) in l2cu_send_peer_config_req() 582 if (p_cfg->fcs_present) in l2cu_send_peer_config_req() [all …]
|
D | l2c_fcr.cc | 1654 void l2c_fcr_adj_our_rsp_options(tL2C_CCB* p_ccb, tL2CAP_CFG_INFO* p_cfg) { in l2c_fcr_adj_our_rsp_options() argument 1656 CHECK(p_cfg != NULL); in l2c_fcr_adj_our_rsp_options() 1661 p_cfg->fcr_present = p_ccb->out_cfg_fcr_present; in l2c_fcr_adj_our_rsp_options() 1663 if (p_cfg->fcr_present) { in l2c_fcr_adj_our_rsp_options() 1675 p_cfg->fcr.mode = p_ccb->peer_cfg.fcr.mode; in l2c_fcr_adj_our_rsp_options() 1676 p_cfg->fcr.tx_win_sz = p_ccb->peer_cfg.fcr.tx_win_sz; in l2c_fcr_adj_our_rsp_options() 1677 p_cfg->fcr.max_transmit = p_ccb->peer_cfg.fcr.max_transmit; in l2c_fcr_adj_our_rsp_options() 1678 p_cfg->fcr.mps = p_ccb->peer_cfg.fcr.mps; in l2c_fcr_adj_our_rsp_options() 1679 p_cfg->fcr.rtrans_tout = p_ccb->our_cfg.fcr.rtrans_tout; in l2c_fcr_adj_our_rsp_options() 1680 p_cfg->fcr.mon_tout = p_ccb->our_cfg.fcr.mon_tout; in l2c_fcr_adj_our_rsp_options() [all …]
|
D | l2c_api.cc | 502 tL2CAP_LE_CFG_INFO* p_cfg, uint16_t sec_level) { in L2CA_ConnectLECocReq() argument 504 return bluetooth::shim::L2CA_ConnectLECocReq(psm, p_bd_addr, p_cfg); in L2CA_ConnectLECocReq() 552 if (p_cfg) { in L2CA_ConnectLECocReq() 553 p_ccb->local_conn_cfg = *p_cfg; in L2CA_ConnectLECocReq() 554 p_ccb->remote_credit_count = p_cfg->credits; in L2CA_ConnectLECocReq() 635 uint16_t result, tL2CAP_LE_CFG_INFO* p_cfg) { in L2CA_ConnectCreditBasedRsp() argument 638 p_bd_addr, id, accepted_lcids, result, p_cfg); in L2CA_ConnectCreditBasedRsp() 664 if (p_cfg) { in L2CA_ConnectCreditBasedRsp() 665 temp_p_ccb->local_conn_cfg = *p_cfg; in L2CA_ConnectCreditBasedRsp() 666 temp_p_ccb->remote_credit_count = p_cfg->credits; in L2CA_ConnectCreditBasedRsp() [all …]
|
/system/bt/stack/test/common/ |
D | mock_l2cap_layer.cc | 52 bool L2CA_ConfigReq(uint16_t cid, tL2CAP_CFG_INFO* p_cfg) { in L2CA_ConfigReq() argument 53 return l2cap_interface->ConfigRequest(cid, p_cfg); in L2CA_ConfigReq() 56 bool L2CA_ConfigRsp(uint16_t cid, tL2CAP_CFG_INFO* p_cfg) { in L2CA_ConfigRsp() argument 57 return l2cap_interface->ConfigResponse(cid, p_cfg); in L2CA_ConfigRsp() 79 tL2CAP_LE_CFG_INFO* p_cfg) { in L2CA_ConnectCreditBasedReq() argument 80 return l2cap_interface->ConnectCreditBasedReq(psm, bd_addr, p_cfg); in L2CA_ConnectCreditBasedReq() 86 tL2CAP_LE_CFG_INFO* p_cfg) { in L2CA_ConnectCreditBasedRsp() argument 87 return l2cap_interface->ConnectCreditBasedRsp(bd_addr, id, lcids, result, p_cfg); in L2CA_ConnectCreditBasedRsp()
|
D | mock_l2cap_layer.h | 38 virtual bool ConfigRequest(uint16_t cid, tL2CAP_CFG_INFO* p_cfg) = 0; 39 virtual bool ConfigResponse(uint16_t cid, tL2CAP_CFG_INFO* p_cfg) = 0; 46 tL2CAP_LE_CFG_INFO* p_cfg) = 0; 49 tL2CAP_LE_CFG_INFO* p_cfg) = 0; 67 MOCK_METHOD2(ConfigRequest, bool(uint16_t cid, tL2CAP_CFG_INFO* p_cfg)); 68 MOCK_METHOD2(ConfigResponse, bool(uint16_t cid, tL2CAP_CFG_INFO* p_cfg)); 78 tL2CAP_LE_CFG_INFO* p_cfg)); 82 tL2CAP_LE_CFG_INFO* p_cfg));
|
D | mock_gatt_main.cc | 83 tL2CAP_CFG_INFO* p_cfg) { in gatt_l2cif_config_cfm_cback() argument 86 void gatt_l2cif_config_ind_cback(uint16_t lcid, tL2CAP_CFG_INFO* p_cfg) { in gatt_l2cif_config_ind_cback() argument
|
/system/bt/stack/avdt/ |
D | avdt_msg.cc | 277 static void avdt_msg_bld_cfg(uint8_t** p, AvdtpSepConfig* p_cfg) { in avdt_msg_bld_cfg() argument 284 if (p_cfg->psc_mask & AVDT_PSC_TRANS) { in avdt_msg_bld_cfg() 290 if (p_cfg->psc_mask & AVDT_PSC_REPORT) { in avdt_msg_bld_cfg() 296 if (p_cfg->num_codec != 0) { in avdt_msg_bld_cfg() 298 len = p_cfg->codec_info[0] + 1; in avdt_msg_bld_cfg() 301 memcpy(*p, p_cfg->codec_info, len); in avdt_msg_bld_cfg() 306 if (p_cfg->num_protect != 0) { in avdt_msg_bld_cfg() 308 len = p_cfg->protect_info[0] + 1; in avdt_msg_bld_cfg() 311 memcpy(*p, p_cfg->protect_info, len); in avdt_msg_bld_cfg() 316 if (p_cfg->psc_mask & AVDT_PSC_DELAY_RPT) { in avdt_msg_bld_cfg() [all …]
|
D | avdt_l2c.cc | 41 tL2CAP_CFG_INFO* p_cfg); 42 void avdt_l2c_config_ind_cback(uint16_t lcid, tL2CAP_CFG_INFO* p_cfg); 289 tL2CAP_CFG_INFO* p_cfg) { in avdt_l2c_config_cfm_cback() argument 290 avdt_l2c_config_ind_cback(lcid, p_cfg); in avdt_l2c_config_cfm_cback() 318 void avdt_l2c_config_ind_cback(uint16_t lcid, tL2CAP_CFG_INFO* p_cfg) { in avdt_l2c_config_ind_cback() argument 327 if (p_cfg->mtu_present) { in avdt_l2c_config_ind_cback() 328 p_tbl->peer_mtu = p_cfg->mtu; in avdt_l2c_config_ind_cback()
|
D | avdt_api.cc | 364 uint8_t seid, AvdtpSepConfig* p_cfg, in AVDT_GetCapReq() argument 377 getcap.p_cfg = p_cfg; in AVDT_GetCapReq() 442 AvdtpSepConfig* p_cfg) { in AVDT_OpenReq() argument 477 A2DP_CodecInfoString(p_cfg->codec_info).c_str()); in AVDT_OpenReq() 482 evt.msg.config_cmd.p_cfg = p_cfg; in AVDT_OpenReq() 717 uint16_t AVDT_ReconfigReq(uint8_t handle, AvdtpSepConfig* p_cfg) { in AVDT_ReconfigReq() argument 732 p_cfg->psc_mask = 0; in AVDT_ReconfigReq() 733 evt.msg.reconfig_cmd.p_cfg = p_cfg; in AVDT_ReconfigReq()
|
/system/bt/stack/avct/ |
D | avct_l2c_br.cc | 39 tL2CAP_CFG_INFO* p_cfg); 40 void avct_l2c_br_config_ind_cback(uint16_t lcid, tL2CAP_CFG_INFO* p_cfg); 157 tL2CAP_CFG_INFO* p_cfg) { in avct_l2c_br_config_cfm_cback() argument 158 avct_l2c_br_config_ind_cback(lcid, p_cfg); in avct_l2c_br_config_cfm_cback() 180 void avct_l2c_br_config_ind_cback(uint16_t lcid, tL2CAP_CFG_INFO* p_cfg) { in avct_l2c_br_config_ind_cback() argument 190 if (p_cfg->mtu_present) { in avct_l2c_br_config_ind_cback() 191 p_lcb->peer_mtu = p_cfg->mtu; in avct_l2c_br_config_ind_cback()
|
D | avct_l2c.cc | 38 tL2CAP_CFG_INFO* p_cfg); 39 void avct_l2c_config_ind_cback(uint16_t lcid, tL2CAP_CFG_INFO* p_cfg); 225 tL2CAP_CFG_INFO* p_cfg) { in avct_l2c_config_cfm_cback() argument 226 avct_l2c_config_ind_cback(lcid, p_cfg); in avct_l2c_config_cfm_cback() 254 void avct_l2c_config_ind_cback(uint16_t lcid, tL2CAP_CFG_INFO* p_cfg) { in avct_l2c_config_ind_cback() argument 263 if (p_cfg->mtu_present) { in avct_l2c_config_ind_cback() 264 p_lcb->peer_mtu = p_cfg->mtu; in avct_l2c_config_ind_cback()
|
/system/bt/test/mock/ |
D | mock_stack_l2cap_api.h | 187 tL2CAP_LE_CFG_INFO* p_cfg, uint16_t sec_level)> 189 tL2CAP_LE_CFG_INFO* p_cfg, uint16_t sec_level) { return 0; }}; 191 tL2CAP_LE_CFG_INFO* p_cfg, uint16_t sec_level) { in operator() 192 return body(psm, p_bd_addr, p_cfg, sec_level); in operator() 213 tL2CAP_LE_CFG_INFO* p_cfg)> 216 tL2CAP_LE_CFG_INFO* p_cfg) { return false; }}; 219 tL2CAP_LE_CFG_INFO* p_cfg) { in operator() 220 return body(p_bd_addr, id, accepted_lcids, result, p_cfg); in operator() 230 tL2CAP_LE_CFG_INFO* p_cfg)> 232 tL2CAP_LE_CFG_INFO* p_cfg) { return cids; }}; [all …]
|
D | mock_main_shim_l2cap_api.h | 169 tL2CAP_LE_CFG_INFO* p_cfg)> 171 tL2CAP_LE_CFG_INFO* p_cfg) { return false; }}; 173 tL2CAP_LE_CFG_INFO* p_cfg) { in operator() 174 return body(bd_addr, lcids, p_cfg); in operator() 184 tL2CAP_LE_CFG_INFO* p_cfg)> 186 tL2CAP_LE_CFG_INFO* p_cfg) { return cids; }}; 188 tL2CAP_LE_CFG_INFO* p_cfg) { in operator() 189 return body(psm, p_bd_addr, p_cfg); in operator() 199 tL2CAP_LE_CFG_INFO* p_cfg)> 202 tL2CAP_LE_CFG_INFO* p_cfg) { return false; }}; [all …]
|
D | mock_stack_l2cap_api.cc | 157 tL2CAP_LE_CFG_INFO* p_cfg, uint16_t sec_level) { in L2CA_ConnectLECocReq() argument 160 p_cfg, sec_level); in L2CA_ConnectLECocReq() 168 uint16_t result, tL2CAP_LE_CFG_INFO* p_cfg) { in L2CA_ConnectCreditBasedRsp() argument 171 p_bd_addr, id, accepted_lcids, result, p_cfg); in L2CA_ConnectCreditBasedRsp() 175 tL2CAP_LE_CFG_INFO* p_cfg) { in L2CA_ConnectCreditBasedReq() argument 178 p_cfg); in L2CA_ConnectCreditBasedReq() 182 tL2CAP_LE_CFG_INFO* p_cfg) { in L2CA_ReconfigCreditBasedConnsReq() argument 185 bda, lcids, p_cfg); in L2CA_ReconfigCreditBasedConnsReq()
|
D | mock_stack_l2cap_utils.cc | 124 uint8_t l2cu_process_peer_cfg_req(tL2C_CCB* p_ccb, tL2CAP_CFG_INFO* p_cfg) { in l2cu_process_peer_cfg_req() argument 159 void l2cu_process_our_cfg_req(tL2C_CCB* p_ccb, tL2CAP_CFG_INFO* p_cfg) { in l2cu_process_our_cfg_req() argument 162 void l2cu_process_our_cfg_rsp(tL2C_CCB* p_ccb, tL2CAP_CFG_INFO* p_cfg) { in l2cu_process_our_cfg_rsp() argument 165 void l2cu_process_peer_cfg_rsp(tL2C_CCB* p_ccb, tL2CAP_CFG_INFO* p_cfg) { in l2cu_process_peer_cfg_rsp() argument 199 tL2CAP_LE_CFG_INFO* p_cfg) { in l2cu_send_credit_based_reconfig_req() argument 233 void l2cu_send_peer_config_req(tL2C_CCB* p_ccb, tL2CAP_CFG_INFO* p_cfg) { in l2cu_send_peer_config_req() argument 236 void l2cu_send_peer_config_rsp(tL2C_CCB* p_ccb, tL2CAP_CFG_INFO* p_cfg) { in l2cu_send_peer_config_rsp() argument
|
D | mock_stack_avdt_api.cc | 81 uint8_t seid, AvdtpSepConfig* p_cfg, in AVDT_GetCapReq() argument 92 AvdtpSepConfig* p_cfg) { in AVDT_OpenReq() argument 96 uint16_t AVDT_ReconfigReq(uint8_t handle, AvdtpSepConfig* p_cfg) { in AVDT_ReconfigReq() argument
|
D | mock_main_shim_l2cap_api.cc | 141 tL2CAP_LE_CFG_INFO* p_cfg) { in L2CA_ReconfigCreditBasedConnsReq() argument 144 bd_addr, lcids, p_cfg); in L2CA_ReconfigCreditBasedConnsReq() 147 uint16_t psm, const RawAddress& p_bd_addr, tL2CAP_LE_CFG_INFO* p_cfg) { in L2CA_ConnectCreditBasedReq() argument 150 psm, p_bd_addr, p_cfg); in L2CA_ConnectCreditBasedReq() 155 tL2CAP_LE_CFG_INFO* p_cfg) { in L2CA_ConnectCreditBasedRsp() argument 158 bd_addr, id, accepted_lcids, result, p_cfg); in L2CA_ConnectCreditBasedRsp() 319 tL2CAP_LE_CFG_INFO* p_cfg) { in L2CA_ConnectLECocReq() argument 322 p_cfg); in L2CA_ConnectLECocReq()
|
D | mock_stack_gatt_main.cc | 83 tL2CAP_CFG_INFO* p_cfg) { in gatt_l2cif_config_cfm_cback() argument 86 void gatt_l2cif_config_ind_cback(uint16_t lcid, tL2CAP_CFG_INFO* p_cfg) { in gatt_l2cif_config_ind_cback() argument
|
/system/bt/stack/sdp/ |
D | sdp_main.cc | 49 static void sdp_config_ind(uint16_t l2cap_cid, tL2CAP_CFG_INFO* p_cfg); 51 tL2CAP_CFG_INFO* p_cfg); 176 static void sdp_config_ind(uint16_t l2cap_cid, tL2CAP_CFG_INFO* p_cfg) { in sdp_config_ind() argument 187 if (!p_cfg->mtu_present) { in sdp_config_ind() 192 if (p_cfg->mtu > SDP_MTU_SIZE) in sdp_config_ind() 195 p_ccb->rem_mtu_size = p_cfg->mtu; in sdp_config_ind() 212 tL2CAP_CFG_INFO* p_cfg) { in sdp_config_cfm() argument 213 sdp_config_ind(l2cap_cid, p_cfg); in sdp_config_cfm()
|
/system/bt/stack/rfcomm/ |
D | rfc_l2cap_if.cc | 47 static void RFCOMM_ConfigInd(uint16_t lcid, tL2CAP_CFG_INFO* p_cfg); 49 tL2CAP_CFG_INFO* p_cfg); 179 void RFCOMM_ConfigInd(uint16_t lcid, tL2CAP_CFG_INFO* p_cfg) { in RFCOMM_ConfigInd() argument 186 tL2CAP_CFG_INFO l2cap_cfg_info(*p_cfg); in RFCOMM_ConfigInd() 195 rfc_mx_sm_execute(p_mcb, RFC_MX_EVENT_CONF_IND, (void*)p_cfg); in RFCOMM_ConfigInd() 208 tL2CAP_CFG_INFO* p_cfg) { in RFCOMM_ConfigCnf() argument 209 RFCOMM_ConfigInd(lcid, p_cfg); in RFCOMM_ConfigCnf()
|
/system/nfc/src/nfa/dm/ |
D | nfa_dm_discover.cc | 396 tNFA_LISTEN_CFG* p_cfg = &nfa_dm_cb.disc_cb.excl_listen_config; in nfa_dm_set_rf_listen_mode_raw_config() local 406 (p_cfg->la_enable)) { in nfa_dm_set_rf_listen_mode_raw_config() 411 UINT8_TO_STREAM(p, p_cfg->la_bit_frame_sdd); in nfa_dm_set_rf_listen_mode_raw_config() 415 UINT8_TO_STREAM(p, p_cfg->la_platform_config); in nfa_dm_set_rf_listen_mode_raw_config() 419 UINT8_TO_STREAM(p, p_cfg->la_sel_info); in nfa_dm_set_rf_listen_mode_raw_config() 421 if (p_cfg->la_platform_config == NCI_PARAM_PLATFORM_T1T) { in nfa_dm_set_rf_listen_mode_raw_config() 425 if (p_cfg->la_sel_info & NCI_PARAM_SEL_INFO_ISODEP) { in nfa_dm_set_rf_listen_mode_raw_config() 429 if (p_cfg->la_sel_info & NCI_PARAM_SEL_INFO_NFCDEP) { in nfa_dm_set_rf_listen_mode_raw_config() 440 UINT8_TO_STREAM(p, p_cfg->la_nfcid1_len); in nfa_dm_set_rf_listen_mode_raw_config() 441 ARRAY_TO_STREAM(p, p_cfg->la_nfcid1, p_cfg->la_nfcid1_len); in nfa_dm_set_rf_listen_mode_raw_config() [all …]
|
/system/bt/stack/gap/ |
D | gap_conn.cc | 87 static void gap_config_ind(uint16_t l2cap_cid, tL2CAP_CFG_INFO* p_cfg); 89 tL2CAP_CFG_INFO* p_cfg); 162 uint16_t le_mps, tL2CAP_CFG_INFO* p_cfg, in GAP_ConnOpen() argument 201 if (p_cfg) p_ccb->cfg = *p_cfg; in GAP_ConnOpen() 206 p_ccb->local_coc_cfg.mtu = p_cfg->mtu; in GAP_ConnOpen() 752 static void gap_config_ind(uint16_t l2cap_cid, tL2CAP_CFG_INFO* p_cfg) { in gap_config_ind() argument 767 if ((!p_cfg->mtu_present) || (p_cfg->mtu > local_mtu_size)) { in gap_config_ind() 770 p_ccb->rem_mtu_size = p_cfg->mtu; in gap_config_ind() 784 tL2CAP_CFG_INFO* p_cfg) { in gap_config_cfm() argument 785 gap_config_ind(l2cap_cid, p_cfg); in gap_config_cfm()
|
/system/bt/main/shim/ |
D | l2c_api.h | 140 tL2CAP_LE_CFG_INFO* p_cfg); 166 tL2CAP_LE_CFG_INFO* p_cfg); 182 uint16_t psm, const RawAddress& p_bd_addr, tL2CAP_LE_CFG_INFO* p_cfg); 198 tL2CAP_LE_CFG_INFO* p_cfg);
|
/system/bt/stack/include/ |
D | l2c_api.h | 295 tL2CAP_LE_CFG_INFO* p_cfg); 455 tL2CAP_LE_CFG_INFO* p_cfg, 482 tL2CAP_LE_CFG_INFO* p_cfg); 498 uint16_t psm, const RawAddress& p_bd_addr, tL2CAP_LE_CFG_INFO* p_cfg); 514 tL2CAP_LE_CFG_INFO* p_cfg);
|
/system/bt/stack/hid/ |
D | hidd_conn.cc | 38 static void hidd_l2cif_config_ind(uint16_t cid, tL2CAP_CFG_INFO* p_cfg); 40 tL2CAP_CFG_INFO* p_cfg); 230 static void hidd_l2cif_config_ind(uint16_t cid, tL2CAP_CFG_INFO* p_cfg) { in hidd_l2cif_config_ind() argument 240 if ((!p_cfg->mtu_present) || (p_cfg->mtu > HID_DEV_MTU_SIZE)) in hidd_l2cif_config_ind() 243 p_hcon->rem_mtu_size = p_cfg->mtu; in hidd_l2cif_config_ind() 256 tL2CAP_CFG_INFO* p_cfg) { in hidd_l2cif_config_cfm() argument 257 hidd_l2cif_config_ind(cid, p_cfg); in hidd_l2cif_config_cfm()
|