Home
last modified time | relevance | path

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

/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/
DInet4AddressUtilsTest.java24 import static com.android.net.module.util.Inet4AddressUtils.intToInet4AddressHTH;
80 assertEquals(ipv4Address("0.0.0.0"), intToInet4AddressHTH(0)); in testIntToInet4AddressHTH()
81 assertEquals(ipv4Address("255.128.0.0"), intToInet4AddressHTH(0xff800000)); in testIntToInet4AddressHTH()
82 assertEquals(ipv4Address("10.255.128.0"), intToInet4AddressHTH(0x0aff8000)); in testIntToInet4AddressHTH()
83 assertEquals(ipv4Address("10.255.254.0"), intToInet4AddressHTH(0x0afffe00)); in testIntToInet4AddressHTH()
84 assertEquals(ipv4Address("192.168.255.254"), intToInet4AddressHTH(0xc0a8fffe)); in testIntToInet4AddressHTH()
85 assertEquals(ipv4Address("192.168.255.255"), intToInet4AddressHTH(0xc0a8ffff)); in testIntToInet4AddressHTH()
122 assertEquals(ipv4Address(expectedAddr), intToInet4AddressHTH(prefix & addrInt)); in checkAddressMasking()
/frameworks/base/core/java/android/net/shared/
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()
/frameworks/libs/net/common/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()
/frameworks/base/packages/Tethering/src/android/net/ip/
DIpServer.java22 import static android.net.shared.Inet4AddressUtils.intToInet4AddressHTH;
474 intToInet4AddressHTH(lease.netAddr), lease.prefixLength, in onLeasesChanged()
/frameworks/base/packages/Tethering/tests/unit/src/android/net/ip/
DIpServerTest.java39 import static android.net.shared.Inet4AddressUtils.intToInet4AddressHTH;
1002 assertTrue(prefix.contains(intToInet4AddressHTH(params.serverAddr))); in assertDhcpServingParams()
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringTest.java43 import static android.net.shared.Inet4AddressUtils.intToInet4AddressHTH;
1749 assertEquals(serverAddr, intToInet4AddressHTH(params.serverAddr).getHostAddress()); in testRequestStaticIp()