Home
last modified time | relevance | path

Searched refs:ipv4BroadcastAddress (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/tests/net/java/android/net/apf/
DApfTest.java1248 assertEqualsIp("255.255.255.255", ApfFilter.ipv4BroadcastAddress(IPV4_ANY_HOST_ADDR, 0)); in testBroadcastAddress()
1249 assertEqualsIp("0.0.0.0", ApfFilter.ipv4BroadcastAddress(IPV4_ANY_HOST_ADDR, 32)); in testBroadcastAddress()
1250 assertEqualsIp("0.0.3.255", ApfFilter.ipv4BroadcastAddress(IPV4_ANY_HOST_ADDR, 22)); in testBroadcastAddress()
1251 assertEqualsIp("0.255.255.255", ApfFilter.ipv4BroadcastAddress(IPV4_ANY_HOST_ADDR, 8)); in testBroadcastAddress()
1253 assertEqualsIp("255.255.255.255", ApfFilter.ipv4BroadcastAddress(MOCK_IPV4_ADDR, 0)); in testBroadcastAddress()
1254 assertEqualsIp("10.0.0.1", ApfFilter.ipv4BroadcastAddress(MOCK_IPV4_ADDR, 32)); in testBroadcastAddress()
1255 assertEqualsIp("10.0.0.255", ApfFilter.ipv4BroadcastAddress(MOCK_IPV4_ADDR, 24)); in testBroadcastAddress()
1256 assertEqualsIp("10.0.255.255", ApfFilter.ipv4BroadcastAddress(MOCK_IPV4_ADDR, 16)); in testBroadcastAddress()
/frameworks/base/services/net/java/android/net/apf/
DApfFilter.java788 int broadcastAddr = ipv4BroadcastAddress(mIPv4Address, mIPv4PrefixLength); in generateIPv4FilterLocked()
1214 public static int ipv4BroadcastAddress(byte[] addrBytes, int prefixLength) { in ipv4BroadcastAddress() method in ApfFilter