Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/android/net/apf/
DApfTest.java25 import android.net.apf.ApfGenerator;
26 import android.net.apf.ApfGenerator.IllegalInstructionException;
27 import android.net.apf.ApfGenerator.Register;
85 private void assertVerdict(int expected, ApfGenerator gen, byte[] packet, int filterAge) in assertVerdict()
90 private void assertPass(ApfGenerator gen, byte[] packet, int filterAge) in assertPass()
95 private void assertDrop(ApfGenerator gen, byte[] packet, int filterAge) in assertDrop()
100 private void assertPass(ApfGenerator gen) in assertPass()
105 private void assertDrop(ApfGenerator gen) in assertDrop()
120 ApfGenerator gen = new ApfGenerator(); in testApfInstructions()
124 gen = new ApfGenerator(); 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(); in convert()
323 ApfGenerator gen = new ApfGenerator(); in main()
/frameworks/base/services/net/java/android/net/apf/
DApfGenerator.java30 public class ApfGenerator { class
395 public ApfGenerator defineLabel(String name) throws IllegalInstructionException { in defineLabel()
405 public ApfGenerator addJump(String target) { in addJump()
416 public ApfGenerator addLoad8(Register register, int offset) { in addLoad8()
427 public ApfGenerator addLoad16(Register register, int offset) { in addLoad16()
438 public ApfGenerator addLoad32(Register register, int offset) { in addLoad32()
450 public ApfGenerator addLoad8Indexed(Register register, int offset) { in addLoad8Indexed()
462 public ApfGenerator addLoad16Indexed(Register register, int offset) { in addLoad16Indexed()
474 public ApfGenerator addLoad32Indexed(Register register, int offset) { in addLoad32Indexed()
484 public ApfGenerator addAdd(int value) { in addAdd()
[all …]
DApfFilter.java23 import android.net.apf.ApfGenerator;
24 import android.net.apf.ApfGenerator.IllegalInstructionException;
25 import android.net.apf.ApfGenerator.Register;
488 long generateFilterLocked(ApfGenerator gen) throws IllegalInstructionException { in generateFilterLocked()
572 private void generateArpFilterLocked(ApfGenerator gen) throws IllegalInstructionException { in generateArpFilterLocked()
602 private void generateIPv4FilterLocked(ApfGenerator gen) throws IllegalInstructionException { in generateIPv4FilterLocked()
653 private void generateIPv6FilterLocked(ApfGenerator gen) throws IllegalInstructionException { in generateIPv6FilterLocked()
712 private ApfGenerator beginProgramLocked() throws IllegalInstructionException { in beginProgramLocked()
713 ApfGenerator gen = new ApfGenerator(); in beginProgramLocked()
771 ApfGenerator gen = beginProgramLocked(); in installNewProgramLocked()
[all …]