Searched refs:TetherStatsKey (Results 1 – 7 of 7) sorted by relevance
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/ |
D | TetherStatsKey.java | 24 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()
|
D | BpfCoordinator.java | 353 @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/ |
D | BpfCoordinatorShimImpl.java | 44 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/ |
D | BpfCoordinatorTest.java | 234 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/ |
D | bpf_tethering.h | 80 typedef uint32_t TetherStatsKey; // upstream ifindex typedef
|
D | offload.c | 91 DEFINE_BPF_MAP_GRW(tether_stats_map, HASH, TetherStatsKey, TetherStatsValue, 16, AID_NETWORK_STACK)
|
/packages/modules/Connectivity/Tethering/tests/unit/src/android/net/ip/ |
D | IpServerTest.java | 115 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()
|