/packages/modules/NetworkStack/tests/unit/src/android/net/apf/ |
D | ApfTestUtils.java | 60 public static final int PASS = 1; field in ApfTestUtils 71 case PASS: in label() 121 assertVerdict(apfVersion, PASS, program, packet, filterAge); in assertPass() 128 assertVerdict(apfVersion, PASS, program, packet); in assertPass() 214 assertVerdict(apfVersion, PASS, gen, packet, filterAge); in assertPass() 230 assertVerdict(apfVersion, PASS, gen, new byte[MIN_PKT_SIZE], 0); in assertPass()
|
D | ApfNewTest.kt | 45 import android.net.apf.ApfTestUtils.PASS 1014 assertVerdict(APF_VERSION_6, PASS, program, testPacket, dataRegion) in doTestLoadStoreCounter() 1443 assertVerdict(APF_VERSION_6, PASS, program, testPacket, dataRegion) in testV2CountAndPassDrop() 1596 verifyProgramRun(APF_VERSION_6, program, badUdpPayload, CORRUPT_DNS_PACKET, result = PASS) in testDnsQuestionMatch() 1689 verifyProgramRun(APF_VERSION_6, program, badUdpPayload, CORRUPT_DNS_PACKET, result = PASS) in testDnsAnswerMatch() 1780 assertVerdict(APF_VERSION_6, PASS, program, testPacket, dataRegion) in testDebugBuffer() 2314 result: Int = if (targetCnt.name.startsWith("PASSED")) PASS else DROP
|
D | ApfTest.java | 31 import static android.net.apf.ApfTestUtils.PASS; 872 assertDataMemoryContents(PASS, gen.generate(), packet, data, expected_data); in testApfDataWrite() 884 assertDataMemoryContents(PASS, gen.generate(), packet, data, expected_data); in testApfDataWrite() 907 assertDataMemoryContents(PASS, program, packet, data, expected_data); in testApfDataRead() 939 assertDataMemoryContents(PASS, gen.generate(), packet, data, expected_data); in testApfDataReadModifyWrite() 967 assertDataMemoryContents(PASS, gen.generate(), packet, data, expected_data); in testApfDataBoundChecking() 988 assertDataMemoryContents(PASS, gen.generate(), packet, data, expected_data); in testApfDataBoundChecking() 1609 PASS, programWithNotEnoughOverhead, pkt, 0); in doTestDnsParsingNecessaryOverhead() 1967 verifyArpFilter(ipClientCallback.assertProgramUpdateAndGet(), PASS); in testApfFilterArp() local 1976 verifyArpFilter(getProgram(ipClientCallback, apfFilter, new LinkProperties()), PASS); in testApfFilterArp() local [all …]
|
D | LegacyApfTest.java | 21 import static android.net.apf.ApfTestUtils.PASS; 897 verifyArpFilter(ipClientCallback.assertProgramUpdateAndGet(), PASS); in testApfFilterArp() local 906 verifyArpFilter(getProgram(ipClientCallback, apfFilter, new LinkProperties()), PASS); in testApfFilterArp() local 1850 assertDataMemoryContentsIgnoreVersion(PASS, program, ra, data, expectedData); in testApfSessionInfoMetrics_LegacyApfFilter()
|
/packages/modules/Connectivity/bpf_progs/ |
D | netd.c | 38 static const int PASS = 1; variable 412 if (is_system_uid(uid)) return PASS; in bpf_owner_match() 414 if (skip_owner_match(skb, egress, kver)) return PASS; in bpf_owner_match() 441 return PASS; in bpf_owner_match() 486 if (egress.egress && uid == AID_CLAT) return PASS; in bpf_traffic_account() 496 if (match == DROP_UNLESS_DNS) match = PASS; in bpf_traffic_account() 512 if (!selectedMap) return PASS; // cannot happen, needed to keep bpf verifier happy in bpf_traffic_account()
|