Home
last modified time | relevance | path

Searched refs:StatsType (Results 1 – 4 of 4) sorted by relevance

/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DOffloadController.java87 enum StatsType { enum in OffloadController
355 NetworkStats getTetherStats(@NonNull StatsType how) { in getTetherStats()
357 final int uid = (how == StatsType.STATS_PER_UID) ? UID_TETHERING : UID_ALL; in getTetherStats()
410 getTetherStats(StatsType.STATS_PER_IFACE).subtract(mIfaceStats); in pushTetherStats()
412 getTetherStats(StatsType.STATS_PER_UID).subtract(mUidStats); in pushTetherStats()
DBpfCoordinator.java135 enum StatsType { enum in BpfCoordinator
1774 private NetworkStats buildNetworkStats(@NonNull StatsType type, int ifIndex, in buildNetworkStats()
1784 final int uid = (type == StatsType.STATS_PER_UID) ? UID_TETHERING : UID_ALL; in buildNetworkStats()
1824 buildNetworkStats(StatsType.STATS_PER_IFACE, ifIndex, diff), in updateQuotaAndStatsFromSnapshot()
1825 buildNetworkStats(StatsType.STATS_PER_UID, ifIndex, diff)); in updateQuotaAndStatsFromSnapshot()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DOffloadControllerTest.java29 import static com.android.networkstack.tethering.OffloadController.StatsType.STATS_PER_IFACE;
30 import static com.android.networkstack.tethering.OffloadController.StatsType.STATS_PER_UID;
409 private static @NonNull Entry buildTestEntry(@NonNull OffloadController.StatsType how, in buildTestEntry()
DBpfCoordinatorTest.java46 import static com.android.networkstack.tethering.BpfCoordinator.StatsType;
47 import static com.android.networkstack.tethering.BpfCoordinator.StatsType.STATS_PER_IFACE;
48 import static com.android.networkstack.tethering.BpfCoordinator.StatsType.STATS_PER_UID;
344 private static NetworkStats.Entry buildTestEntry(@NonNull StatsType how, in buildTestEntry()