Home
last modified time | relevance | path

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

/packages/modules/NetworkStack/tests/unit/src/android/net/apf/
DApfTest.java2310 assertEqualsIp("255.255.255.255", ApfFilter.ipv4BroadcastAddress(IPV4_ANY_HOST_ADDR, 0)); in testBroadcastAddress()
2311 assertEqualsIp("0.0.0.0", ApfFilter.ipv4BroadcastAddress(IPV4_ANY_HOST_ADDR, 32)); in testBroadcastAddress()
2312 assertEqualsIp("0.0.3.255", ApfFilter.ipv4BroadcastAddress(IPV4_ANY_HOST_ADDR, 22)); in testBroadcastAddress()
2313 assertEqualsIp("0.255.255.255", ApfFilter.ipv4BroadcastAddress(IPV4_ANY_HOST_ADDR, 8)); in testBroadcastAddress()
2315 assertEqualsIp("255.255.255.255", ApfFilter.ipv4BroadcastAddress(MOCK_IPV4_ADDR, 0)); in testBroadcastAddress()
2316 assertEqualsIp("10.0.0.1", ApfFilter.ipv4BroadcastAddress(MOCK_IPV4_ADDR, 32)); in testBroadcastAddress()
2317 assertEqualsIp("10.0.0.255", ApfFilter.ipv4BroadcastAddress(MOCK_IPV4_ADDR, 24)); in testBroadcastAddress()
2318 assertEqualsIp("10.0.255.255", ApfFilter.ipv4BroadcastAddress(MOCK_IPV4_ADDR, 16)); in testBroadcastAddress()
/packages/modules/NetworkStack/src/android/net/apf/
DApfFilter.java1337 int broadcastAddr = ipv4BroadcastAddress(mIPv4Address, mIPv4PrefixLength); in generateIPv4FilterLocked()
2033 public static int ipv4BroadcastAddress(byte[] addrBytes, int prefixLength) { in ipv4BroadcastAddress() method in ApfFilter