Home
last modified time | relevance | path

Searched refs:TetherLimitKey (Results 1 – 7 of 7) sorted by relevance

/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DTetherLimitKey.java24 public class TetherLimitKey extends Struct { class
28 public TetherLimitKey(final long ifindex) { in TetherLimitKey() method in TetherLimitKey
37 if (!(obj instanceof TetherLimitKey)) return false; in equals()
39 final TetherLimitKey that = (TetherLimitKey) obj; in equals()
DBpfCoordinator.java365 @Nullable public BpfMap<TetherLimitKey, TetherLimitValue> getBpfLimitMap() { in getBpfLimitMap()
369 BpfMap.BPF_F_RDWR, TetherLimitKey.class, TetherLimitValue.class); in getBpfLimitMap()
/packages/modules/Connectivity/Tethering/apishim/31/com/android/networkstack/tethering/apishim/api31/
DBpfCoordinatorShimImpl.java42 import com.android.networkstack.tethering.TetherLimitKey;
89 private final BpfMap<TetherLimitKey, TetherLimitValue> mBpfLimitMap;
296 mBpfLimitMap.updateEntry(new TetherLimitKey(ifIndex), new TetherLimitValue(newLimit)); in tetherOffloadSetInterfaceQuota()
343 mBpfLimitMap.deleteEntry(new TetherLimitKey(ifIndex)); in tetherOffloadGetAndClearStats()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DBpfCoordinatorTest.java236 private final TestBpfMap<TetherLimitKey, TetherLimitValue> mBpfLimitMap =
237 spy(new TestBpfMap<>(TetherLimitKey.class, TetherLimitValue.class));
300 public BpfMap<TetherLimitKey, TetherLimitValue> getBpfLimitMap() {
521 verifyWithOrder(inOrder, mBpfLimitMap).updateEntry(new TetherLimitKey(ifIndex), in verifyTetherOffloadSetInterfaceQuota()
544 inOrder.verify(mBpfLimitMap).deleteEntry(new TetherLimitKey(ifIndex)); in verifyTetherOffloadGetAndClearStats()
/packages/modules/Connectivity/Tethering/bpf_progs/
Dbpf_tethering.h94 typedef uint32_t TetherLimitKey; // upstream ifindex typedef
Doffload.c95 DEFINE_BPF_MAP_GRW(tether_limit_map, HASH, TetherLimitKey, TetherLimitValue, 16, AID_NETWORK_STACK)
/packages/modules/Connectivity/Tethering/tests/unit/src/android/net/ip/
DIpServerTest.java113 import com.android.networkstack.tethering.TetherLimitKey;
190 @Mock private BpfMap<TetherLimitKey, TetherLimitValue> mBpfLimitMap;
342 public BpfMap<TetherLimitKey, TetherLimitValue> getBpfLimitMap() { in setUp()