Home
last modified time | relevance | path

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

/frameworks/base/services/net/java/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.java35 import android.net.apf.ApfGenerator.IllegalInstructionException;
36 import android.net.apf.ApfGenerator.Register;
159 private void maybeSetCounter(ApfGenerator gen, Counter c) { in maybeSetCounter()
363 mCountAndPassLabel = ApfGenerator.PASS_LABEL; in ApfFilter()
364 mCountAndDropLabel = ApfGenerator.DROP_LABEL; in ApfFilter()
774 long generateFilterLocked(ApfGenerator gen) throws IllegalInstructionException { in generateFilterLocked()
879 private void generateArpFilterLocked(ApfGenerator gen) throws IllegalInstructionException { in generateArpFilterLocked()
940 private void generateIPv4FilterLocked(ApfGenerator gen) throws IllegalInstructionException { in generateIPv4FilterLocked()
1017 private void generateIPv6FilterLocked(ApfGenerator gen) throws IllegalInstructionException { in generateIPv6FilterLocked()
1105 private ApfGenerator emitPrologueLocked() throws IllegalInstructionException { in emitPrologueLocked()
[all …]
/frameworks/base/tests/net/java/android/net/apf/
DApfTest.java34 import android.net.apf.ApfGenerator.IllegalInstructionException;
35 import android.net.apf.ApfGenerator.Register;
176 private void assertVerdict(int expected, ApfGenerator gen, byte[] packet, int filterAge) in assertVerdict()
182 private void assertPass(ApfGenerator gen, byte[] packet, int filterAge) in assertPass()
187 private void assertDrop(ApfGenerator gen, byte[] packet, int filterAge) in assertDrop()
192 private void assertPass(ApfGenerator gen) in assertPass()
197 private void assertDrop(ApfGenerator gen) in assertDrop()
212 ApfGenerator gen = new ApfGenerator(MIN_APF_VERSION); in testApfInstructions()
216 gen = new ApfGenerator(MIN_APF_VERSION); in testApfInstructions()
224 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()