Searched refs:getPrefixMaskAsInet4Address (Results 1 – 2 of 2) sorted by relevance
21 import static com.android.net.module.util.Inet4AddressUtils.getPrefixMaskAsInet4Address;169 assertEquals("255.255.240.0", getPrefixMaskAsInet4Address(20).getHostAddress()); in testGetPrefixMaskAsAddress()170 assertEquals("255.0.0.0", getPrefixMaskAsInet4Address(8).getHostAddress()); in testGetPrefixMaskAsAddress()171 assertEquals("0.0.0.0", getPrefixMaskAsInet4Address(0).getHostAddress()); in testGetPrefixMaskAsAddress()172 assertEquals("255.255.255.255", getPrefixMaskAsInet4Address(32).getHostAddress()); in testGetPrefixMaskAsAddress()199 getPrefixMaskAsInet4Address(33); in testGetPrefixMaskAsAddress_PrefixTooLarge()204 getPrefixMaskAsInet4Address(-1); in testGetPrefixMaskAsAddress_NegativePrefix()
162 public static Inet4Address getPrefixMaskAsInet4Address(int prefixLength) in getPrefixMaskAsInet4Address() method in Inet4AddressUtils