/packages/modules/NetworkStack/src/android/net/apf/ |
D | ApfV4Generator.java | 34 public final class ApfV4Generator extends ApfV4GeneratorBase<ApfV4Generator> { class 64 public ApfV4Generator(int version, boolean disableCounterRangeCheck) in ApfV4Generator() method in ApfV4Generator 77 public ApfV4Generator(int version) throws IllegalInstructionException { in ApfV4Generator() method in ApfV4Generator 95 public ApfV4Generator addCountAndPass(ApfCounterTracker.Counter counter) { in addCountAndPass() 109 public ApfV4Generator addCountAndDrop(ApfCounterTracker.Counter counter) { in addCountAndDrop() 115 public ApfV4Generator addCountAndDropIfR0Equals(long val, ApfCounterTracker.Counter cnt) { in addCountAndDropIfR0Equals() 121 public ApfV4Generator addCountAndPassIfR0Equals(long val, ApfCounterTracker.Counter cnt) { in addCountAndPassIfR0Equals() 127 public ApfV4Generator addCountAndDropIfR0NotEquals(long val, ApfCounterTracker.Counter cnt) { in addCountAndDropIfR0NotEquals() 133 public ApfV4Generator addCountAndPassIfR0NotEquals(long val, ApfCounterTracker.Counter cnt) { in addCountAndPassIfR0NotEquals() 139 public ApfV4Generator addCountAndDropIfR0AnyBitsSet(long val, ApfCounterTracker.Counter cnt) { in addCountAndDropIfR0AnyBitsSet() [all …]
|
D | DnsUtils.java | 86 private static void genParseDnsLabel(ApfV4Generator gen, JumpTable jumpTable) throws Exception { in genParseDnsLabel() 105 gen.addJumpIfR0GreaterThanR1(ApfV4Generator.DROP_LABEL); in genParseDnsLabel() 151 gen.addJumpIfR0EqualsR1(ApfV4Generator.DROP_LABEL); in genParseDnsLabel() 152 gen.addJumpIfR0GreaterThanR1(ApfV4Generator.DROP_LABEL); in genParseDnsLabel() 196 private static void genFindNextDnsQuestion(ApfV4Generator gen, JumpTable jumpTable) in genFindNextDnsQuestion() 261 gen.addJumpIfR0Equals(0, ApfV4Generator.DROP_LABEL); in genFindNextDnsQuestion() 282 private static void addMatchLabel(@NonNull ApfV4Generator gen, @NonNull JumpTable jumpTable, in addMatchLabel() 350 public static void generateFilter(ApfV4Generator gen, String[] labels) throws Exception { in generateFilter() 405 ? ApfV4Generator.PASS_LABEL in generateFilter() 409 gen.addJump(ApfV4Generator.DROP_LABEL); in generateFilter()
|
D | JumpTable.java | 127 public void generate(@NonNull ApfV4Generator gen) in generate() 128 throws ApfV4Generator.IllegalInstructionException { in generate() 136 gen.addJump(ApfV4Generator.PASS_LABEL); in generate()
|
D | LegacyApfFilter.java | 128 private void maybeSetupCounter(ApfV4Generator gen, Counter c) { in maybeSetupCounter() 417 mCountAndPassLabel = ApfV4Generator.PASS_LABEL; in LegacyApfFilter() 418 mCountAndDropLabel = ApfV4Generator.DROP_LABEL; in LegacyApfFilter() 986 long generateFilterLocked(ApfV4Generator gen) throws IllegalInstructionException { in generateFilterLocked() 1034 abstract void generateFilterLocked(ApfV4Generator gen) throws IllegalInstructionException; in generateFilterLocked() 1078 void generateFilterLocked(ApfV4Generator gen) throws IllegalInstructionException { in generateFilterLocked() 1180 abstract void generateFilterLocked(ApfV4Generator gen) throws IllegalInstructionException; in generateFilterLocked() 1194 void generateFilterLocked(ApfV4Generator gen) throws IllegalInstructionException { in generateFilterLocked() 1237 void generateFilterLocked(ApfV4Generator gen) throws IllegalInstructionException { in generateFilterLocked() 1310 private void generateArpFilterLocked(ApfV4Generator gen) throws IllegalInstructionException { in generateArpFilterLocked() [all …]
|
D | ApfFilter.java | 2212 gen = new ApfV4Generator(mApfCapabilities.apfVersionSupported); in emitPrologueLocked() 2216 if (gen instanceof ApfV4Generator) { in emitPrologueLocked() 2522 if (!ApfV4Generator.supportsVersion(apfCapabilities.apfVersionSupported)) { in maybeCreate()
|
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/ |
D | ApfTest.java | 274 private void assertPass(ApfV4Generator gen) throws ApfV4Generator.IllegalInstructionException { in assertPass() 278 private void assertDrop(ApfV4Generator gen) throws ApfV4Generator.IllegalInstructionException { in assertDrop() 298 private void assertPass(ApfV4Generator gen, byte[] packet, int filterAge) in assertPass() 299 throws ApfV4Generator.IllegalInstructionException { in assertPass() 303 private void assertDrop(ApfV4Generator gen, byte[] packet, int filterAge) in assertDrop() 304 throws ApfV4Generator.IllegalInstructionException { in assertDrop() 339 ApfV4Generator gen = new ApfV4Generator(APF_VERSION_2); in testApfInstructions() 343 gen = new ApfV4Generator(APF_VERSION_2); in testApfInstructions() 349 gen = new ApfV4Generator(APF_VERSION_2); in testApfInstructions() 357 gen = new ApfV4Generator(APF_VERSION_2); in testApfInstructions() [all …]
|
D | ApfNewTest.kt | 210 ApfV4Generator.DROP_LABEL in testApfInstructionEncodingSizeCheck() 215 ApfV4Generator.DROP_LABEL in testApfInstructionEncodingSizeCheck() 220 ApfV4Generator.DROP_LABEL in testApfInstructionEncodingSizeCheck() 225 ApfV4Generator.DROP_LABEL in testApfInstructionEncodingSizeCheck() 230 ApfV4Generator.DROP_LABEL in testApfInstructionEncodingSizeCheck() 235 ApfV4Generator.DROP_LABEL in testApfInstructionEncodingSizeCheck() 240 ApfV4Generator.DROP_LABEL in testApfInstructionEncodingSizeCheck() 245 ApfV4Generator.DROP_LABEL in testApfInstructionEncodingSizeCheck() 250 ApfV4Generator.DROP_LABEL in testApfInstructionEncodingSizeCheck() 255 ApfV4Generator.DROP_LABEL in testApfInstructionEncodingSizeCheck() [all …]
|
D | ApfTestUtils.java | 161 throws ApfV4Generator.IllegalInstructionException, Exception { in assertDataMemoryContents() 191 private static void assertVerdict(int apfVersion, int expected, ApfV4Generator gen, in assertVerdict() 192 byte[] packet, int filterAge) throws ApfV4Generator.IllegalInstructionException { in assertVerdict() 212 public static void assertPass(int apfVersion, ApfV4Generator gen, byte[] packet, int filterAge) in assertPass() 213 throws ApfV4Generator.IllegalInstructionException { in assertPass() 220 public static void assertDrop(int apfVersion, ApfV4Generator gen, byte[] packet, int filterAge) in assertDrop() 221 throws ApfV4Generator.IllegalInstructionException { in assertDrop() 228 public static void assertPass(int apfVersion, ApfV4Generator gen) in assertPass() 229 throws ApfV4Generator.IllegalInstructionException { in assertPass() 236 public static void assertDrop(int apfVersion, ApfV4Generator gen) in assertDrop() [all …]
|
D | Bpf2Apf.java | 77 private static void convertLine(String line, ApfV4Generator gen) in convertLine() 319 ApfV4Generator gen = new ApfV4Generator(3); in convert() 332 ApfV4Generator gen = new ApfV4Generator(3); in main()
|
D | JumpTableTest.kt | 39 lateinit var gen: ApfV4Generator 98 inOrder.verify(gen).addJump(ApfV4Generator.PASS_LABEL) in testCodeGeneration()
|
D | ApfStandaloneTest.kt | 251 val gen = ApfV4Generator(APF_VERSION_4) in generateApfV4Program() 377 private fun maybeSetupCounter(gen: ApfV4Generator, c: Counter) { in maybeSetupCounter()
|
D | LegacyApfTest.java | 250 private void assertPass(ApfV4Generator gen) throws ApfV4Generator.IllegalInstructionException { in assertPass() 254 private void assertDrop(ApfV4Generator gen) throws ApfV4Generator.IllegalInstructionException { in assertDrop() 274 private void assertPass(ApfV4Generator gen, byte[] packet, int filterAge) in assertPass() 275 throws ApfV4Generator.IllegalInstructionException { in assertPass() 279 private void assertDrop(ApfV4Generator gen, byte[] packet, int filterAge) in assertDrop() 280 throws ApfV4Generator.IllegalInstructionException { in assertDrop()
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | ApfIntegrationTest.kt | 32 import android.net.apf.ApfV4Generator 397 fun ApfV4Generator.addPassIfNotIcmpv6EchoReply() { in addPassIfNotIcmpv6EchoReply() method 437 val gen = ApfV4Generator(4) in testDropPingReply() 471 val gen = ApfV4Generator(4) in clearApfMemory() 526 val gen = ApfV4Generator(4) in testFilterAgeIncreasesBetweenPackets()
|
/packages/modules/NetworkStack/ |
D | Android.bp | 419 "src/android/net/apf/ApfV4Generator.java",
|