Searched refs:MOCK_IPV4_ADDR (Results 1 – 1 of 1) sorted by relevance
/frameworks/base/tests/net/java/android/net/apf/ |
D | ApfTest.java | 730 private static final byte[] MOCK_IPV4_ADDR = {10, 0, 0, 1}; field in ApfTest 739 LinkAddress link = new LinkAddress(InetAddress.getByAddress(MOCK_IPV4_ADDR), 19); in testApfFilterIPv4() 755 put(packet, IPV4_DEST_ADDR_OFFSET, MOCK_IPV4_ADDR); in testApfFilterIPv4() 920 assertPass(program, arpRequestBroadcast(MOCK_IPV4_ADDR)); in verifyArpFilter() 925 assertPass(program, arpReplyUnicast(MOCK_IPV4_ADDR)); in verifyArpFilter() 942 LinkAddress linkAddress = new LinkAddress(InetAddress.getByAddress(MOCK_IPV4_ADDR), 24); in testApfFilterArp() 1241 assertEquals(0x0a000001, ApfFilter.bytesToInt(MOCK_IPV4_ADDR)); in testBytesToInt() 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() [all …]
|