Home
last modified time | relevance | path

Searched refs:mtu (Results 1 – 25 of 228) sorted by relevance

12345678910

/packages/modules/NetworkStack/common/networkstackclient/src/android/net/ipmemorystore/
DNetworkAttributes.java84 public final Integer mtu; field in NetworkAttributes
112 @Nullable final Integer mtu, in NetworkAttributes() argument
114 if (mtu != null && mtu < 0) throw new IllegalArgumentException("MTU can't be negative"); in NetworkAttributes()
123 this.mtu = mtu; in NetworkAttributes()
136 parcelable.mtu >= 0 ? parcelable.mtu : null, in NetworkAttributes()
186 parcelable.mtu = (null == mtu) ? -1 : mtu; in toParcelable()
209 + samenessContribution(WEIGHT_MTU, mtu, o.mtu) in getNetworkGroupSamenessConfidence()
253 mMtu = attributes.mtu; in Builder()
315 public Builder setMtu(@Nullable final Integer mtu) { in setMtu() argument
316 if (null != mtu && mtu < 0) throw new IllegalArgumentException("MTU can't be negative"); in setMtu()
[all …]
/packages/modules/Bluetooth/system/packet/tests/avrcp/
Dget_element_attributes_packet_test.cc126 size_t mtu = size_t(-1); in TEST() local
127 Helper helper(mtu, [](size_t mtu) { return Builder::MakeBuilder(mtu); }); in TEST() argument
129 EXPECT_NO_FATAL_FAILURE(helper.runTest(test_data, mtu, false, false)); in TEST()
131 mtu = test_data[0].size() + Builder::kHeaderSize(); in TEST()
132 EXPECT_NO_FATAL_FAILURE(helper.runTest(test_data, mtu)); in TEST()
134 mtu = test_data[0].size() + test_data[1].size() + Builder::kHeaderSize(); in TEST()
135 EXPECT_NO_FATAL_FAILURE(helper.runTest(test_data, mtu)); in TEST()
137 mtu = test_data[0].size() + (Builder::kHeaderSize() * 2) + 1; in TEST()
138 EXPECT_NO_FATAL_FAILURE(helper.runTest(test_data, mtu, true, false)); in TEST()
140 mtu = Builder::kHeaderSize() + AttributeEntry::kHeaderSize() + 1; in TEST()
[all …]
Dget_item_attributes_packet_test.cc149 size_t mtu = size_t(-1); in TEST() local
150 Helper helper(mtu, [](size_t mtu) { in TEST() argument
151 return Builder::MakeBuilder(Status::NO_ERROR, mtu); in TEST()
154 EXPECT_NO_FATAL_FAILURE(helper.runTest(test_data, mtu, false, false)); in TEST()
156 mtu = test_data[0].size() + Builder::kHeaderSize(); in TEST()
157 EXPECT_NO_FATAL_FAILURE(helper.runTest(test_data, mtu)); in TEST()
159 mtu = test_data[0].size() + test_data[1].size() + Builder::kHeaderSize(); in TEST()
160 EXPECT_NO_FATAL_FAILURE(helper.runTest(test_data, mtu)); in TEST()
162 mtu = test_data[0].size() + (Builder::kHeaderSize() * 2) + 1; in TEST()
163 EXPECT_NO_FATAL_FAILURE(helper.runTest(test_data, mtu, true, false)); in TEST()
[all …]
/packages/modules/Bluetooth/system/stack/rfcomm/
Dport_rfc.cc79 RFCOMM_ParameterNegotiationRequest(p_mcb, p_port->dlci, p_port->mtu); in port_open_continue()
205 RFCOMM_ParameterNegotiationRequest(p_mcb, p_port->dlci, p_port->mtu); in PORT_StartCnf()
280 void PORT_ParNegInd(tRFC_MCB* p_mcb, uint8_t dlci, uint16_t mtu, uint8_t cl, in PORT_ParNegInd() argument
283 p_mcb->bd_addr.ToString().c_str(), dlci, mtu); in PORT_ParNegInd()
310 p_port->mtu = (p_port->mtu < mtu) ? p_port->mtu : mtu; in PORT_ParNegInd()
311 p_port->peer_mtu = p_port->mtu; in PORT_ParNegInd()
355 RFCOMM_ParameterNegotiationResponse(p_mcb, dlci, p_port->mtu, our_cl, our_k); in PORT_ParNegInd()
369 void PORT_ParNegCnf(tRFC_MCB* p_mcb, uint8_t dlci, uint16_t mtu, uint8_t cl, in PORT_ParNegCnf() argument
371 RFCOMM_TRACE_EVENT("PORT_ParNegCnf dlci:%d mtu:%d cl: %d k: %d", dlci, mtu, in PORT_ParNegCnf()
405 p_port->mtu = (p_port->mtu < mtu) ? p_port->mtu : mtu; in PORT_ParNegCnf()
[all …]
Dport_utils.cc144 if (p_port->mtu == 0) { in port_select_mtu()
151 p_port->mtu = RFCOMM_DEFAULT_MTU; in port_select_mtu()
167 p_port->mtu = ((L2CAP_MTU_SIZE + L2CAP_PKT_OVERHEAD) / packet_size * in port_select_mtu()
171 __func__, p_port->mtu); in port_select_mtu()
173 p_port->mtu = L2CAP_MTU_SIZE - RFCOMM_DATA_OVERHEAD; in port_select_mtu()
175 p_port->mtu); in port_select_mtu()
179 RFCOMM_TRACE_DEBUG("%s: application selected %d", __func__, p_port->mtu); in port_select_mtu()
181 p_port->credit_rx_max = (PORT_RX_HIGH_WM / p_port->mtu); in port_select_mtu()
184 p_port->credit_rx_low = (PORT_RX_LOW_WM / p_port->mtu); in port_select_mtu()
187 p_port->rx_buf_critical = (PORT_RX_CRITICAL_WM / p_port->mtu); in port_select_mtu()
[all …]
Drfc_int.h56 extern void RFCOMM_DlcEstablishReq(tRFC_MCB* p_mcb, uint8_t dlci, uint16_t mtu);
57 extern void RFCOMM_DlcEstablishRsp(tRFC_MCB* p_mcb, uint8_t dlci, uint16_t mtu,
65 uint16_t mtu);
67 uint16_t mtu, uint8_t cl,
105 uint16_t mtu; member
267 uint16_t mtu, uint8_t cl, uint8_t k);
292 extern void PORT_DlcEstablishInd(tRFC_MCB* p_mcb, uint8_t dlci, uint16_t mtu);
293 extern void PORT_DlcEstablishCnf(tRFC_MCB* p_mcb, uint8_t dlci, uint16_t mtu,
300 extern void PORT_ParNegInd(tRFC_MCB* p_mcb, uint8_t dlci, uint16_t mtu,
302 extern void PORT_ParNegCnf(tRFC_MCB* p_mcb, uint8_t dlci, uint16_t mtu,
Drfc_port_if.cc77 UNUSED_ATTR uint16_t mtu) { in RFCOMM_DlcEstablishReq() argument
101 UNUSED_ATTR uint16_t mtu, uint16_t result) { in RFCOMM_DlcEstablishRsp() argument
127 uint16_t mtu) { in RFCOMM_ParameterNegotiationRequest() argument
162 rfc_send_pn(p_mcb, dlci, true, mtu, cl, k); in RFCOMM_ParameterNegotiationRequest()
176 uint16_t mtu, uint8_t cl, uint8_t k) { in RFCOMM_ParameterNegotiationResponse() argument
180 rfc_send_pn(p_mcb, dlci, false, mtu, cl, k); in RFCOMM_ParameterNegotiationResponse()
Dport_api.cc105 bool is_server, uint16_t mtu, in RFCOMM_CreateConnectionWithSecurity() argument
117 << ", mtu=" << static_cast<int>(mtu) in RFCOMM_CreateConnectionWithSecurity()
146 << ", is_server=" << is_server << ", mtu=" << mtu in RFCOMM_CreateConnectionWithSecurity()
161 << ", mtu=" << mtu << ", uuid=" << loghex(uuid) in RFCOMM_CreateConnectionWithSecurity()
201 if (mtu) { in RFCOMM_CreateConnectionWithSecurity()
202 p_port->mtu = (mtu < rfcomm_mtu) ? mtu : rfcomm_mtu; in RFCOMM_CreateConnectionWithSecurity()
204 p_port->mtu = rfcomm_mtu; in RFCOMM_CreateConnectionWithSecurity()
213 p_port->keep_mtu = p_port->mtu; in RFCOMM_CreateConnectionWithSecurity()
222 << ", mtu=" << mtu << ", uuid=" << loghex(uuid) in RFCOMM_CreateConnectionWithSecurity()
/packages/modules/NetworkStack/src/android/net/
DDhcpResults.java69 public int mtu; field in DhcpResults
110 mtu = source.mtu; in DhcpResults()
145 mtu = 0; in clear()
157 if (mtu != 0) str.append(" MTU ").append(mtu); in toString()
179 && mtu == target.mtu in equals()
186 serverHostName, captivePortalApiUrl) + 43 * leaseDuration + 67 * mtu; in hashCode()
208 dest.writeInt(mtu); in writeToParcel()
225 dhcpResults.mtu = in.readInt(); in readFromParcel()
344 return mtu; in getMtu()
347 public void setMtu(int mtu) { in setMtu() argument
[all …]
/packages/modules/Bluetooth/system/blueberry/tests/gd/l2cap/classic/
Dl2cap_performance_test.py46 def _basic_mode_tx(self, mtu, packets): argument
55 dut_channel.send(b'a' * mtu)
57 L2capMatchers.Data(b'a' * mtu), at_least_times=packets, timeout=timedelta(seconds=60))
65 def _basic_mode_tx_fixed_interval(self, mtu, interval=timedelta(seconds=10), batch_size=20): argument
78 dut_channel.send(b'a' * mtu)
80 … assertThat(cert_channel).emits(L2capMatchers.Data(b'a' * mtu), at_least_times=batch_size)
84 def _basic_mode_rx(self, mtu, packets): argument
89 data = b"a" * mtu
100 def _ertm_mode_tx(self, mtu, packets, tx_window_size=10): argument
119 dut_channel.send(b'a' * mtu)
[all …]
Dcert_l2cap.py284 def config_option_basic_explicit(mtu=642): argument
286 mtu_opt.mtu = mtu
292 def config_option_mtu_explicit(mtu=642): argument
294 mtu_opt.mtu = mtu
298 def config_option_ertm(mtu=642, argument
307 mtu_opt.mtu = mtu
/packages/modules/Bluetooth/system/stack/l2cap/
Dl2c_ble.cc452 uint16_t lcid = 0, rcid = 0, mtu = 0, mps = 0, initial_credit = 0; in l2cble_process_sig_cmd() local
549 STREAM_TO_UINT16(mtu, p); in l2cble_process_sig_cmd()
570 mtu, mps, initial_credit, num_of_channels); in l2cble_process_sig_cmd()
603 if (mtu < L2CAP_CREDIT_BASED_MIN_MTU || in l2cble_process_sig_cmd()
636 temp_p_ccb->peer_conn_cfg.mtu = mtu; in l2cble_process_sig_cmd()
652 p_ccb->local_conn_cfg.mtu = L2CAP_SDU_LENGTH_LE_MAX; in l2cble_process_sig_cmd()
695 STREAM_TO_UINT16(mtu, p); in l2cble_process_sig_cmd()
717 if (mtu < L2CAP_CREDIT_BASED_MIN_MTU || in l2cble_process_sig_cmd()
743 mtu, mps, initial_credit, con_info.l2cap_result, num_of_channels); in l2cble_process_sig_cmd()
745 con_info.peer_mtu = mtu; in l2cble_process_sig_cmd()
[all …]
/packages/modules/Bluetooth/system/gd/l2cap/le/internal/
Dsignalling_manager.h57 …static PendingCommand CreditBasedConnectionRequest(SignalId signal_id, Psm psm, Cid scid, Mtu mtu,… in CreditBasedConnectionRequest()
64 pending_command.mtu_ = mtu; in CreditBasedConnectionRequest()
106 void SendConnectionRequest(Psm psm, Cid local_cid, Mtu mtu);
118 void SendEnhancedConnectionRequest(Psm psm, std::vector<Cid> local_cid, Mtu mtu);
120 void SendEnhancedReconfigureRequest(std::vector<Cid> local_cid, Mtu mtu);
134 void OnConnectionRequest(SignalId signal_id, Psm psm, Cid remote_cid, Mtu mtu, uint16_t mps,
137 …void OnConnectionResponse(SignalId signal_id, Cid remote_cid, Mtu mtu, uint16_t mps, uint16_t init…
149 Mtu mtu; member
156 …void send_connection_response(SignalId signal_id, Cid local_cid, Mtu mtu, uint16_t mps, uint16_t i…
161 void on_security_result_for_outgoing(Psm psm, Cid local_cid, Mtu mtu, bool result);
Dsignalling_manager.cc59 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()
113 …LeSignallingManager::SendEnhancedConnectionRequest(Psm psm, std::vector<Cid> local_cid, Mtu mtu) {} in SendEnhancedConnectionRequest() argument
115 void LeSignallingManager::SendEnhancedReconfigureRequest(std::vector<Cid> local_cid, Mtu mtu) {} in SendEnhancedReconfigureRequest() argument
178 void LeSignallingManager::OnConnectionRequest(SignalId signal_id, Psm psm, Cid remote_cid, Mtu mtu,… in OnConnectionRequest() argument
206 .mtu = mtu, in OnConnectionRequest()
243 auto local_mtu = config.mtu; in on_security_result_for_incoming()
259 auto actual_mtu = std::min(request.mtu, local_mtu); in on_security_result_for_incoming()
[all …]
/packages/modules/Bluetooth/system/gd/packet/
Dfragmenting_inserter_unittest.cc140 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()
/packages/modules/Bluetooth/system/service/ipc/binder/
Dbluetooth_low_energy_binder_server.cc103 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()
/packages/modules/Bluetooth/system/packet/avrcp/
Dget_folder_items.h28 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()
/packages/modules/Bluetooth/system/stack/test/rfcomm/
Dstack_rfcomm_test.cc133 void StartServerPort(uint16_t uuid, uint8_t scn, uint16_t mtu, in StartServerPort() argument
139 uuid, scn, true, mtu, RawAddress::kAny, server_handle, in StartServerPort()
154 tL2CAP_CFG_INFO cfg_req = {.mtu_present = true, .mtu = L2CAP_MTU_SIZE}; in ConnectServerL2cap()
187 uint8_t scn, uint16_t mtu, uint16_t acl_handle, in ConnectServerPort() argument
192 CreateQuickPnPacket(true, GetDlci(false, scn), true, mtu, in ConnectServerPort()
196 CreateQuickPnPacket(false, GetDlci(false, scn), false, mtu, in ConnectServerPort()
266 uint8_t scn, uint16_t mtu, in StartClientPort() argument
274 true, GetDlci(false, scn), true, mtu, RFCOMM_PN_CONV_LAYER_TYPE_1, in StartClientPort()
284 ASSERT_EQ(RFCOMM_CreateConnectionWithSecurity(uuid, scn, false, mtu, in StartClientPort()
297 tL2CAP_CFG_INFO cfg_req = {.mtu_present = true, .mtu = L2CAP_MTU_SIZE}; in TestConnectClientPortL2cap()
[all …]
/packages/modules/Bluetooth/system/service/
Dlow_energy_client.cc99 bool LowEnergyClient::SetMtu(const std::string& address, int mtu) { in SetMtu() argument
100 VLOG(2) << __func__ << "Address: " << address << " MTU: " << mtu; in SetMtu()
117 ->configure_mtu(conn_id->second, mtu); in SetMtu()
176 hal::BluetoothGattInterface* gatt_iface, int conn_id, int status, int mtu) { in MtuChangedCallback() argument
178 << " mtu: " << mtu; in MtuChangedCallback()
194 if (delegate_) delegate_->OnMtuChanged(this, status, addr.c_str(), mtu); in MtuChangedCallback()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpResultsParcelableUtil.java41 p.mtu = results.mtu; in toStableParcelable()
56 results.mtu = p.mtu; in fromStableParcelable()
/packages/modules/Bluetooth/system/stack/test/common/
Dmock_eatt.cc54 uint16_t mtu) { in Reconfigure() argument
55 pimpl_->Reconfigure(bd_addr, cid, mtu); in Reconfigure()
57 void EattExtension::ReconfigureAll(const RawAddress& bd_addr, uint16_t mtu) { in ReconfigureAll() argument
58 pimpl_->ReconfigureAll(bd_addr, mtu); in ReconfigureAll()
/packages/modules/Bluetooth/system/stack/eatt/
Deatt_impl.h55 eatt_device(const RawAddress& bd_addr, uint16_t mtu, uint16_t mps) in eatt_device() argument
56 : rx_mtu_(mtu), rx_mps_(mps), eatt_tcb_(nullptr), collision(false) { in eatt_device()
154 .mtu = eatt_dev->rx_mtu_, in eatt_l2cap_connect_ind_common()
199 uint16_t mtu = 0; member
202 mtu = chan->tx_mtu_;
208 mtu = el.second->tx_mtu_;
214 if (cid == 0 || mtu == 0) {
220 BT_HDR* p_buf = (BT_HDR*)osi_malloc(mtu + sizeof(BT_HDR));
222 p_buf->len = mtu;
448 channel->rx_mtu_ = p_cfg->mtu; in eatt_l2cap_reconfig_completed()
[all …]
/packages/modules/Connectivity/service/native/libs/libclat/
Dclatutils.cpp195 int mtu; in detect_mtu() local
196 socklen_t sz_mtu = sizeof(mtu); in detect_mtu()
197 if (getsockopt(s, SOL_IPV6, IPV6_MTU, &mtu, &sz_mtu)) { in detect_mtu()
203 if (sz_mtu != sizeof(mtu)) { in detect_mtu()
210 return mtu; in detect_mtu()
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/common/bluetooth/gatt/
DBluetoothGattHelper.java377 Optional<Integer> mtuOption = options.mtu(); in onConnectionStateChange()
435 public void onMtuChanged(BluetoothGattWrapper gatt, int mtu, int status) { in onMtuChanged() argument
446 new Operation<>(OperationType.CHANGE_MTU, gatt), status, mtu); in onMtuChanged()
577 Optional<Integer> mtu) { in ConnectionOptions() argument
581 this.mMtu = mtu; in ConnectionOptions()
596 Optional<Integer> mtu() { in mtu() method in BluetoothGattHelper.ConnectionOptions
620 && this.mMtu.equals(that.mtu()); in equals()
668 public Builder setMtu(int mtu) { in setMtu() argument
669 this.mMtu = Optional.of(mtu); in setMtu()
/packages/modules/Bluetooth/system/gd/l2cap/
Dl2cap_packets.pdl322 mtu : 16,
547 mtu : 16,
568 mtu : 16,
576 mtu : 16,
666 mtu : 16,
686 mtu : 16,
699 mtu : 16,
706 mtu : 16,
714 mtu : 16,

12345678910