Searched refs:mBpfStatsMap (Results 1 – 3 of 3) sorted by relevance
/packages/modules/Connectivity/Tethering/apishim/31/com/android/networkstack/tethering/apishim/api31/ |
D | BpfCoordinatorShimImpl.java | 85 private final BpfMap<TetherStatsKey, TetherStatsValue> mBpfStatsMap; field in BpfCoordinatorShimImpl 116 mBpfStatsMap = deps.getBpfStatsMap(); in BpfCoordinatorShimImpl() 143 if (mBpfStatsMap != null) mBpfStatsMap.clear(); in BpfCoordinatorShimImpl() 162 && mBpfUpstream6Map != null && mBpfStatsMap != null && mBpfLimitMap != null in isInitialized() 241 mBpfStatsMap.forEach((key, value) -> tetherStatsList.put((int) key.ifindex, value)); in tetherOffloadGetStats() 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() 496 mapStatus(mBpfStatsMap, "mBpfStatsMap"), in toString()
|
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | BpfCoordinatorTest.java | 234 private final TestBpfMap<TetherStatsKey, TetherStatsValue> mBpfStatsMap = field in BpfCoordinatorTest 296 return mBpfStatsMap; 368 mBpfStatsMap.updateEntry(key, value); in updateStatsEntryToStatsMap() 414 clearInvocations(mBpfStatsMap); in clearStatsInvocations() 430 verify(mBpfStatsMap).forEach(any()); in verifyTetherOffloadGetStats() 438 verify(mBpfStatsMap, never()).forEach(any()); in verifyNeverTetherOffloadGetStats() 515 verifyWithOrder(inOrder, mBpfStatsMap).getValue(key); in verifyTetherOffloadSetInterfaceQuota() 517 verifyWithOrder(inOrder, mBpfStatsMap).insertEntry(key, new TetherStatsValue( in verifyTetherOffloadSetInterfaceQuota() 531 inOrder.verify(mBpfStatsMap, never()).getValue(any()); in verifyNeverTetherOffloadSetInterfaceQuota() 532 inOrder.verify(mBpfStatsMap, never()).insertEntry(any(), any()); in verifyNeverTetherOffloadSetInterfaceQuota() [all …]
|
/packages/modules/Connectivity/Tethering/tests/unit/src/android/net/ip/ |
D | IpServerTest.java | 189 @Mock private BpfMap<TetherStatsKey, TetherStatsValue> mBpfStatsMap; field in IpServerTest 338 return mBpfStatsMap; 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()
|