/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/ |
D | PowerStatsSchedulerTest.java | 62 private MonotonicClock mMonotonicClock = new MonotonicClock(0, mClock); field in PowerStatsSchedulerTest 93 mClock, mMonotonicClock, () -> 12345L, mHandler); in setup() 104 createAggregatedPowerStats(mMonotonicClock.monotonicTime(), mClock.currentTime, in storeAggregatePowerStats() 119 mClock.currentTime - (mMonotonicClock.monotonicTime() - startTime); in storeAggregatePowerStats() 121 mClock.currentTime - (mMonotonicClock.monotonicTime() - endTime); in storeAggregatePowerStats() 137 mClock.currentTime - (mMonotonicClock.monotonicTime() - startTime); in storeAggregatePowerStats() 139 mClock.currentTime - (mMonotonicClock.monotonicTime() - endTime); in storeAggregatePowerStats()
|
D | BinaryStatePowerStatsProcessorTest.java | 60 private final MonotonicClock mMonotonicClock = new MonotonicClock(0, mClock); field in BinaryStatePowerStatsProcessorTest 163 processor.addPowerStats(stats, powerStats, mMonotonicClock.monotonicTime()); in energyConsumerModel() 175 processor.addPowerStats(stats, powerStats, mMonotonicClock.monotonicTime()); in energyConsumerModel() 181 processor.addPowerStats(stats, powerStats, mMonotonicClock.monotonicTime()); in energyConsumerModel() 244 historyItem.time = mMonotonicClock.monotonicTime(); in buildHistoryItem()
|
D | PowerStatsAggregatorTest.java | 54 private final MonotonicClock mMonotonicClock = new MonotonicClock(START_TIME, mClock); field in PowerStatsAggregatorTest 63 mMonotonicClock, mock(BatteryStatsHistory.TraceDelegate.class), null); in setup()
|
D | PowerStatsExporterTest.java | 76 private MonotonicClock mMonotonicClock = new MonotonicClock(0, mClock); field in PowerStatsExporterTest 102 mMonotonicClock, null, null); in setup()
|
D | BatteryStatsHistoryTest.java | 75 private final MonotonicClock mMonotonicClock = new MonotonicClock(0, mClock); field in BatteryStatsHistoryTest 102 mStepDetailsCalculator, mClock, mMonotonicClock, mTracer, mEventLogger); in setUp() 241 null, mClock, mMonotonicClock, mTracer, mEventLogger); in testStartNextFile() 537 mStepDetailsCalculator, mClock, mMonotonicClock, mTracer, mEventLogger); in largeTagPool()
|
/frameworks/base/services/core/java/com/android/server/power/stats/ |
D | PowerStatsScheduler.java | 50 private final MonotonicClock mMonotonicClock; field in PowerStatsScheduler 80 mMonotonicClock = monotonicClock; in PowerStatsScheduler() 118 long currentMonotonicTime = mMonotonicClock.monotonicTime(); in aggregateAndStorePowerStats()
|
D | BatteryStatsImpl.java | 235 private final MonotonicClock mMonotonicClock; field in BatteryStatsImpl 11245 mMonotonicClock = monotonicClock; in BatteryStatsImpl() 11268 mClock, mMonotonicClock, traceDelegate, eventLogger); in BatteryStatsImpl() 11856 mMonotonicStartTime = mMonotonicClock.monotonicTime(); in initTimes() 12102 mMonotonicClock.monotonicTime() - batteryUsageStats.getStatsDuration(); in saveBatteryUsageStatsOnReset() 16951 out.writeLong(mMonotonicClock.monotonicTime());
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BatteryStatsHistory.java | 209 private final MonotonicClock mMonotonicClock; field in BatteryStatsHistory 249 private final MonotonicClock mMonotonicClock; field in BatteryStatsHistory.BatteryHistoryDirectory 258 mMonotonicClock = monotonicClock; in BatteryHistoryDirectory() 408 mMonotonicClock.monotonicTime()); in makeBatteryHistoryFile() 616 mMonotonicClock = monotonicClock; in BatteryStatsHistory() 665 mMonotonicClock = null; in BatteryStatsHistory() 674 mHistoryBufferStartTime = mMonotonicClock.monotonicTime(); in initHistoryBuffer() 762 mHistoryBufferStartTime = mMonotonicClock.monotonicTime(elapsedRealtimeMs); in startNextFileLocked() 1782 final long timeDiffMs = mMonotonicClock.monotonicTime(elapsedRealtimeMs) in writeHistoryItem() 1925 mHistoryLastWritten.setTo(mMonotonicClock.monotonicTime(elapsedRealtimeMs), cmd, cur); in writeHistoryItem() [all …]
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BatteryStatsService.java | 188 private final MonotonicClock mMonotonicClock; field in BatteryStatsService 412 mMonotonicClock = new MonotonicClock(new File(systemDir, "monotonic_clock.xml")); in BatteryStatsService() 428 mStats = new BatteryStatsImpl(mBatteryStatsConfig, Clock.SYSTEM_CLOCK, mMonotonicClock, in BatteryStatsService() 469 mMonotonicClock, () -> mStats.getHistory().getStartTime(), mHandler); in createPowerStatsScheduler() 856 mMonotonicClock.write(); in shutdown() 3175 mBatteryStatsConfig, Clock.SYSTEM_CLOCK, mMonotonicClock, in dumpUnmonitored() 3217 mBatteryStatsConfig, Clock.SYSTEM_CLOCK, mMonotonicClock, in dumpUnmonitored()
|
/frameworks/base/services/appwidget/java/com/android/server/appwidget/ |
D | AppWidgetServiceImpl.java | 5153 private LongSupplier mMonotonicClock; field in AppWidgetServiceImpl.ApiCounter 5163 mMonotonicClock = monotonicClock; in ApiCounter() 5188 final long now = mMonotonicClock.getAsLong(); in tryApiCall()
|