Home
last modified time | relevance | path

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

/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DTetherStatsKey.java24 public class TetherStatsKey extends Struct { class
28 public TetherStatsKey(final long ifindex) { in TetherStatsKey() method in TetherStatsKey
37 if (!(obj instanceof TetherStatsKey)) return false; in equals()
39 final TetherStatsKey that = (TetherStatsKey) obj; in equals()
DBpfCoordinator.java353 @Nullable public BpfMap<TetherStatsKey, TetherStatsValue> getBpfStatsMap() { in getBpfStatsMap()
357 BpfMap.BPF_F_RDWR, TetherStatsKey.class, TetherStatsValue.class); in getBpfStatsMap()
996 try (BpfMap<TetherStatsKey, TetherStatsValue> map = mDeps.getBpfStatsMap()) { in dumpBpfStats() argument
/packages/modules/Connectivity/Tethering/apishim/31/com/android/networkstack/tethering/apishim/api31/
DBpfCoordinatorShimImpl.java44 import com.android.networkstack.tethering.TetherStatsKey;
85 private final BpfMap<TetherStatsKey, TetherStatsValue> mBpfStatsMap;
260 statsValue = mBpfStatsMap.getValue(new TetherStatsKey(ifIndex)); in tetherOffloadSetInterfaceQuota()
278 mBpfStatsMap.insertEntry(new TetherStatsKey(ifIndex), new TetherStatsValue( in tetherOffloadSetInterfaceQuota()
324 statsValue = mBpfStatsMap.getValue(new TetherStatsKey(ifIndex)); in tetherOffloadGetAndClearStats()
336 mBpfStatsMap.deleteEntry(new TetherStatsKey(ifIndex)); in tetherOffloadGetAndClearStats()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DBpfCoordinatorTest.java234 private final TestBpfMap<TetherStatsKey, TetherStatsValue> mBpfStatsMap =
235 spy(new TestBpfMap<>(TetherStatsKey.class, TetherStatsValue.class));
295 public BpfMap<TetherStatsKey, TetherStatsValue> getBpfStatsMap() {
365 final TetherStatsKey key = new TetherStatsKey(stats.ifIndex); in updateStatsEntryToStatsMap()
514 final TetherStatsKey key = new TetherStatsKey(ifIndex); in verifyTetherOffloadSetInterfaceQuota()
542 inOrder.verify(mBpfStatsMap).getValue(new TetherStatsKey(ifIndex)); in verifyTetherOffloadGetAndClearStats()
543 inOrder.verify(mBpfStatsMap).deleteEntry(new TetherStatsKey(ifIndex)); in verifyTetherOffloadGetAndClearStats()
/packages/modules/Connectivity/Tethering/bpf_progs/
Dbpf_tethering.h80 typedef uint32_t TetherStatsKey; // upstream ifindex typedef
Doffload.c91 DEFINE_BPF_MAP_GRW(tether_stats_map, HASH, TetherStatsKey, TetherStatsValue, 16, AID_NETWORK_STACK)
/packages/modules/Connectivity/Tethering/tests/unit/src/android/net/ip/
DIpServerTest.java115 import com.android.networkstack.tethering.TetherStatsKey;
189 @Mock private BpfMap<TetherStatsKey, TetherStatsValue> mBpfStatsMap;
337 public BpfMap<TetherStatsKey, TetherStatsValue> getBpfStatsMap() { in setUp()
980 when(mBpfStatsMap.getValue(new TetherStatsKey(UPSTREAM_IFINDEX))).thenReturn(allZeros); in resetNetdBpfMapAndCoordinator()
981 when(mBpfStatsMap.getValue(new TetherStatsKey(UPSTREAM_IFINDEX2))).thenReturn(allZeros); in resetNetdBpfMapAndCoordinator()