Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/net/
DNetworkUtilsTest.java51 NetworkUtils.netmaskToPrefixLength(addr); in assertInvalidNetworkMask()
59 assertEquals(0, NetworkUtils.netmaskToPrefixLength(IPv4Address("0.0.0.0"))); in testNetmaskToPrefixLength()
60 assertEquals(9, NetworkUtils.netmaskToPrefixLength(IPv4Address("255.128.0.0"))); in testNetmaskToPrefixLength()
61 assertEquals(17, NetworkUtils.netmaskToPrefixLength(IPv4Address("255.255.128.0"))); in testNetmaskToPrefixLength()
62 assertEquals(23, NetworkUtils.netmaskToPrefixLength(IPv4Address("255.255.254.0"))); in testNetmaskToPrefixLength()
63 assertEquals(31, NetworkUtils.netmaskToPrefixLength(IPv4Address("255.255.255.254"))); in testNetmaskToPrefixLength()
64 assertEquals(32, NetworkUtils.netmaskToPrefixLength(IPv4Address("255.255.255.255"))); in testNetmaskToPrefixLength()
/frameworks/base/core/java/android/net/
DNetworkUtils.java186 public static int netmaskToPrefixLength(Inet4Address netmask) { in netmaskToPrefixLength() method in NetworkUtils
/frameworks/base/services/net/java/android/net/dhcp/
DDhcpPacket.java1126 prefixLength = NetworkUtils.netmaskToPrefixLength(mSubnetMask); in toDhcpResults()
/frameworks/base/config/
Dboot-image-profile.txt4606 HPLandroid/net/NetworkUtils;->netmaskToPrefixLength(Ljava/net/Inet4Address;)I