Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/net/
DDhcpResults.java67 public int mtu; field in DhcpResults
106 mtu = source.mtu; in DhcpResults()
140 mtu = 0; in clear()
152 if (mtu != 0) str.append(" MTU ").append(mtu); in toString()
174 && mtu == target.mtu in equals()
196 dest.writeInt(mtu); in writeToParcel()
212 dhcpResults.mtu = in.readInt(); in readFromParcel()
315 return mtu; in getMtu()
318 public void setMtu(int mtu) { in setMtu() argument
319 this.mtu = mtu; in setMtu()
DRouteInfo.java165 @Nullable String iface, @RouteType int type, int mtu) { in RouteInfo() argument
221 mMtu = mtu; in RouteInfo()
654 int mtu = in.readInt();
656 return new RouteInfo(dest, gateway, iface, type, mtu);
DVpnService.java522 public Builder setMtu(int mtu) { in setMtu() argument
523 if (mtu <= 0) { in setMtu()
526 mConfig.mtu = mtu; in setMtu()
DLinkProperties.java643 public void setMtu(int mtu) { in setMtu() argument
644 mMtu = mtu; in setMtu()
1914 public static boolean isValidMtu(int mtu, boolean ipv6) { in isValidMtu() argument
1916 return mtu >= MIN_MTU_V6 && mtu <= MAX_MTU; in isValidMtu()
1918 return mtu >= MIN_MTU && mtu <= MAX_MTU; in isValidMtu()
DIkev2VpnProfile.java810 public Builder setMaxMtu(int mtu) { in setMaxMtu() argument
814 if (mtu < LinkProperties.MIN_MTU_V6) { in setMaxMtu()
818 mMaxMtu = mtu; in setMaxMtu()
/frameworks/base/telephony/java/android/telephony/data/
DDataCallResponse.java113 @Nullable List<InetAddress> pcscfAddresses, int mtu) { in DataCallResponse() argument
128 mMtu = mMtuV4 = mMtuV6 = mtu; in DataCallResponse()
136 @Nullable List<InetAddress> pcscfAddresses, int mtu, int mtuV4, int mtuV6) { in DataCallResponse() argument
151 mMtu = mtu; in DataCallResponse()
524 public @NonNull Builder setMtu(int mtu) { in setMtu() argument
525 mMtu = mtu; in setMtu()
537 public @NonNull Builder setMtuV4(int mtu) { in setMtuV4() argument
538 mMtuV4 = mtu; in setMtuV4()
550 public @NonNull Builder setMtuV6(int mtu) { in setMtuV6() argument
551 mMtuV6 = mtu; in setMtuV6()
DDataProfile.java592 public @NonNull Builder setMtu(int mtu) { in setMtu() argument
593 mMtuV4 = mMtuV6 = mtu; in setMtu()
604 public @NonNull Builder setMtuV4(int mtu) { in setMtuV4() argument
605 mMtuV4 = mtu; in setMtuV4()
615 public @NonNull Builder setMtuV6(int mtu) { in setMtuV6() argument
616 mMtuV6 = mtu; in setMtuV6()
DApnSetting.java786 boolean modemCognitive, int maxConns, int waitTime, int maxConnsTime, int mtu, in makeApnSetting() argument
811 .setMtu(mtu) in makeApnSetting()
828 int maxConns, int waitTime, int maxConnsTime, int mtu, int mvnoType, in makeApnSetting() argument
833 modemCognitive, maxConns, waitTime, maxConnsTime, mtu, mvnoType, mvnoMatchData, in makeApnSetting()
1020 int mtu = UNSET_MTU; in fromString() local
1055 mtu = Integer.parseInt(a[23]); in fromString()
1092 maxConnsTime, mtu, getMvnoTypeIntFromString(mvnoType), mvnoMatchData, apnSetId, in fromString()
1718 public Builder setMtu(int mtu) { in setMtu() argument
1719 this.mMtu = mtu; in setMtu()
/frameworks/base/services/net/java/android/net/util/
DDhcpResultsCompatUtil.java47 results.mtu = p.mtu; in fromStableParcelable()
/frameworks/base/packages/Tethering/src/android/net/ip/
DRouterAdvertisementDaemon.java132 public int mtu; field in RouterAdvertisementDaemon.RaParams
139 mtu = IPV6_MIN_MTU; in RaParams()
147 mtu = other.mtu; in RaParams()
318 putMtu(ra, mRaParams.mtu); in assembleRaLocked()
455 private static void putMtu(ByteBuffer ra, int mtu) { in putMtu() argument
472 .putInt((mtu < IPV6_MIN_MTU) ? IPV6_MIN_MTU : mtu); in putMtu()
/frameworks/base/services/core/jni/
Dcom_android_server_connectivity_Vpn.cpp58 static int create_interface(int mtu) in create_interface() argument
80 ifr4.ifr_mtu = mtu; in create_interface()
81 if (mtu > 0 && ioctl(inet4, SIOCSIFMTU, &ifr4)) { in create_interface()
262 static jint create(JNIEnv *env, jobject /* thiz */, jint mtu) in create() argument
264 int tun = create_interface(mtu); in create()
/frameworks/base/core/java/com/android/internal/net/
DVpnConfig.java94 public int mtu = -1; field in VpnConfig
160 out.writeInt(mtu); in writeToParcel()
187 config.mtu = in.readInt();
220 .append(", mtu=").append(mtu) in toString()
/frameworks/base/packages/Tethering/tests/integration/src/android/net/
DEthernetTetheringTest.java159 int mtu = getMTU(mTestIface); in testVirtualEthernetAlreadyExists() local
168 checkVirtualEthernet(mTestIface, mtu); in testVirtualEthernetAlreadyExists()
366 private TapPacketReader makePacketReader(FileDescriptor fd, int mtu) { in makePacketReader() argument
367 final TapPacketReader reader = new TapPacketReader(mHandler, fd, mtu); in makePacketReader()
373 private void checkVirtualEthernet(TestNetworkInterface iface, int mtu) throws Exception { in checkVirtualEthernet() argument
375 mTapPacketReader = makePacketReader(fd, mtu); in checkVirtualEthernet()
/frameworks/base/core/java/android/bluetooth/
DBluetoothGattCallback.java177 public void onMtuChanged(BluetoothGatt gatt, int mtu, int status) { in onMtuChanged() argument
DBluetoothGattServerCallback.java152 public void onMtuChanged(BluetoothDevice device, int mtu) { in onMtuChanged() argument
DBluetoothGatt.java644 public void onConfigureMTU(String address, int mtu, int status) {
647 + " mtu=" + mtu + " status=" + status);
658 callback.onMtuChanged(BluetoothGatt.this, mtu, status);
1475 public boolean requestMtu(int mtu) { in requestMtu() argument
1478 + " mtu: " + mtu); in requestMtu()
1483 mService.configureMTU(mClientIf, mDevice.getAddress(), mtu); in requestMtu()
DBluetoothGattServer.java291 public void onMtuChanged(String address, int mtu) {
294 + "device=" + address + ", mtu=" + mtu);
301 mCallback.onMtuChanged(device, mtu);
/frameworks/base/tests/net/java/android/net/
DIpMemoryStoreTest.java106 private static NetworkAttributes buildTestNetworkAttributes(String hint, int mtu) { in buildTestNetworkAttributes() argument
109 .setMtu(mtu) in buildTestNetworkAttributes()
/frameworks/base/core/java/android/os/
DINetworkManagementService.aidl122 void setMtu(String iface, int mtu); in setMtu() argument
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDataConnection.java585 int mtu = mPhone.getContext().getResources().getInteger( in checkSetMtu() local
587 if (mtu != PhoneConstants.UNSET_MTU) { in checkSetMtu()
588 lp.setMtu(mtu); in checkSetMtu()
589 if (DBG) log("MTU set by config resource to: " + mtu); in checkSetMtu()
1560 int mtu = gateway instanceof java.net.Inet6Address ? response.getMtuV6() in setLinkProperties() local
1565 RouteInfo.RTN_UNICAST, mtu)); in setLinkProperties()
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java1058 if (mConfig.mtu > 0) {
1059 lp.setMtu(mConfig.mtu);
1206 ParcelFileDescriptor tun = ParcelFileDescriptor.adoptFd(jniCreate(config.mtu));
1867 private native int jniCreate(int mtu);
2296 mConfig.mtu = maxMtu;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DRIL.java1720 dpi.mtu = dp.getMtuV4(); in convertToHalDataProfile10()
1754 dpi.mtu = dp.getMtuV4(); in convertToHalDataProfile14()
6782 int cause, suggestedRetryTime, cid, active, mtu, mtuV4, mtuV6; in convertDataCallResult() local
6813 mtu = mtuV4 = mtuV6 = result.mtu; in convertDataCallResult()
6832 mtu = mtuV4 = mtuV6 = result.mtu; in convertDataCallResult()
6854 mtu = Math.max(result.mtuV4, result.mtuV6); in convertDataCallResult()
6918 .setMtu(mtu) in convertDataCallResult()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java2401 final int mtu = newLp.getMtu(); in updateMtu() local
2402 if (oldLp == null && mtu == 0) { in updateMtu()
2410 if (!LinkProperties.isValidMtu(mtu, newLp.hasGlobalIpv6Address())) { in updateMtu()
2411 if (mtu != 0) loge("Unexpected mtu value: " + mtu + ", " + iface); in updateMtu()
2422 if (VDBG || DDBG) log("Setting MTU size: " + iface + ", " + mtu); in updateMtu()
2423 mNMS.setMtu(iface, mtu); in updateMtu()
6116 rip.mtu = route.getMtu(); in convertRouteInfo()
DNetworkManagementService.java948 public void setMtu(String iface, int mtu) { in setMtu() argument
952 mNetdService.interfaceSetMtu(iface, mtu); in setMtu()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DRILTest.java1993 result10.mtu = 1500; in testConvertDataCallResult()
2035 result14.mtu = 1500; in testConvertDataCallResult()
2370 assertEquals(MTU, dpi.mtu); in testSetupDataCall()

12