Searched refs:getImplicitNetmask (Results 1 – 3 of 3) sorted by relevance
20 import static android.net.shared.Inet4AddressUtils.getImplicitNetmask;135 assertEquals(8, getImplicitNetmask(ipv4Address("4.2.2.2"))); in testGetImplicitNetmask()136 assertEquals(8, getImplicitNetmask(ipv4Address("10.5.6.7"))); in testGetImplicitNetmask()137 assertEquals(16, getImplicitNetmask(ipv4Address("173.194.72.105"))); in testGetImplicitNetmask()138 assertEquals(16, getImplicitNetmask(ipv4Address("172.23.68.145"))); in testGetImplicitNetmask()139 assertEquals(24, getImplicitNetmask(ipv4Address("192.0.2.1"))); in testGetImplicitNetmask()140 assertEquals(24, getImplicitNetmask(ipv4Address("192.168.5.1"))); in testGetImplicitNetmask()141 assertEquals(32, getImplicitNetmask(ipv4Address("224.0.0.1"))); in testGetImplicitNetmask()142 assertEquals(32, getImplicitNetmask(ipv4Address("255.6.7.8"))); in testGetImplicitNetmask()
132 public static int getImplicitNetmask(Inet4Address address) { in getImplicitNetmask() method in Inet4AddressUtils
293 public static int getImplicitNetmask(Inet4Address address) { in getImplicitNetmask() method in NetworkUtils295 return Inet4AddressUtils.getImplicitNetmask(address); in getImplicitNetmask()