Home
last modified time | relevance | path

Searched refs:inet4AddressToIntHTH (Results 1 – 12 of 12) sorted by relevance

/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DInet4AddressUtilsTest.java22 import static com.android.net.module.util.Inet4AddressUtils.inet4AddressToIntHTH;
72 assertEquals(0, inet4AddressToIntHTH(ipv4Address("0.0.0.0"))); in testInet4AddressToIntHTH()
73 assertEquals(0xff800000, inet4AddressToIntHTH(ipv4Address("255.128.0.0"))); in testInet4AddressToIntHTH()
74 assertEquals(0x0aff8000, inet4AddressToIntHTH(ipv4Address("10.255.128.0"))); in testInet4AddressToIntHTH()
75 assertEquals(0x0afffe00, inet4AddressToIntHTH(ipv4Address("10.255.254.0"))); in testInet4AddressToIntHTH()
76 assertEquals(0xc0a8fffe, inet4AddressToIntHTH(ipv4Address("192.168.255.254"))); in testInet4AddressToIntHTH()
77 assertEquals(0xc0a8ffff, inet4AddressToIntHTH(ipv4Address("192.168.255.255"))); in testInet4AddressToIntHTH()
123 final int addrInt = inet4AddressToIntHTH(ipv4Address(addr)); in checkAddressMasking()
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DInet4AddressUtils.java67 public static int inet4AddressToIntHTH(Inet4Address inetAddr) in inet4AddressToIntHTH() method in Inet4AddressUtils
83 return Integer.reverseBytes(inet4AddressToIntHTH(inetAddr)); in inet4AddressToIntHTL()
120 int i = inet4AddressToIntHTH(netmask); in netmaskToPrefixLength()
152 final int intBroadcastAddr = inet4AddressToIntHTH(addr) in getBroadcastAddress()
/packages/modules/Connectivity/Tethering/src/android/net/dhcp/
DDhcpServingParamsParcelExt.java19 import static com.android.net.module.util.Inet4AddressUtils.inet4AddressToIntHTH;
50 this.serverAddr = inet4AddressToIntHTH((Inet4Address) serverAddr.getAddress()); in setServerAddr()
172 this.singleClientAddr = clientAddr == null ? 0 : inet4AddressToIntHTH(clientAddr); in setSingleClientAddr()
202 res[i] = inet4AddressToIntHTH(addr); in toIntArray()
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpServingParamsTest.java22 import static com.android.net.module.util.Inet4AddressUtils.inet4AddressToIntHTH;
204 parcel.serverAddr = inet4AddressToIntHTH(TEST_SERVER_ADDR); in testFromParcelableObject()
209 parcel.singleClientAddr = inet4AddressToIntHTH(TEST_CLIENT_ADDR); in testFromParcelableObject()
234 return addrs.stream().mapToInt(Inet4AddressUtils::inet4AddressToIntHTH).toArray(); in toIntArray()
DDhcpServerTest.java27 import static com.android.net.module.util.Inet4AddressUtils.inet4AddressToIntHTH;
380 return addrs.stream().mapToInt(Inet4AddressUtils::inet4AddressToIntHTH).toArray(); in toIntArray()
387 params.serverAddr = inet4AddressToIntHTH((Inet4Address) serverAddr.getAddress()); in updateServingParams()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpLease.java19 import static com.android.net.module.util.Inet4AddressUtils.inet4AddressToIntHTH;
175 p.netAddr = inet4AddressToIntHTH(mNetAddr); in toParcelable()
DDhcpLeaseRepository.java22 import static com.android.net.module.util.Inet4AddressUtils.inet4AddressToIntHTH;
152 inet4AddressToIntHTH((Inet4Address) prefix.getAddress()) & mLeasesSubnetMask; in updateParams()
545 if (mClientAddr != null) return inet4AddressToIntHTH(mClientAddr); in getValidAddress()
572 final int intAddr = inet4AddressToIntHTH(addr); in isValidAddress()
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/
DNetworkStackServiceTest.kt38 import com.android.net.module.util.Inet4AddressUtils.inet4AddressToIntHTH
159 testParams.serverAddr = inet4AddressToIntHTH( in prepareDumpVersionTest()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DPrivateAddressCoordinator.java24 import static com.android.net.module.util.Inet4AddressUtils.inet4AddressToIntHTH;
231 return inet4AddressToIntHTH((Inet4Address) prefix.getAddress()); in getPrefixBaseAddress()
/packages/modules/NetworkStack/src/com/android/networkstack/ipmemorystore/
DIpMemoryStoreDatabase.java19 import static com.android.net.module.util.Inet4AddressUtils.inet4AddressToIntHTH;
263 inet4AddressToIntHTH(attributes.assignedV4Address)); in toContentValues()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringTest.java69 import static com.android.net.module.util.Inet4AddressUtils.inet4AddressToIntHTH;
3221 lease.netAddr = inet4AddressToIntHTH( in createDhcpLeaseParcelable()
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/
DApfTest.java3131 int want = Inet4AddressUtils.inet4AddressToIntHTH( in assertEqualsIp()