Searched refs:netmaskToPrefixLength (Results 1 – 4 of 4) sorted by relevance
51 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()
186 public static int netmaskToPrefixLength(Inet4Address netmask) { in netmaskToPrefixLength() method in NetworkUtils
1126 prefixLength = NetworkUtils.netmaskToPrefixLength(mSubnetMask); in toDhcpResults()
4606 HPLandroid/net/NetworkUtils;->netmaskToPrefixLength(Ljava/net/Inet4Address;)I