Home
last modified time | relevance | path

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

/frameworks/base/tests/net/java/android/net/shared/
DInet4AddressUtilsTest.java21 import static android.net.shared.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()
/frameworks/base/core/java/android/net/shared/
DInet4AddressUtils.java162 public static Inet4Address getPrefixMaskAsInet4Address(int prefixLength) in getPrefixMaskAsInet4Address() method in Inet4AddressUtils