Searched refs:intToInet4AddressHTH (Results 1 – 11 of 11) sorted by relevance
/aosp12/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/ |
H A D | Inet4AddressUtilsTest.java | 24 import static com.android.net.module.util.Inet4AddressUtils.intToInet4AddressHTH; 82 assertEquals(ipv4Address("0.0.0.0"), intToInet4AddressHTH(0)); in testIntToInet4AddressHTH() 83 assertEquals(ipv4Address("255.128.0.0"), intToInet4AddressHTH(0xff800000)); in testIntToInet4AddressHTH() 84 assertEquals(ipv4Address("10.255.128.0"), intToInet4AddressHTH(0x0aff8000)); in testIntToInet4AddressHTH() 85 assertEquals(ipv4Address("10.255.254.0"), intToInet4AddressHTH(0x0afffe00)); in testIntToInet4AddressHTH() 86 assertEquals(ipv4Address("192.168.255.254"), intToInet4AddressHTH(0xc0a8fffe)); in testIntToInet4AddressHTH() 87 assertEquals(ipv4Address("192.168.255.255"), intToInet4AddressHTH(0xc0a8ffff)); in testIntToInet4AddressHTH() 124 assertEquals(ipv4Address(expectedAddr), intToInet4AddressHTH(prefix & addrInt)); in checkAddressMasking()
|
/aosp12/frameworks/libs/net/common/framework/com/android/net/module/util/ |
H A D | Inet4AddressUtils.java | 38 return intToInet4AddressHTH(Integer.reverseBytes(hostAddress)); in intToInet4AddressHTL() 45 public static Inet4Address intToInet4AddressHTH(int hostAddress) { in intToInet4AddressHTH() method in Inet4AddressUtils 154 return intToInet4AddressHTH(intBroadcastAddr); in getBroadcastAddress() 164 return intToInet4AddressHTH(prefixLengthToV4NetmaskIntHTH(prefixLength)); in getPrefixMaskAsInet4Address()
|
/aosp12/packages/modules/NetworkStack/src/android/net/dhcp/ |
H A D | DhcpServingParams.java | 20 import static com.android.net.module.util.Inet4AddressUtils.intToInet4AddressHTH; 136 intToInet4AddressHTH(parcel.serverAddr), in fromParcelableObject() 140 clientAddr = intToInet4AddressHTH(parcel.singleClientAddr); in fromParcelableObject() 163 res.add(intToInet4AddressHTH(addr)); in toInet4AddressSet()
|
H A D | DhcpLeaseRepository.java | 23 import static com.android.net.module.util.Inet4AddressUtils.intToInet4AddressHTH; 616 final Inet4Address addr = intToInet4AddressHTH(intAddr); in makeNewOffer()
|
/aosp12/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/ |
H A D | DhcpLeaseTest.kt | 21 import com.android.net.module.util.Inet4AddressUtils.intToInet4AddressHTH 100 assertEquals(expected.netAddr, intToInet4AddressHTH(p.netAddr))
|
H A D | DhcpLeaseRepositoryTest.java | 24 import static com.android.net.module.util.Inet4AddressUtils.intToInet4AddressHTH; 655 intToInet4AddressHTH(p.netAddr), in fromParcelable()
|
/aosp12/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/ |
H A D | PrivateAddressCoordinator.java | 24 import static com.android.net.module.util.Inet4AddressUtils.intToInet4AddressHTH; 284 final InetAddress address = intToInet4AddressHTH(getPrefixBaseAddress(prefix) | subAddress); in getLinkAddress() 292 final InetAddress address = intToInet4AddressHTH(baseAddress | newSubPrefix); in findAvailablePrefixFromRange()
|
/aosp12/packages/modules/NetworkStack/src/com/android/server/connectivity/ipmemorystore/ |
H A D | IpMemoryStoreDatabase.java | 20 import static com.android.net.module.util.Inet4AddressUtils.intToInet4AddressHTH; 319 builder.setAssignedV4Address(intToInet4AddressHTH(assignedV4AddressInt)); in readNetworkAttributesLine()
|
/aosp12/packages/modules/Connectivity/Tethering/src/android/net/ip/ |
H A D | IpServer.java | 28 import static com.android.net.module.util.Inet4AddressUtils.intToInet4AddressHTH; 476 intToInet4AddressHTH(lease.netAddr), lease.prefixLength, in onLeasesChanged()
|
/aosp12/packages/modules/Connectivity/Tethering/tests/unit/src/android/net/ip/ |
H A D | IpServerTest.java | 41 import static com.android.net.module.util.Inet4AddressUtils.intToInet4AddressHTH; 1284 assertTrue(prefix.contains(intToInet4AddressHTH(params.serverAddr))); in assertDhcpServingParams()
|
/aosp12/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
H A D | TetheringTest.java | 66 import static com.android.net.module.util.Inet4AddressUtils.intToInet4AddressHTH; 2206 assertEquals(serverAddr, intToInet4AddressHTH(params.serverAddr).getHostAddress()); in testRequestStaticIp() 2526 intToInet4AddressHTH(lease.netAddr), lease.prefixLength, in toTetheredClients()
|