Searched refs:prefixLengthToV4NetmaskIntHTL (Results 1 – 4 of 4) sorted by relevance
28 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()
106 public static int prefixLengthToV4NetmaskIntHTL(int prefixLength) in prefixLengthToV4NetmaskIntHTL() method in Inet4AddressUtils
205 return Inet4AddressUtils.prefixLengthToV4NetmaskIntHTL(prefixLength); in prefixLengthToNetmaskInt()