Home
last modified time | relevance | path

Searched refs:getImplicitNetmask (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/net/
DNetworkUtilsTest.java39 assertEquals(8, NetworkUtils.getImplicitNetmask(IPv4Address("4.2.2.2"))); in testGetImplicitNetmask()
40 assertEquals(8, NetworkUtils.getImplicitNetmask(IPv4Address("10.5.6.7"))); in testGetImplicitNetmask()
41 assertEquals(16, NetworkUtils.getImplicitNetmask(IPv4Address("173.194.72.105"))); in testGetImplicitNetmask()
42 assertEquals(16, NetworkUtils.getImplicitNetmask(IPv4Address("172.23.68.145"))); in testGetImplicitNetmask()
43 assertEquals(24, NetworkUtils.getImplicitNetmask(IPv4Address("192.0.2.1"))); in testGetImplicitNetmask()
44 assertEquals(24, NetworkUtils.getImplicitNetmask(IPv4Address("192.168.5.1"))); in testGetImplicitNetmask()
45 assertEquals(32, NetworkUtils.getImplicitNetmask(IPv4Address("224.0.0.1"))); in testGetImplicitNetmask()
46 assertEquals(32, NetworkUtils.getImplicitNetmask(IPv4Address("255.6.7.8"))); in testGetImplicitNetmask()
/frameworks/base/core/java/android/net/
DNetworkUtils.java261 public static int getImplicitNetmask(Inet4Address address) { in getImplicitNetmask() method in NetworkUtils
/frameworks/base/services/net/java/android/net/dhcp/
DDhcpPacket.java1117 prefixLength = NetworkUtils.getImplicitNetmask(ipAddress); in toDhcpResults()