Home
last modified time | relevance | path

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

/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/
DInet4AddressUtilsTest.java21 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()
/frameworks/base/core/java/android/net/shared/
DInet4AddressUtils.java162 public static Inet4Address getPrefixMaskAsInet4Address(int prefixLength) in getPrefixMaskAsInet4Address() method in Inet4AddressUtils
/frameworks/libs/net/common/framework/com/android/net/module/util/
DInet4AddressUtils.java162 public static Inet4Address getPrefixMaskAsInet4Address(int prefixLength) in getPrefixMaskAsInet4Address() method in Inet4AddressUtils