Home
last modified time | relevance | path

Searched refs:STATS_PER_UID (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DBpfCoordinatorTest.java30 import static com.android.networkstack.tethering.BpfCoordinator.StatsType.STATS_PER_UID;
217 .addEntry(buildTestEntry(STATS_PER_UID, wlanIface, 1000, 100, 2000, 200)) in testGetForwardedStats()
218 .addEntry(buildTestEntry(STATS_PER_UID, mobileIface, 3000, 300, 4000, 400)); in testGetForwardedStats()
238 .addEntry(buildTestEntry(STATS_PER_UID, wlanIface, 0, 0, 0, 0)) in testGetForwardedStats()
239 .addEntry(buildTestEntry(STATS_PER_UID, mobileIface, 10, 20, 30, 40)); in testGetForwardedStats()
498 .addEntry(buildTestEntry(STATS_PER_UID, ethIface, 10, 20, 30, 40)) in testTetherOffloadRuleUpdateAndClear()
499 .addEntry(buildTestEntry(STATS_PER_UID, mobileIface, 50, 60, 70, 80))); in testTetherOffloadRuleUpdateAndClear()
DOffloadControllerTest.java30 import static com.android.networkstack.tethering.OffloadController.StatsType.STATS_PER_UID;
462 final NetworkStats uidStats = mTetherStatsProvider.getTetherStats(STATS_PER_UID); in testGetForwardedStats()
468 .addEntry(buildTestEntry(STATS_PER_UID, mobileIface, 999, 99999)) in testGetForwardedStats()
469 .addEntry(buildTestEntry(STATS_PER_UID, ethernetIface, 12345, 54321)); in testGetForwardedStats()
493 final NetworkStats uidStatsAccu = mTetherStatsProvider.getTetherStats(STATS_PER_UID); in testGetForwardedStats()
499 .addEntry(buildTestEntry(STATS_PER_UID, mobileIface, 999, 99999)) in testGetForwardedStats()
500 .addEntry(buildTestEntry(STATS_PER_UID, ethernetIface, 112345, 154321)); in testGetForwardedStats()
512 .addEntry(buildTestEntry(STATS_PER_UID, mobileIface, 0, 0)) in testGetForwardedStats()
513 .addEntry(buildTestEntry(STATS_PER_UID, ethernetIface, 100000, 100000)); in testGetForwardedStats()
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DOffloadController.java86 STATS_PER_UID, enumConstant
309 final int uid = (how == StatsType.STATS_PER_UID) ? UID_TETHERING : UID_ALL; in getTetherStats()
353 getTetherStats(StatsType.STATS_PER_UID).subtract(mUidStats); in pushTetherStats()
DBpfCoordinator.java78 STATS_PER_UID, enumConstant
671 final int uid = (type == StatsType.STATS_PER_UID) ? UID_TETHERING : UID_ALL; in buildNetworkStats()
711 buildNetworkStats(StatsType.STATS_PER_UID, ifIndex, diff)); in updateQuotaAndStatsFromSnapshot()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsService.java42 import static android.net.NetworkStats.STATS_PER_UID;
1814 pw.print(cb.getCachedStats(STATS_PER_UID).toString());
1911 final NetworkStats tetherSnapshot = getNetworkStatsTethering(STATS_PER_UID);
1917 final NetworkStats providerStats = getNetworkStatsFromProviders(STATS_PER_UID);
2052 case STATS_PER_UID:
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsServiceTest.java39 import static android.net.NetworkStats.STATS_PER_UID;
836 when(mNetManager.getNetworkStatsTethering(STATS_PER_UID))
1398 when(mNetManager.getNetworkStatsTethering(STATS_PER_UID)).thenReturn(tetherStats);
/frameworks/base/core/java/android/net/
DNetworkStats.java199 public static final int STATS_PER_UID = 1; field in NetworkStats
205 STATS_PER_UID
/frameworks/base/services/core/java/com/android/server/
DNetworkManagementService.java36 import static android.net.NetworkStats.STATS_PER_UID;
1494 if (how != STATS_PER_UID) { in getTetherStats()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt44718 Landroid/net/NetworkStats;->STATS_PER_UID:I