Home
last modified time | relevance | path

Searched refs:STATS_PER_IFACE (Results 1 – 8 of 8) 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.java41 import static android.net.NetworkStats.STATS_PER_IFACE;
1105 tetherSnapshot = getNetworkStatsTethering(STATS_PER_IFACE);
1429 final NetworkStats tetherSnapshot = getNetworkStatsTethering(STATS_PER_IFACE);
1437 final NetworkStats providersnapshot = getNetworkStatsFromProviders(STATS_PER_IFACE);
1809 pw.print(cb.getCachedStats(STATS_PER_IFACE).toString());
2049 case STATS_PER_IFACE:
/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;
1370 expectNetworkStatsTethering(STATS_PER_IFACE, tetherStats);
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt44717 Landroid/net/NetworkStats;->STATS_PER_IFACE:I