Home
last modified time | relevance | path

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

/frameworks/base/tests/net/java/android/net/shared/
DInet4AddressUtilsTest.java27 import static android.net.shared.Inet4AddressUtils.prefixLengthToV4NetmaskIntHTH;
101 assertEquals(0, prefixLengthToV4NetmaskIntHTH(0)); in testPrefixLengthToV4NetmaskIntHTH()
102 assertEquals(0xff800000 /* 255.128.0.0 */, prefixLengthToV4NetmaskIntHTH(9)); in testPrefixLengthToV4NetmaskIntHTH()
103 assertEquals(0xffff8000 /* 255.255.128.0 */, prefixLengthToV4NetmaskIntHTH(17)); in testPrefixLengthToV4NetmaskIntHTH()
104 assertEquals(0xfffffe00 /* 255.255.254.0 */, prefixLengthToV4NetmaskIntHTH(23)); in testPrefixLengthToV4NetmaskIntHTH()
105 assertEquals(0xfffffffe /* 255.255.255.254 */, prefixLengthToV4NetmaskIntHTH(31)); in testPrefixLengthToV4NetmaskIntHTH()
106 assertEquals(0xffffffff /* 255.255.255.255 */, prefixLengthToV4NetmaskIntHTH(32)); in testPrefixLengthToV4NetmaskIntHTH()
111 prefixLengthToV4NetmaskIntHTH(-1); in testPrefixLengthToV4NetmaskIntHTH_NegativeLength()
116 prefixLengthToV4NetmaskIntHTH(33); in testPrefixLengthToV4NetmaskIntHTH_LengthTooLarge()
120 final int prefix = prefixLengthToV4NetmaskIntHTH(prefixLength); in checkAddressMasking()
/frameworks/base/core/java/android/net/shared/
DInet4AddressUtils.java90 public static int prefixLengthToV4NetmaskIntHTH(int prefixLength) in prefixLengthToV4NetmaskIntHTH() method in Inet4AddressUtils
108 return Integer.reverseBytes(prefixLengthToV4NetmaskIntHTH(prefixLength)); in prefixLengthToV4NetmaskIntHTL()
153 | ~prefixLengthToV4NetmaskIntHTH(prefixLength); in getBroadcastAddress()
164 return intToInet4AddressHTH(prefixLengthToV4NetmaskIntHTH(prefixLength)); in getPrefixMaskAsInet4Address()