Home
last modified time | relevance | path

Searched refs:intToInet4AddressHTH (Results 1 – 11 of 11) sorted by relevance

/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DInet4AddressUtilsTest.java24 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()
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DInet4AddressUtils.java38 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()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpServingParams.java20 import static com.android.net.module.util.Inet4AddressUtils.intToInet4AddressHTH;
146 intToInet4AddressHTH(parcel.serverAddr), in fromParcelableObject()
150 clientAddr = intToInet4AddressHTH(parcel.singleClientAddr); in fromParcelableObject()
174 res.add(intToInet4AddressHTH(addr)); in toInet4AddressSet()
DDhcpLeaseRepository.java23 import static com.android.net.module.util.Inet4AddressUtils.intToInet4AddressHTH;
620 final Inet4Address addr = intToInet4AddressHTH(intAddr); in makeNewOffer()
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpLeaseTest.kt21 import com.android.net.module.util.Inet4AddressUtils.intToInet4AddressHTH
100 assertEquals(expected.netAddr, intToInet4AddressHTH(p.netAddr)) in assertParcelEquals()
DDhcpLeaseRepositoryTest.java24 import static com.android.net.module.util.Inet4AddressUtils.intToInet4AddressHTH;
697 intToInet4AddressHTH(p.netAddr), in fromParcelable()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DPrivateAddressCoordinator.java25 import static com.android.net.module.util.Inet4AddressUtils.intToInet4AddressHTH;
317 final InetAddress address = intToInet4AddressHTH(getPrefixBaseAddress(prefix) | subAddress); in getLinkAddress()
325 final InetAddress address = intToInet4AddressHTH(baseAddress | newSubPrefix); in findAvailablePrefixFromRange()
/packages/modules/NetworkStack/src/com/android/networkstack/ipmemorystore/
DIpMemoryStoreDatabase.java20 import static com.android.net.module.util.Inet4AddressUtils.intToInet4AddressHTH;
323 builder.setAssignedV4Address(intToInet4AddressHTH(assignedV4AddressInt)); in readNetworkAttributesLine()
/packages/modules/Connectivity/Tethering/src/android/net/ip/
DIpServer.java34 import static com.android.net.module.util.Inet4AddressUtils.intToInet4AddressHTH;
534 intToInet4AddressHTH(lease.netAddr), lease.prefixLength, in onLeasesChanged()
/packages/modules/Connectivity/Tethering/tests/unit/src/android/net/ip/
DIpServerTest.java40 import static com.android.net.module.util.Inet4AddressUtils.intToInet4AddressHTH;
907 assertTrue(prefix.contains(intToInet4AddressHTH(params.serverAddr))); in assertDhcpServingParams()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringTest.java70 import static com.android.net.module.util.Inet4AddressUtils.intToInet4AddressHTH;
2706 assertEquals(serverAddr, intToInet4AddressHTH(params.serverAddr).getHostAddress()); in testRequestStaticIp()
3199 intToInet4AddressHTH(lease.netAddr), lease.prefixLength, in toTetheredClients()