Searched refs:ipv4Address (Results 1 – 4 of 4) sorted by relevance
/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/ |
D | Inet4AddressUtilsTest.java | 50 assertEquals(0, inet4AddressToIntHTL(ipv4Address("0.0.0.0"))); in testInet4AddressToIntHTL() 51 assertEquals(0x000080ff, inet4AddressToIntHTL(ipv4Address("255.128.0.0"))); in testInet4AddressToIntHTL() 52 assertEquals(0x0080ff0a, inet4AddressToIntHTL(ipv4Address("10.255.128.0"))); in testInet4AddressToIntHTL() 53 assertEquals(0x00feff0a, inet4AddressToIntHTL(ipv4Address("10.255.254.0"))); in testInet4AddressToIntHTL() 54 assertEquals(0xfeffa8c0, inet4AddressToIntHTL(ipv4Address("192.168.255.254"))); in testInet4AddressToIntHTL() 55 assertEquals(0xffffa8c0, inet4AddressToIntHTL(ipv4Address("192.168.255.255"))); in testInet4AddressToIntHTL() 60 assertEquals(ipv4Address("0.0.0.0"), intToInet4AddressHTL(0)); in testIntToInet4AddressHTL() 61 assertEquals(ipv4Address("255.128.0.0"), intToInet4AddressHTL(0x000080ff)); in testIntToInet4AddressHTL() 62 assertEquals(ipv4Address("10.255.128.0"), intToInet4AddressHTL(0x0080ff0a)); in testIntToInet4AddressHTL() 63 assertEquals(ipv4Address("10.255.254.0"), intToInet4AddressHTL(0x00feff0a)); in testIntToInet4AddressHTL() [all …]
|
/frameworks/base/core/java/android/text/format/ |
D | Formatter.java | 209 public static String formatIpAddress(int ipv4Address) { in formatIpAddress() argument 210 return NetworkUtils.intToInetAddress(ipv4Address).getHostAddress(); in formatIpAddress()
|
/frameworks/base/packages/Tethering/src/android/net/ip/ |
D | IpServer.java | 518 private RouteInfo getDirectConnectedRoute(@NonNull final LinkAddress ipv4Address) { in getDirectConnectedRoute() argument 519 Objects.requireNonNull(ipv4Address); in getDirectConnectedRoute() 520 return new RouteInfo(PrefixUtils.asIpPrefix(ipv4Address), null, mIfaceName, RTN_UNICAST); in getDirectConnectedRoute()
|
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | TetheringTest.java | 1865 private static UpstreamNetworkState buildV4WifiUpstreamState(final String ipv4Address, in buildV4WifiUpstreamState() argument 1871 new LinkAddress(InetAddresses.parseNumericAddress(ipv4Address), in buildV4WifiUpstreamState() 1889 final String ipv4Address = ifaceConfigCaptor.getValue().ipv4Addr; in testHandleIpConflict() local 1893 upstreamNetwork = buildV4WifiUpstreamState(ipv4Address, 30, wifiNetwork); in testHandleIpConflict()
|