Searched refs:ipv4BroadcastAddress (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/tests/net/java/android/net/apf/ |
D | ApfTest.java | 1661 assertEqualsIp("255.255.255.255", ApfFilter.ipv4BroadcastAddress(IPV4_ANY_HOST_ADDR, 0)); in testBroadcastAddress() 1662 assertEqualsIp("0.0.0.0", ApfFilter.ipv4BroadcastAddress(IPV4_ANY_HOST_ADDR, 32)); in testBroadcastAddress() 1663 assertEqualsIp("0.0.3.255", ApfFilter.ipv4BroadcastAddress(IPV4_ANY_HOST_ADDR, 22)); in testBroadcastAddress() 1664 assertEqualsIp("0.255.255.255", ApfFilter.ipv4BroadcastAddress(IPV4_ANY_HOST_ADDR, 8)); in testBroadcastAddress() 1666 assertEqualsIp("255.255.255.255", ApfFilter.ipv4BroadcastAddress(MOCK_IPV4_ADDR, 0)); in testBroadcastAddress() 1667 assertEqualsIp("10.0.0.1", ApfFilter.ipv4BroadcastAddress(MOCK_IPV4_ADDR, 32)); in testBroadcastAddress() 1668 assertEqualsIp("10.0.0.255", ApfFilter.ipv4BroadcastAddress(MOCK_IPV4_ADDR, 24)); in testBroadcastAddress() 1669 assertEqualsIp("10.0.255.255", ApfFilter.ipv4BroadcastAddress(MOCK_IPV4_ADDR, 16)); in testBroadcastAddress()
|
/frameworks/base/services/net/java/android/net/apf/ |
D | ApfFilter.java | 991 int broadcastAddr = ipv4BroadcastAddress(mIPv4Address, mIPv4PrefixLength); in generateIPv4FilterLocked() 1548 public static int ipv4BroadcastAddress(byte[] addrBytes, int prefixLength) { in ipv4BroadcastAddress() method in ApfFilter
|