Home
last modified time | relevance | path

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

/packages/modules/Connectivity/Tethering/apishim/31/com/android/networkstack/tethering/apishim/api31/
DBpfCoordinatorShimImpl.java37 import com.android.net.module.util.bpf.TetherStatsKey;
87 private final IBpfMap<TetherStatsKey, TetherStatsValue> mBpfStatsMap;
252 statsValue = mBpfStatsMap.getValue(new TetherStatsKey(ifIndex)); in tetherOffloadSetInterfaceQuota()
270 mBpfStatsMap.insertEntry(new TetherStatsKey(ifIndex), new TetherStatsValue( in tetherOffloadSetInterfaceQuota()
314 statsValue = mBpfStatsMap.getValue(new TetherStatsKey(ifIndex)); in tetherOffloadGetAndClearStats()
326 mBpfStatsMap.deleteEntry(new TetherStatsKey(ifIndex)); in tetherOffloadGetAndClearStats()
/packages/modules/Connectivity/common/src/com/android/net/module/util/bpf/
DTetherStatsKey.java24 public class TetherStatsKey extends Struct { class
28 public TetherStatsKey(final int ifindex) { in TetherStatsKey() method in TetherStatsKey
/packages/modules/Connectivity/Tethering/tests/mts/src/android/tethering/mts/
DMtsEthernetTetheringTest.java48 import com.android.net.module.util.bpf.TetherStatsKey;
268 final HashMap<TetherStatsKey, TetherStatsValue> statsMap = pollRawMapFromDump( in runUdp4Test()
269 TetherStatsKey.class, TetherStatsValue.class, DUMPSYS_RAWMAP_ARG_STATS); in runUdp4Test()
273 final Map.Entry<TetherStatsKey, TetherStatsValue> stats = in runUdp4Test()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DBpfCoordinatorTest.java132 import com.android.net.module.util.bpf.TetherStatsKey;
484 private final IBpfMap<TetherStatsKey, TetherStatsValue> mBpfStatsMap =
485 spy(new TestBpfMap<>(TetherStatsKey.class, TetherStatsValue.class));
553 public IBpfMap<TetherStatsKey, TetherStatsValue> getBpfStatsMap() {
709 final TetherStatsKey key = new TetherStatsKey(stats.ifIndex); in updateStatsEntryToStatsMap()
958 final TetherStatsKey key = new TetherStatsKey(ifIndex); in verifyTetherOffloadSetInterfaceQuota()
986 inOrder.verify(mBpfStatsMap).getValue(new TetherStatsKey(ifIndex)); in verifyTetherOffloadGetAndClearStats()
987 inOrder.verify(mBpfStatsMap).deleteEntry(new TetherStatsKey(ifIndex)); in verifyTetherOffloadGetAndClearStats()
2568 new TetherStatsKey(UPSTREAM_IFINDEX), in testDumpDoesNotCrash()
2849 when(mBpfStatsMap.getValue(new TetherStatsKey(UPSTREAM_IFINDEX))).thenReturn(allZeros); in resetNetdAndBpfMaps()
[all …]
/packages/modules/Connectivity/bpf_progs/
Doffload.h78 typedef uint32_t TetherStatsKey; // upstream ifindex typedef
Doffload.c110 DEFINE_BPF_MAP_GRW(tether_stats_map, HASH, TetherStatsKey, TetherStatsValue, 16, TETHERING_GID)
Doffload@mainline.c110 DEFINE_BPF_MAP_GRW(tether_stats_map, HASH, TetherStatsKey, TetherStatsValue, 16, TETHERING_GID)
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DBpfCoordinator.java75 import com.android.net.module.util.bpf.TetherStatsKey;
425 @Nullable public IBpfMap<TetherStatsKey, TetherStatsValue> getBpfStatsMap() { in getBpfStatsMap()
429 TetherStatsKey.class, TetherStatsValue.class); in getBpfStatsMap()
1211 try (IBpfMap<TetherStatsKey, TetherStatsValue> map = mDeps.getBpfStatsMap()) { in dumpBpfStats() argument
1363 try (IBpfMap<TetherStatsKey, TetherStatsValue> statsMap = mDeps.getBpfStatsMap()) { in dumpRawMap() argument