Home
last modified time | relevance | path

Searched refs:routedIPv4AddressCount (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/tests/net/java/android/net/
DNetworkUtilsTest.java50 assertEquals(0, NetworkUtils.routedIPv4AddressCount(set)); in testRoutedIPv4AddressCount()
53 assertEquals(1l << 32, NetworkUtils.routedIPv4AddressCount(set)); in testRoutedIPv4AddressCount()
59 assertEquals(1l << 32, NetworkUtils.routedIPv4AddressCount(set)); in testRoutedIPv4AddressCount()
65 assertEquals(1l << 24, NetworkUtils.routedIPv4AddressCount(set)); in testRoutedIPv4AddressCount()
69 assertEquals((1l << 24) + (1 << 7), NetworkUtils.routedIPv4AddressCount(set)); in testRoutedIPv4AddressCount()
76 assertEquals(1l, NetworkUtils.routedIPv4AddressCount(set)); in testRoutedIPv4AddressCount()
85 assertEquals(7l, NetworkUtils.routedIPv4AddressCount(set)); in testRoutedIPv4AddressCount()
91 assertEquals(7l - 4 + 4 + 16 + 65536, NetworkUtils.routedIPv4AddressCount(set)); in testRoutedIPv4AddressCount()
/frameworks/base/core/java/android/net/
DNetworkUtils.java424 public static long routedIPv4AddressCount(final TreeSet<IpPrefix> prefixes) { in routedIPv4AddressCount() method in NetworkUtils