Home
last modified time | relevance | path

Searched refs:ApfGenerator (Results 1 – 4 of 4) sorted by relevance

/packages/modules/NetworkStack/src/android/net/apf/
DApfGenerator.java30 public class ApfGenerator { class
375 ApfGenerator(int version) throws IllegalInstructionException { in ApfGenerator() method in ApfGenerator
415 public ApfGenerator defineLabel(String name) throws IllegalInstructionException { in defineLabel()
425 public ApfGenerator addJump(String target) { in addJump()
436 public ApfGenerator addLoad8(Register register, int offset) { in addLoad8()
447 public ApfGenerator addLoad16(Register register, int offset) { in addLoad16()
458 public ApfGenerator addLoad32(Register register, int offset) { in addLoad32()
470 public ApfGenerator addLoad8Indexed(Register register, int offset) { in addLoad8Indexed()
482 public ApfGenerator addLoad16Indexed(Register register, int offset) { in addLoad16Indexed()
494 public ApfGenerator addLoad32Indexed(Register register, int offset) { in addLoad32Indexed()
[all …]
DApfFilter.java44 import android.net.apf.ApfGenerator.IllegalInstructionException;
45 import android.net.apf.ApfGenerator.Register;
178 private void maybeSetupCounter(ApfGenerator gen, Counter c) { in maybeSetupCounter()
404 mCountAndPassLabel = ApfGenerator.PASS_LABEL; in ApfFilter()
405 mCountAndDropLabel = ApfGenerator.DROP_LABEL; in ApfFilter()
905 long generateFilterLocked(ApfGenerator gen) throws IllegalInstructionException { in generateFilterLocked()
954 abstract void generateFilterLocked(ApfGenerator gen) throws IllegalInstructionException; in generateFilterLocked()
997 void generateFilterLocked(ApfGenerator gen) throws IllegalInstructionException { in generateFilterLocked()
1099 abstract void generateFilterLocked(ApfGenerator gen) throws IllegalInstructionException; in generateFilterLocked()
1112 void generateFilterLocked(ApfGenerator gen) throws IllegalInstructionException { in generateFilterLocked()
[all …]
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/
DApfTest.java48 import android.net.apf.ApfGenerator.IllegalInstructionException;
49 import android.net.apf.ApfGenerator.Register;
218 private void assertVerdict(int expected, ApfGenerator gen, byte[] packet, int filterAge) in assertVerdict()
224 private void assertPass(ApfGenerator gen, byte[] packet, int filterAge) in assertPass()
229 private void assertDrop(ApfGenerator gen, byte[] packet, int filterAge) in assertDrop()
234 private void assertPass(ApfGenerator gen) in assertPass()
239 private void assertDrop(ApfGenerator gen) in assertDrop()
254 ApfGenerator gen = new ApfGenerator(MIN_APF_VERSION); in testApfInstructions()
258 gen = new ApfGenerator(MIN_APF_VERSION); in testApfInstructions()
266 gen = new ApfGenerator(MIN_APF_VERSION); in testApfInstructions()
[all …]
DBpf2Apf.java19 import android.net.apf.ApfGenerator;
20 import android.net.apf.ApfGenerator.IllegalInstructionException;
21 import android.net.apf.ApfGenerator.Register;
55 private static void convertLine(String line, ApfGenerator gen) in convertLine()
310 ApfGenerator gen = new ApfGenerator(3); in convert()
323 ApfGenerator gen = new ApfGenerator(3); in main()