Searched refs:getBroadcastAddress (Results 1 – 2 of 2) sorted by relevance
19 import static android.net.shared.Inet4AddressUtils.getBroadcastAddress;178 getBroadcastAddress(ipv4Address("192.168.0.123"), 20).getHostAddress()); in testGetBroadcastAddress()180 getBroadcastAddress(ipv4Address("192.168.0.123"), 8).getHostAddress()); in testGetBroadcastAddress()182 getBroadcastAddress(ipv4Address("192.168.0.123"), 32).getHostAddress()); in testGetBroadcastAddress()184 getBroadcastAddress(ipv4Address("192.168.0.123"), 0).getHostAddress()); in testGetBroadcastAddress()189 getBroadcastAddress(ipv4Address("192.168.0.123"), 33); in testGetBroadcastAddress_PrefixTooLarge()194 getBroadcastAddress(ipv4Address("192.168.0.123"), -1); in testGetBroadcastAddress_NegativePrefix()
150 public static Inet4Address getBroadcastAddress(Inet4Address addr, int prefixLength) in getBroadcastAddress() method in Inet4AddressUtils