Home
last modified time | relevance | path

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

/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DInet4AddressUtilsTest.java27 import static com.android.net.module.util.Inet4AddressUtils.prefixLengthToV4NetmaskIntHTH;
103 assertEquals(0, prefixLengthToV4NetmaskIntHTH(0)); in testPrefixLengthToV4NetmaskIntHTH()
104 assertEquals(0xff800000 /* 255.128.0.0 */, prefixLengthToV4NetmaskIntHTH(9)); in testPrefixLengthToV4NetmaskIntHTH()
105 assertEquals(0xffff8000 /* 255.255.128.0 */, prefixLengthToV4NetmaskIntHTH(17)); in testPrefixLengthToV4NetmaskIntHTH()
106 assertEquals(0xfffffe00 /* 255.255.254.0 */, prefixLengthToV4NetmaskIntHTH(23)); in testPrefixLengthToV4NetmaskIntHTH()
107 assertEquals(0xfffffffe /* 255.255.255.254 */, prefixLengthToV4NetmaskIntHTH(31)); in testPrefixLengthToV4NetmaskIntHTH()
108 assertEquals(0xffffffff /* 255.255.255.255 */, prefixLengthToV4NetmaskIntHTH(32)); in testPrefixLengthToV4NetmaskIntHTH()
113 prefixLengthToV4NetmaskIntHTH(-1); in testPrefixLengthToV4NetmaskIntHTH_NegativeLength()
118 prefixLengthToV4NetmaskIntHTH(33); in testPrefixLengthToV4NetmaskIntHTH_LengthTooLarge()
122 final int prefix = prefixLengthToV4NetmaskIntHTH(prefixLength); in checkAddressMasking()
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
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()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DPrivateAddressCoordinator.java26 import static com.android.net.module.util.Inet4AddressUtils.prefixLengthToV4NetmaskIntHTH;
252 final int suffixMask = ~prefixLengthToV4NetmaskIntHTH(conflictPrefix.getPrefixLength()); in getNextSubPrefix()
258 final int prefixMask = prefixLengthToV4NetmaskIntHTH(PREFIX_LENGTH); in getNextSubPrefix()
268 final int prefixRangeMask = prefixLengthToV4NetmaskIntHTH(prefixRange.getPrefixLength()); in chooseDownstreamAddress()
274 final int prefixMask = prefixLengthToV4NetmaskIntHTH(PREFIX_LENGTH); in chooseDownstreamAddress()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpLeaseRepository.java24 import static com.android.net.module.util.Inet4AddressUtils.prefixLengthToV4NetmaskIntHTH;
150 mLeasesSubnetMask = prefixLengthToV4NetmaskIntHTH(subnetPrefixLength); in updateParams()