Home
last modified time | relevance | path

Searched refs:STATS_PER_IFACE (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DBpfCoordinatorTest.java29 import static com.android.networkstack.tethering.BpfCoordinator.StatsType.STATS_PER_IFACE;
163 return new NetworkStats.Entry(iface, how == STATS_PER_IFACE ? UID_ALL : UID_TETHERING, in buildTestEntry()
213 .addEntry(buildTestEntry(STATS_PER_IFACE, wlanIface, 1000, 100, 2000, 200)) in testGetForwardedStats()
214 .addEntry(buildTestEntry(STATS_PER_IFACE, mobileIface, 3000, 300, 4000, 400)); in testGetForwardedStats()
234 .addEntry(buildTestEntry(STATS_PER_IFACE, wlanIface, 0, 0, 0, 0)) in testGetForwardedStats()
235 .addEntry(buildTestEntry(STATS_PER_IFACE, mobileIface, 10, 20, 30, 40)); in testGetForwardedStats()
495 .addEntry(buildTestEntry(STATS_PER_IFACE, ethIface, 10, 20, 30, 40)) in testTetherOffloadRuleUpdateAndClear()
496 .addEntry(buildTestEntry(STATS_PER_IFACE, mobileIface, 50, 60, 70, 80)), in testTetherOffloadRuleUpdateAndClear()
DOffloadControllerTest.java29 import static com.android.networkstack.tethering.OffloadController.StatsType.STATS_PER_IFACE;
421 return new Entry(iface, how == STATS_PER_IFACE ? UID_ALL : UID_TETHERING, SET_DEFAULT, in buildTestEntry()
461 final NetworkStats ifaceStats = mTetherStatsProvider.getTetherStats(STATS_PER_IFACE); in testGetForwardedStats()
464 .addEntry(buildTestEntry(STATS_PER_IFACE, mobileIface, 999, 99999)) in testGetForwardedStats()
465 .addEntry(buildTestEntry(STATS_PER_IFACE, ethernetIface, 12345, 54321)); in testGetForwardedStats()
492 final NetworkStats ifaceStatsAccu = mTetherStatsProvider.getTetherStats(STATS_PER_IFACE); in testGetForwardedStats()
495 .addEntry(buildTestEntry(STATS_PER_IFACE, mobileIface, 999, 99999)) in testGetForwardedStats()
496 .addEntry(buildTestEntry(STATS_PER_IFACE, ethernetIface, 112345, 154321)); in testGetForwardedStats()
508 .addEntry(buildTestEntry(STATS_PER_IFACE, mobileIface, 0, 0)) in testGetForwardedStats()
509 .addEntry(buildTestEntry(STATS_PER_IFACE, ethernetIface, 100000, 100000)); in testGetForwardedStats()
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DOffloadController.java85 STATS_PER_IFACE, enumConstant
351 getTetherStats(StatsType.STATS_PER_IFACE).subtract(mIfaceStats); in pushTetherStats()
DBpfCoordinator.java77 STATS_PER_IFACE, enumConstant
710 buildNetworkStats(StatsType.STATS_PER_IFACE, ifIndex, diff), in updateQuotaAndStatsFromSnapshot()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsService.java40 import static android.net.NetworkStats.STATS_PER_IFACE;
1077 tetherSnapshot = getNetworkStatsTethering(STATS_PER_IFACE); in getTetherStats()
1401 final NetworkStats tetherSnapshot = getNetworkStatsTethering(STATS_PER_IFACE); in recordSnapshotLocked()
1409 final NetworkStats providersnapshot = getNetworkStatsFromProviders(STATS_PER_IFACE); in recordSnapshotLocked()
1781 pw.print(cb.getCachedStats(STATS_PER_IFACE).toString()); in dump()
2021 case STATS_PER_IFACE: in getCachedStats()
/frameworks/base/core/java/android/net/
DNetworkStats.java194 public static final int STATS_PER_IFACE = 0; field in NetworkStats
204 STATS_PER_IFACE,
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsServiceTest.java38 import static android.net.NetworkStats.STATS_PER_IFACE;
1257 expectNetworkStatsTethering(STATS_PER_IFACE, tetherStats);