Home
last modified time | relevance | path

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

/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DMobileRadioPowerCalculatorTest.java135 NetworkStats networkStats = mockNetworkStats(10000, 1, in testCounterBasedModel() local
140 mStatsRule.setNetworkStats(networkStats); in testCounterBasedModel()
255 NetworkStats networkStats = mockNetworkStats(10000, 1, in testCounterBasedModel_multipleDefinedRat() local
260 mStatsRule.setNetworkStats(networkStats); in testCounterBasedModel_multipleDefinedRat()
412 NetworkStats networkStats = mockNetworkStats(10000, 1, in testCounterBasedModel_legacyPowerProfile() local
417 mStatsRule.setNetworkStats(networkStats); in testCounterBasedModel_legacyPowerProfile()
628 NetworkStats networkStats = mockNetworkStats(10000, 1, in testMeasuredEnergyBasedModel_mobileRadioActiveTimeModel() local
631 mStatsRule.setNetworkStats(networkStats); in testMeasuredEnergyBasedModel_mobileRadioActiveTimeModel()
735 NetworkStats networkStats = mockNetworkStats(10000, 1, in testMeasuredEnergyBasedModel_modemActivityInfoRxTxModel() local
740 mStatsRule.setNetworkStats(networkStats); in testMeasuredEnergyBasedModel_modemActivityInfoRxTxModel()
[all …]
DWifiPowerStatsProcessorTest.java220 NetworkStats networkStats = mockNetworkStats(10000, 1, in powerProfileModel_powerController() local
225 when(mNetworkStatsSupplier.get()).thenReturn(networkStats); in powerProfileModel_powerController()
336 NetworkStats networkStats = mockNetworkStats(10000, 1, in consumedEnergyModel_powerController() local
341 when(mNetworkStatsSupplier.get()).thenReturn(networkStats); in consumedEnergyModel_powerController()
441 NetworkStats networkStats = mockNetworkStats(10000, 1, in powerProfileModel_noPowerController() local
446 when(mNetworkStatsSupplier.get()).thenReturn(networkStats); in powerProfileModel_noPowerController()
DMobileRadioPowerStatsProcessorTest.java210 NetworkStats networkStats = mockNetworkStats(10000, 1, in powerProfileModel() local
216 when(mNetworkStatsSupplier.get()).thenReturn(networkStats); in powerProfileModel()
453 NetworkStats networkStats = mockNetworkStats(10000, 1, in prepareAggregatedStats_energyConsumerModel() local
459 when(mNetworkStatsSupplier.get()).thenReturn(networkStats); in prepareAggregatedStats_energyConsumerModel()
DMockBatteryStatsImpl.java145 public MockBatteryStatsImpl setNetworkStats(NetworkStats networkStats) { in setNetworkStats() argument
146 mNetworkStats = networkStats; in setNetworkStats()
DBatteryUsageStatsRule.java305 public void setNetworkStats(NetworkStats networkStats) { in setNetworkStats() argument
306 mNetworkStats = networkStats; in setNetworkStats()
/frameworks/base/services/core/java/com/android/server/power/stats/
DWifiPowerStatsCollector.java225 NetworkStats networkStats = mNetworkStatsSupplier.get(); in collectNetworkStats() local
226 if (networkStats == null) { in collectNetworkStats()
231 BatteryStatsImpl.computeDelta(networkStats, mLastNetworkStats); in collectNetworkStats()
232 mLastNetworkStats = networkStats; in collectNetworkStats()
DMobileRadioPowerStatsCollector.java299 NetworkStats networkStats = mNetworkStatsSupplier.get(); in collectNetworkStats() local
300 if (networkStats == null) { in collectNetworkStats()
305 BatteryStatsImpl.computeDelta(networkStats, mLastNetworkStats); in collectNetworkStats()
306 mLastNetworkStats = networkStats; in collectNetworkStats()