Home
last modified time | relevance | path

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

/frameworks/base/core/tests/benchmarks/src/android/net/
DNetworkStatsBenchmark.java38 private NetworkStats mNetworkStats; field in NetworkStatsBenchmark
42 mNetworkStats = new NetworkStats(0, mSize + 2); in setUp()
57 mNetworkStats.insertEntry(recycle); in setUp()
73 mNetworkStats.insertEntry(recycle); in setUp()
93 NetworkStats stats = mNetworkStats.clone(); in timeMigrateTun()
105 NetworkStats stats = mNetworkStats.clone(); in timeClone()
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DWifiPowerStatsCollectorTest.java94 private NetworkStats mNetworkStats; field in WifiPowerStatsCollectorTest
385 mNetworkStats = mock(NetworkStats.class); in mockNetworkStats()
387 when(mNetworkStats.iterator()).thenAnswer(inv -> networkStatsEntries.iterator()); in mockNetworkStats()
390 mNetworkStats = new NetworkStats(elapsedRealtime, 1); in mockNetworkStats()
392 when(mNetworkStatsSupplier.get()).thenReturn(mNetworkStats); in mockNetworkStats()
410 mNetworkStats = mNetworkStats in mockNetworkStatsEntry()
415 when(mNetworkStatsSupplier.get()).thenReturn(mNetworkStats); in mockNetworkStatsEntry()
DMockBatteryStatsImpl.java54 private NetworkStats mNetworkStats; field in MockBatteryStatsImpl
146 mNetworkStats = networkStats; in setNetworkStats()
153 return mNetworkStats; in readMobileNetworkStatsLocked()
159 return mNetworkStats; in readWifiNetworkStatsLocked()
DBatteryUsageStatsRule.java82 private NetworkStats mNetworkStats; field in BatteryUsageStatsRule
138 if (mNetworkStats != null) { in initBatteryStats()
139 mBatteryStats.setNetworkStats(mNetworkStats); in initBatteryStats()
306 mNetworkStats = networkStats; in setNetworkStats()
308 mBatteryStats.setNetworkStats(mNetworkStats); in setNetworkStats()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java489 private NetworkStatsManager mNetworkStats; field in NetworkPolicyManagerService
947 mNetworkStats = context.getSystemService(NetworkStatsManager.class); in NetworkPolicyManagerService()
1177 mNetworkStats.registerUsageCallback(new NetworkTemplate.Builder(MATCH_MOBILE).build(), in initService()
1179 mNetworkStats.registerUsageCallback(new NetworkTemplate.Builder(MATCH_WIFI).build(), in initService()
4561 mNetworkStats.noteUidForeground(uid, uidForeground);
5791 mNetworkStats.forceUpdate();
5813 mNetworkStats.forceUpdate();
5882 mNetworkStats.setDefaultGlobalAlert(persistThreshold);
5890 mNetworkStats.setStatsProviderWarningAndLimitAsync(val.iface, val.warning,
5897 mNetworkStats.setStatsProviderWarningAndLimitAsync(iface, QUOTA_UNLIMITED,