Home
last modified time | relevance | path

Searched refs:tetherStatsList (Results 1 – 5 of 5) sorted by relevance

/aosp12/packages/modules/Connectivity/Tethering/apishim/30/com/android/networkstack/tethering/apishim/api30/
H A DBpfCoordinatorShimImpl.java99 final TetherStatsParcel[] tetherStatsList; in tetherOffloadGetStats() local
104 tetherStatsList = mNetd.tetherOffloadGetStats(); in tetherOffloadGetStats()
110 return toTetherStatsValueSparseArray(tetherStatsList); in tetherOffloadGetStats()
127 final SparseArray<TetherStatsValue> tetherStatsList = new SparseArray<TetherStatsValue>(); in toTetherStatsValueSparseArray() local
130 tetherStatsList.put(p.ifIndex, new TetherStatsValue(p.rxPackets, p.rxBytes, in toTetherStatsValueSparseArray()
134 return tetherStatsList; in toTetherStatsValueSparseArray()
/aosp12/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
H A DBpfCoordinator.java1704 SparseArray<TetherStatsValue> tetherStatsList = new SparseArray<TetherStatsValue>(); in maybeClearLimit() local
1705 tetherStatsList.put(upstreamIfindex, statsValue); in maybeClearLimit()
1708 updateQuotaAndStatsFromSnapshot(tetherStatsList); in maybeClearLimit()
1806 @NonNull final SparseArray<TetherStatsValue> tetherStatsList) { in updateQuotaAndStatsFromSnapshot()
1808 for (int i = 0; i < tetherStatsList.size(); i++) { in updateQuotaAndStatsFromSnapshot()
1809 final Integer ifIndex = tetherStatsList.keyAt(i); in updateQuotaAndStatsFromSnapshot()
1810 final TetherStatsValue tetherStats = tetherStatsList.valueAt(i); in updateQuotaAndStatsFromSnapshot()
1843 final SparseArray<TetherStatsValue> tetherStatsList = in updateForwardedStats() local
1846 if (tetherStatsList == null) { in updateForwardedStats()
1851 updateQuotaAndStatsFromSnapshot(tetherStatsList); in updateForwardedStats()
/aosp12/packages/modules/Connectivity/Tethering/apishim/31/com/android/networkstack/tethering/apishim/api31/
H A DBpfCoordinatorShimImpl.java237 final SparseArray<TetherStatsValue> tetherStatsList = new SparseArray<TetherStatsValue>(); in tetherOffloadGetStats()
241 mBpfStatsMap.forEach((key, value) -> tetherStatsList.put((int) key.ifindex, value)); in tetherOffloadGetStats()
246 return tetherStatsList; in tetherOffloadGetStats()
/aosp12/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
H A DBpfCoordinatorTest.java383 private void updateStatsEntriesAndWaitForUpdate(@NonNull TetherStatsParcel[] tetherStatsList) in updateStatsEntriesAndWaitForUpdate() argument
386 for (TetherStatsParcel stats : tetherStatsList) { in updateStatsEntriesAndWaitForUpdate()
390 when(mNetd.tetherOffloadGetStats()).thenReturn(tetherStatsList); in updateStatsEntriesAndWaitForUpdate()
/aosp12/system/netd/tests/
H A Dbinder_test.cpp3955 std::vector<TetherStatsParcel> tetherStatsList; in TEST_F() local
3956 auto status = mNetd->tetherOffloadGetStats(&tetherStatsList); in TEST_F()