Home
last modified time | relevance | path

Searched refs:mBpfStatsMap (Results 1 – 2 of 2) sorted by relevance

/packages/modules/Connectivity/Tethering/apishim/31/com/android/networkstack/tethering/apishim/api31/
DBpfCoordinatorShimImpl.java87 private final IBpfMap<TetherStatsKey, TetherStatsValue> mBpfStatsMap; field in BpfCoordinatorShimImpl
118 mBpfStatsMap = deps.getBpfStatsMap(); in BpfCoordinatorShimImpl()
145 if (mBpfStatsMap != null) mBpfStatsMap.clear(); in BpfCoordinatorShimImpl()
164 && mBpfUpstream6Map != null && mBpfStatsMap != null && mBpfLimitMap != null in isInitialized()
235 mBpfStatsMap.forEach((key, value) -> tetherStatsList.put((int) key.ifindex, value)); in tetherOffloadGetStats()
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()
472 mapStatus(mBpfStatsMap, "mBpfStatsMap"), in toString()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DBpfCoordinatorTest.java484 private final IBpfMap<TetherStatsKey, TetherStatsValue> mBpfStatsMap = field in BpfCoordinatorTest
554 return mBpfStatsMap;
712 mBpfStatsMap.updateEntry(key, value); in updateStatsEntryToStatsMap()
758 clearInvocations(mBpfStatsMap); in clearStatsInvocations()
778 verify(mBpfStatsMap).forEach(any()); in verifyTetherOffloadGetStats()
786 verify(mBpfStatsMap, never()).forEach(any()); in verifyNeverTetherOffloadGetStats()
959 verifyWithOrder(inOrder, mBpfStatsMap).getValue(key); in verifyTetherOffloadSetInterfaceQuota()
961 verifyWithOrder(inOrder, mBpfStatsMap).insertEntry(key, new TetherStatsValue( in verifyTetherOffloadSetInterfaceQuota()
975 inOrder.verify(mBpfStatsMap, never()).getValue(any()); in verifyNeverTetherOffloadSetInterfaceQuota()
976 inOrder.verify(mBpfStatsMap, never()).insertEntry(any(), any()); in verifyNeverTetherOffloadSetInterfaceQuota()
[all …]