/system/bt/gd/l2cap/classic/cert/ |
D | l2cap_performance_test.py | 38 def _basic_mode_tx(self, mtu, packets): argument 47 dut_channel.send(b'a' * mtu) 49 L2capMatchers.Data(b'a' * mtu), at_least_times=packets, timeout=timedelta(seconds=60)) 57 def _basic_mode_tx_fixed_interval(self, mtu, interval=timedelta(seconds=10), batch_size=20): argument 70 dut_channel.send(b'a' * mtu) 72 … assertThat(cert_channel).emits(L2capMatchers.Data(b'a' * mtu), at_least_times=batch_size) 76 def _basic_mode_rx(self, mtu, packets): argument 81 data = b"a" * mtu 92 def _ertm_mode_tx(self, mtu, packets, tx_window_size=10): argument 111 dut_channel.send(b'a' * mtu) [all …]
|
/system/bt/stack/rfcomm/ |
D | port_rfc.cc | 77 RFCOMM_ParameterNegotiationRequest(p_mcb, p_port->dlci, p_port->mtu); in port_open_continue() 199 RFCOMM_ParameterNegotiationRequest(p_mcb, p_port->dlci, p_port->mtu); in PORT_StartCnf() 272 void PORT_ParNegInd(tRFC_MCB* p_mcb, uint8_t dlci, uint16_t mtu, uint8_t cl, in PORT_ParNegInd() argument 275 p_mcb->bd_addr.ToString().c_str(), dlci, mtu); in PORT_ParNegInd() 302 p_port->mtu = (p_port->mtu < mtu) ? p_port->mtu : mtu; in PORT_ParNegInd() 303 p_port->peer_mtu = p_port->mtu; in PORT_ParNegInd() 347 RFCOMM_ParameterNegotiationResponse(p_mcb, dlci, p_port->mtu, our_cl, our_k); in PORT_ParNegInd() 361 void PORT_ParNegCnf(tRFC_MCB* p_mcb, uint8_t dlci, uint16_t mtu, uint8_t cl, in PORT_ParNegCnf() argument 363 RFCOMM_TRACE_EVENT("PORT_ParNegCnf dlci:%d mtu:%d cl: %d k: %d", dlci, mtu, in PORT_ParNegCnf() 397 p_port->mtu = (p_port->mtu < mtu) ? p_port->mtu : mtu; in PORT_ParNegCnf() [all …]
|
D | port_utils.cc | 144 if (p_port->mtu == 0) { in port_select_mtu() 150 p_port->mtu = RFCOMM_DEFAULT_MTU; in port_select_mtu() 166 p_port->mtu = ((L2CAP_MTU_SIZE + L2CAP_PKT_OVERHEAD) / packet_size * in port_select_mtu() 170 __func__, p_port->mtu); in port_select_mtu() 172 p_port->mtu = L2CAP_MTU_SIZE - RFCOMM_DATA_OVERHEAD; in port_select_mtu() 174 p_port->mtu); in port_select_mtu() 178 RFCOMM_TRACE_DEBUG("%s: application selected %d", __func__, p_port->mtu); in port_select_mtu() 180 p_port->credit_rx_max = (PORT_RX_HIGH_WM / p_port->mtu); in port_select_mtu() 183 p_port->credit_rx_low = (PORT_RX_LOW_WM / p_port->mtu); in port_select_mtu() 186 p_port->rx_buf_critical = (PORT_RX_CRITICAL_WM / p_port->mtu); in port_select_mtu() [all …]
|
D | rfc_port_if.cc | 78 UNUSED_ATTR uint16_t mtu) { in RFCOMM_DlcEstablishReq() argument 102 UNUSED_ATTR uint16_t mtu, uint16_t result) { in RFCOMM_DlcEstablishRsp() argument 128 uint16_t mtu) { in RFCOMM_ParameterNegotiationRequest() argument 163 rfc_send_pn(p_mcb, dlci, true, mtu, cl, k); in RFCOMM_ParameterNegotiationRequest() 177 uint16_t mtu, uint8_t cl, uint8_t k) { in RFCOMM_ParameterNegotiationResponse() argument 181 rfc_send_pn(p_mcb, dlci, false, mtu, cl, k); in RFCOMM_ParameterNegotiationResponse()
|
D | rfc_int.h | 51 extern void RFCOMM_DlcEstablishReq(tRFC_MCB* p_mcb, uint8_t dlci, uint16_t mtu); 52 extern void RFCOMM_DlcEstablishRsp(tRFC_MCB* p_mcb, uint8_t dlci, uint16_t mtu, 60 uint16_t mtu); 62 uint16_t mtu, uint8_t cl, 102 uint16_t mtu; member 329 uint16_t mtu, uint8_t cl, uint8_t k); 354 extern void PORT_DlcEstablishInd(tRFC_MCB* p_mcb, uint8_t dlci, uint16_t mtu); 355 extern void PORT_DlcEstablishCnf(tRFC_MCB* p_mcb, uint8_t dlci, uint16_t mtu, 362 extern void PORT_ParNegInd(tRFC_MCB* p_mcb, uint8_t dlci, uint16_t mtu, 364 extern void PORT_ParNegCnf(tRFC_MCB* p_mcb, uint8_t dlci, uint16_t mtu,
|
/system/bt/gd/l2cap/le/internal/ |
D | signalling_manager.h | 57 …static PendingCommand CreditBasedConnectionRequest(SignalId signal_id, Psm psm, Cid scid, Mtu mtu,… in CreditBasedConnectionRequest() 64 pending_command.mtu_ = mtu; in CreditBasedConnectionRequest() 102 void SendConnectionRequest(Psm psm, Cid local_cid, Mtu mtu); 122 void OnConnectionRequest(SignalId signal_id, Psm psm, Cid remote_cid, Mtu mtu, uint16_t mps, 125 …void OnConnectionResponse(SignalId signal_id, Cid remote_cid, Mtu mtu, uint16_t mps, uint16_t init… 137 Mtu mtu; member 144 …void send_connection_response(SignalId signal_id, Cid local_cid, Mtu mtu, uint16_t mps, uint16_t i… 149 void on_security_result_for_outgoing(Psm psm, Cid local_cid, Mtu mtu, bool result);
|
D | signalling_manager.cc | 59 void LeSignallingManager::SendConnectionRequest(Psm psm, Cid local_cid, Mtu mtu) { in SendConnectionRequest() argument 63 …er_->BindOnceOn(this, &LeSignallingManager::on_security_result_for_outgoing, psm, local_cid, mtu)); in SendConnectionRequest() 66 void LeSignallingManager::on_security_result_for_outgoing(Psm psm, Cid local_cid, Mtu mtu, bool res… in on_security_result_for_outgoing() argument 73 next_signal_id_, psm, local_cid, mtu, link_->GetMps(), link_->GetInitialCredit()); in on_security_result_for_outgoing() 170 void LeSignallingManager::OnConnectionRequest(SignalId signal_id, Psm psm, Cid remote_cid, Mtu mtu,… in OnConnectionRequest() argument 205 .mtu = mtu, in OnConnectionRequest() 242 auto local_mtu = config.mtu; in on_security_result_for_incoming() 258 data_controller->SetMtu(std::min(request.mtu, local_mtu)); in on_security_result_for_incoming() 265 void LeSignallingManager::OnConnectionResponse(SignalId signal_id, Cid remote_cid, Mtu mtu, uint16_… in OnConnectionResponse() argument 294 data_controller->SetMtu(std::min(mtu, command_just_sent_.mtu_)); in OnConnectionResponse() [all …]
|
/system/bt/gd/packet/ |
D | fragmenting_inserter_unittest.cc | 140 size_t mtu = GetParam(); in TEST_P() local 142 FragmentingInserter it(mtu, std::back_insert_iterator(fragments)); in TEST_P() 150 size_t expected_fragments = counts_.size() / mtu; in TEST_P() 151 if (counts_.size() % mtu != 0) { in TEST_P() 158 serialized_fragments.emplace_back(mtu); in TEST_P() 161 if (f + 1 == fragments.size() && (counts_.size() % mtu != 0)) { in TEST_P() 162 ASSERT_EQ(serialized_fragments[f].size(), counts_.size() % mtu); in TEST_P() 164 ASSERT_EQ(serialized_fragments[f].size(), mtu); in TEST_P() 167 EXPECT_EQ(counts_[f * mtu + b], serialized_fragments[f][b]); in TEST_P()
|
D | fragmenting_inserter.cc | 24 FragmentingInserter::FragmentingInserter(size_t mtu, in FragmentingInserter() argument 26 …: BitInserter(to_construct_bit_inserter_), mtu_(mtu), curr_packet_(std::make_unique<RawBuilder>(mt… in FragmentingInserter()
|
/system/netd/tests/ |
D | netd_test.cpp | 114 constexpr int mtu = 1500; in TEST() local 172 tun_ifr.ifr_mtu = mtu; in TEST() 177 tap_ifr.ifr_mtu = mtu; in TEST() 240 .pmtu = mtu, in TEST() 255 uint8_t pkt[mtu] = { in TEST() 262 for (int pkt_size = 40; pkt_size <= mtu; ++pkt_size) { in TEST() 277 if (pkt_size + ETH_HLEN == mtu + 1) EXPECT_EQ("detected missing kernel patch", ""); in TEST() 285 uint8_t buf[ETH_HLEN + mtu + 1]; in TEST()
|
/system/bt/service/ipc/binder/ |
D | bluetooth_low_energy_binder_server.cc | 103 const String16& address, int mtu, in SetMtu() argument 106 << " mtu: " << mtu; in SetMtu() 116 *_aidl_return = client->SetMtu(std::string(String8(address).string()), mtu); in SetMtu() 138 int mtu) { in OnMtuChanged() argument 140 << " mtu: " << mtu; in OnMtuChanged() 149 cb->OnMtuChanged(status, String16(address, std::strlen(address)), mtu); in OnMtuChanged()
|
D | bluetooth_low_energy_binder_server.h | 62 Status SetMtu(int client_id, const String16& address, int mtu, 69 const char* address, int mtu) override;
|
/system/bt/packet/avrcp/ |
D | get_folder_items.h | 28 Status status, uint16_t uid_counter, size_t mtu); 30 Status status, uint16_t uid_counter, size_t mtu); 32 Status status, uint16_t uid_counter, size_t mtu); 51 uint16_t uid_counter, size_t mtu) in GetFolderItemsResponseBuilder() argument 56 mtu_(mtu){}; in GetFolderItemsResponseBuilder()
|
D | get_element_attributes_packet.h | 66 size_t mtu); 79 GetElementAttributesResponseBuilder(size_t mtu) in GetElementAttributesResponseBuilder() argument 82 mtu_(mtu){}; in GetElementAttributesResponseBuilder()
|
D | get_item_attributes.h | 31 Status status, size_t mtu); 45 GetItemAttributesResponseBuilder(Status status, size_t mtu) in GetItemAttributesResponseBuilder() argument 48 mtu_(mtu) {} in GetItemAttributesResponseBuilder()
|
/system/bt/gd/hci/acl_manager/ |
D | acl_fragmenter.cc | 26 AclFragmenter::AclFragmenter(size_t mtu, std::unique_ptr<packet::BasePacketBuilder> packet) in AclFragmenter() argument 27 : mtu_(mtu), packet_(std::move(packet)) {} in AclFragmenter()
|
/system/bt/service/ |
D | low_energy_client.cc | 97 bool LowEnergyClient::SetMtu(const std::string& address, int mtu) { in SetMtu() argument 98 VLOG(2) << __func__ << "Address: " << address << " MTU: " << mtu; in SetMtu() 115 ->configure_mtu(conn_id->second, mtu); in SetMtu() 174 hal::BluetoothGattInterface* gatt_iface, int conn_id, int status, int mtu) { in MtuChangedCallback() argument 176 << " mtu: " << mtu; in MtuChangedCallback() 192 if (delegate_) delegate_->OnMtuChanged(this, status, addr.c_str(), mtu); in MtuChangedCallback()
|
D | low_energy_client.h | 63 const char* address, int mtu) = 0; 91 bool SetMtu(const std::string& address, int mtu); 112 int status, int mtu) override;
|
/system/netd/server/ |
D | RouteController.h | 93 const char* nexthop, TableType tableType, int mtu); 97 const char* nexthop, TableType tableType, int mtu); 132 int mtu); 148 uint32_t mtu);
|
/system/bt/stack/avct/ |
D | avct_api.cc | 54 void AVCT_Register(uint16_t mtu, UNUSED_ATTR uint16_t mtu_br, in AVCT_Register() argument 61 if (mtu < AVCT_MIN_CONTROL_MTU) mtu = AVCT_MIN_CONTROL_MTU; in AVCT_Register() 63 avct_cb.mtu = mtu; in AVCT_Register() 67 true /* enable_snoop */, nullptr, avct_cb.mtu); in AVCT_Register()
|
D | avct_l2c_br.cc | 143 cfg.mtu = avct_cb.mtu_br; in avct_l2c_br_connect_ind_cback() 209 cfg.mtu = avct_cb.mtu_br; in avct_l2c_br_connect_cfm_cback() 283 p_lcb->peer_mtu = p_cfg->mtu; in avct_l2c_br_config_ind_cback() 287 p_lcb->peer_mtu = p_cfg->mtu = max_mtu; in avct_l2c_br_config_ind_cback() 301 p_cfg->mtu = AVCT_MIN_BROWSE_MTU; in avct_l2c_br_config_ind_cback()
|
D | avct_l2c.cc | 149 cfg.mtu = avct_cb.mtu; in avct_l2c_connect_ind_cback() 188 cfg.mtu = avct_cb.mtu; in avct_l2c_connect_cfm_cback() 287 p_lcb->peer_mtu = p_cfg->mtu; in avct_l2c_config_ind_cback()
|
/system/bt/stack/bnep/ |
D | bnep_main.cc | 83 bnep_cb.l2cap_my_cfg.mtu = BNEP_MTU_SIZE; in bnep_register_with_l2cap() 98 nullptr, bnep_cb.l2cap_my_cfg.mtu)) { in bnep_register_with_l2cap() 210 uint16_t result, mtu = 0; in bnep_config_ind() local 223 if ((!p_cfg->mtu_present) || (p_cfg->mtu < BNEP_MIN_MTU_SIZE)) { in bnep_config_ind() 224 mtu = p_cfg->mtu; in bnep_config_ind() 227 p_cfg->mtu = BNEP_MIN_MTU_SIZE; in bnep_config_ind() 230 if (p_cfg->mtu > BNEP_MTU_SIZE) in bnep_config_ind() 233 p_bcb->rem_mtu_size = p_cfg->mtu; in bnep_config_ind() 244 BNEP_TRACE_EVENT("BNEP - Rcvd cfg ind with bad MTU %d, CID: 0x%x", mtu, in bnep_config_ind()
|
/system/bt/stack/test/rfcomm/ |
D | stack_rfcomm_test.cc | 133 void StartServerPort(uint16_t uuid, uint8_t scn, uint16_t mtu, in StartServerPort() argument 138 ASSERT_EQ(RFCOMM_CreateConnection(uuid, scn, true, mtu, RawAddress::kAny, in StartServerPort() 153 tL2CAP_CFG_INFO cfg_req = {.mtu_present = true, .mtu = L2CAP_MTU_SIZE}; in ConnectServerL2cap() 186 uint8_t scn, uint16_t mtu, uint16_t acl_handle, in ConnectServerPort() argument 191 CreateQuickPnPacket(true, GetDlci(false, scn), true, mtu, in ConnectServerPort() 195 CreateQuickPnPacket(false, GetDlci(false, scn), false, mtu, in ConnectServerPort() 265 uint8_t scn, uint16_t mtu, in StartClientPort() argument 273 true, GetDlci(false, scn), true, mtu, RFCOMM_PN_CONV_LAYER_TYPE_1, in StartClientPort() 283 ASSERT_EQ(RFCOMM_CreateConnection(uuid, scn, false, mtu, peer_bd_addr, in StartClientPort() 295 tL2CAP_CFG_INFO cfg_req = {.mtu_present = true, .mtu = L2CAP_MTU_SIZE}; in TestConnectClientPortL2cap() [all …]
|
/system/bt/bta/include/ |
D | bta_av_co.h | 119 const RawAddress& peer_address, uint16_t mtu); 225 const RawAddress& peer_address, uint16_t mtu);
|