Home
last modified time | relevance | path

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

/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/
DInet4AddressUtilsTest.java28 import static com.android.net.module.util.Inet4AddressUtils.prefixLengthToV4NetmaskIntHTL;
91 assertEquals(0, prefixLengthToV4NetmaskIntHTL(0)); in testPrefixLengthToV4NetmaskIntHTL()
92 assertEquals(0x000080ff /* 255.128.0.0 */, prefixLengthToV4NetmaskIntHTL(9)); in testPrefixLengthToV4NetmaskIntHTL()
93 assertEquals(0x0080ffff /* 255.255.128.0 */, prefixLengthToV4NetmaskIntHTL(17)); in testPrefixLengthToV4NetmaskIntHTL()
94 assertEquals(0x00feffff /* 255.255.254.0 */, prefixLengthToV4NetmaskIntHTL(23)); in testPrefixLengthToV4NetmaskIntHTL()
95 assertEquals(0xfeffffff /* 255.255.255.254 */, prefixLengthToV4NetmaskIntHTL(31)); in testPrefixLengthToV4NetmaskIntHTL()
96 assertEquals(0xffffffff /* 255.255.255.255 */, prefixLengthToV4NetmaskIntHTL(32)); in testPrefixLengthToV4NetmaskIntHTL()
/frameworks/base/core/java/android/net/shared/
DInet4AddressUtils.java106 public static int prefixLengthToV4NetmaskIntHTL(int prefixLength) in prefixLengthToV4NetmaskIntHTL() method in Inet4AddressUtils
/frameworks/libs/net/common/framework/com/android/net/module/util/
DInet4AddressUtils.java106 public static int prefixLengthToV4NetmaskIntHTL(int prefixLength) in prefixLengthToV4NetmaskIntHTL() method in Inet4AddressUtils
/frameworks/base/core/java/android/net/
DNetworkUtils.java205 return Inet4AddressUtils.prefixLengthToV4NetmaskIntHTL(prefixLength); in prefixLengthToNetmaskInt()