Home
last modified time | relevance | path

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

/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DInet4AddressUtilsTest.java28 import static com.android.net.module.util.Inet4AddressUtils.prefixLengthToV4NetmaskIntHTL;
93 assertEquals(0, prefixLengthToV4NetmaskIntHTL(0)); in testPrefixLengthToV4NetmaskIntHTL()
94 assertEquals(0x000080ff /* 255.128.0.0 */, prefixLengthToV4NetmaskIntHTL(9)); in testPrefixLengthToV4NetmaskIntHTL()
95 assertEquals(0x0080ffff /* 255.255.128.0 */, prefixLengthToV4NetmaskIntHTL(17)); in testPrefixLengthToV4NetmaskIntHTL()
96 assertEquals(0x00feffff /* 255.255.254.0 */, prefixLengthToV4NetmaskIntHTL(23)); in testPrefixLengthToV4NetmaskIntHTL()
97 assertEquals(0xfeffffff /* 255.255.255.254 */, prefixLengthToV4NetmaskIntHTL(31)); in testPrefixLengthToV4NetmaskIntHTL()
98 assertEquals(0xffffffff /* 255.255.255.255 */, prefixLengthToV4NetmaskIntHTL(32)); in testPrefixLengthToV4NetmaskIntHTL()
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DInet4AddressUtils.java106 public static int prefixLengthToV4NetmaskIntHTL(int prefixLength) in prefixLengthToV4NetmaskIntHTL() method in Inet4AddressUtils
/packages/modules/Connectivity/framework/src/android/net/
DNetworkUtils.java208 return Inet4AddressUtils.prefixLengthToV4NetmaskIntHTL(prefixLength); in prefixLengthToNetmaskInt()