Searched refs:PacketSection (Results 1 – 2 of 2) sorted by relevance
/packages/modules/NetworkStack/src/android/net/apf/ |
D | LegacyApfFilter.java | 534 private static class PacketSection { class in LegacyApfFilter 552 PacketSection(int start, int length, Type type, int option, long lifetime) { in PacketSection() method in LegacyApfFilter.PacketSection 605 private final ArrayList<PacketSection> mPacketSections = new ArrayList<>(); 738 new PacketSection(mPacket.position(), length, PacketSection.Type.MATCH, 0, 0)); in addMatchSection() 756 new PacketSection(mPacket.position(), length, PacketSection.Type.IGNORE, 0, 0)); in addIgnoreSection() 768 new PacketSection(mPacket.position(), length, PacketSection.Type.LIFETIME, in addLifetimeSection() 823 private boolean isRelevantLifetime(PacketSection section) { in isRelevantLifetime() 824 return section.type == PacketSection.Type.LIFETIME in isRelevantLifetime() 934 for (PacketSection section : mPacketSections) { in matches() 935 if (section.type != PacketSection.Type.MATCH) continue; in matches() [all …]
|
D | ApfFilter.java | 622 private static class PacketSection { class in ApfFilter 639 PacketSection(int start, int length, Type type, long lifetime, int min) { in PacketSection() method in ApfFilter.PacketSection 711 private final ArrayList<PacketSection> mPacketSections = new ArrayList<>(); 847 PacketSection prev = mPacketSections.get(lastIdx); in addMatchSection() 848 if (prev.type == PacketSection.Type.MATCH) { // of type match in addMatchSection() 857 mPacketSections.add(new PacketSection(from, length, PacketSection.Type.MATCH, 0, 0)); in addMatchSection() 885 new PacketSection(mPacket.position(), length, PacketSection.Type.LIFETIME, in addLifetimeSection() 1062 for (PacketSection section : mPacketSections) { in matches() 1063 if (section.type != PacketSection.Type.MATCH) continue; in matches() 1074 for (PacketSection section : mPacketSections) { in matches() [all …]
|