Home
last modified time | relevance | path

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

/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DPowerStatsStoreTest.java53 private PowerStatsStore mPowerStatsStore; field in PowerStatsStoreTest
61 mPowerStatsStore = new PowerStatsStore(mStoreDirectory, in setup()
80 mPowerStatsStore.storePowerStatsSpan(span); in garbageCollectOldSpans()
86 List<PowerStatsSpan.Metadata> toc = mPowerStatsStore.getTableOfContents(); in garbageCollectOldSpans()
99 mPowerStatsStore.storePowerStatsSpan(span); in reset()
104 mPowerStatsStore.reset(); in reset()
DPowerStatsSchedulerTest.java59 private PowerStatsStore mPowerStatsStore; field in PowerStatsSchedulerTest
83 mPowerStatsStore = new PowerStatsStore( in setup()
90 mPowerStatsStore, in setup()
99 mPowerStatsStore.reset(); in storeAggregatePowerStats()
101 assertThat(mPowerStatsStore.getTableOfContents()).isEmpty(); in storeAggregatePowerStats()
103 mPowerStatsStore.storeAggregatedPowerStats( in storeAggregatePowerStats()
164 List<PowerStatsSpan.Metadata> contents = mPowerStatsStore.getTableOfContents(); in storeAggregatePowerStats()
DPowerStatsExporterTest.java77 private PowerStatsStore mPowerStatsStore; field in PowerStatsExporterTest
99 mPowerStatsStore = new PowerStatsStore(storeDirectory, new TestHandler(), config); in setup()
235 mPowerStatsStore.storeAggregatedPowerStats(stats); in recordBatteryHistory()
249 mPowerStatsStore.storeAggregatedPowerStats(stats); in recordBatteryHistory()
263 assertThat(mPowerStatsStore.getTableOfContents()).hasSize(2); in recordBatteryHistory()
269 PowerStatsExporter exporter = new PowerStatsExporter(mPowerStatsStore, in exportAggregatedPowerStats()
DBatteryStatsImplTest.java117 private PowerStatsStore mPowerStatsStore; field in BatteryStatsImplTest
152 mPowerStatsStore = new PowerStatsStore(systemDir, mHandler, in setUp()
155 mPowerProfile, mBatteryStatsImpl.getCpuScalingPolicies(), mPowerStatsStore, in setUp()
928 assertThat(mPowerStatsStore.getTableOfContents()).isEmpty(); in storeBatteryUsageStatsOnReset()
931 mPowerStatsStore); in storeBatteryUsageStatsOnReset()
958 List<PowerStatsSpan.Metadata> contents = mPowerStatsStore.getTableOfContents(); in storeBatteryUsageStatsOnReset()
963 PowerStatsSpan span = mPowerStatsStore.loadPowerStatsSpan(metadata.getId(), in storeBatteryUsageStatsOnReset()
/frameworks/base/services/core/java/com/android/server/power/stats/
DPowerStatsScheduler.java48 private final PowerStatsStore mPowerStatsStore; field in PowerStatsScheduler
77 mPowerStatsStore = powerStatsStore; in PowerStatsScheduler()
153 mPowerStatsStore.dump(ipw); in aggregateAndDumpPowerStats()
231 for (PowerStatsSpan.Metadata metadata : mPowerStatsStore.getTableOfContents()) { in getLastSavedSpanEndMonotonicTime()
245 mPowerStatsStore.storeAggregatedPowerStats(stats); in storeAggregatedPowerStats()
DPowerStatsExporter.java38 private final PowerStatsStore mPowerStatsStore; field in PowerStatsExporter
51 mPowerStatsStore = powerStatsStore; in PowerStatsExporter()
64 List<PowerStatsSpan.Metadata> spans = mPowerStatsStore.getTableOfContents(); in exportAggregatedPowerStats()
94 PowerStatsSpan span = mPowerStatsStore.loadPowerStatsSpan(metadata.getId(), in exportAggregatedPowerStats()
DBatteryUsageStatsProvider.java49 private final PowerStatsStore mPowerStatsStore; field in BatteryUsageStatsProvider
62 mPowerStatsStore = powerStatsStore; in BatteryUsageStatsProvider()
346 if (mPowerStatsStore == null) { in getAggregatedBatteryUsageStats()
351 List<PowerStatsSpan.Metadata> toc = mPowerStatsStore.getTableOfContents(); in getAggregatedBatteryUsageStats()
383 PowerStatsSpan powerStatsSpan = mPowerStatsStore.loadPowerStatsSpan( in getAggregatedBatteryUsageStats()
DBatteryStatsImpl.java462 private PowerStatsStore mPowerStatsStore; field in BatteryStatsImpl
11887 mPowerStatsStore = powerStatsStore; in saveBatteryUsageStatsOnReset()
12104 mPowerStatsStore.storeBatteryUsageStats(monotonicStartTime, batteryUsageStats); in saveBatteryUsageStatsOnReset()
/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java192 private final PowerStatsStore mPowerStatsStore; field in BatteryStatsService
440 mPowerStatsStore = new PowerStatsStore(systemDir, mHandler, mAggregatedPowerStatsConfig); in BatteryStatsService()
443 new PowerStatsExporter(mPowerStatsStore, in BatteryStatsService()
447 mPowerStatsStore, Clock.SYSTEM_CLOCK); in BatteryStatsService()
448 mStats.saveBatteryUsageStatsOnReset(mBatteryUsageStatsProvider, mPowerStatsStore); in BatteryStatsService()
468 powerStatsAggregationPeriod, mPowerStatsStore, alarmScheduler, Clock.SYSTEM_CLOCK, in createPowerStatsScheduler()
2849 mPowerStatsStore.dump(new IndentingPrintWriter(pw, " ")); in dumpPowerStatsStore()
2853 mPowerStatsStore.dumpTableOfContents(new IndentingPrintWriter(pw, " ")); in dumpPowerStatsStoreTableOfContents()
3007 mPowerStatsStore.reset(); in dumpUnmonitored()