Home
last modified time | relevance | path

Searched refs:MonotonicClock (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DMonotonicClockTest.java57 MonotonicClock monotonicClock = new MonotonicClock(mFile, 1000, mClock); in persistence()
65 MonotonicClock newMonotonicClock = new MonotonicClock(mFile, 0, mClock); in persistence()
73 MonotonicClock monotonicClock = new MonotonicClock(null, 1000, mClock); in constructor()
87 MonotonicClock monotonicClock = new MonotonicClock(mFile, 1000, mClock); in corruptedFile()
/frameworks/base/core/java/com/android/internal/os/
DMonotonicClock.java44 public class MonotonicClock { class
56 public MonotonicClock(File file) { in MonotonicClock() method in MonotonicClock
60 public MonotonicClock(long monotonicTime, @NonNull Clock clock) { in MonotonicClock() method in MonotonicClock
64 public MonotonicClock(@Nullable File file, long monotonicTime, @NonNull Clock clock) { in MonotonicClock() method in MonotonicClock
DBatteryStatsHistory.java209 private final MonotonicClock mMonotonicClock;
249 private final MonotonicClock mMonotonicClock;
255 BatteryHistoryDirectory(File directory, MonotonicClock monotonicClock, in BatteryHistoryDirectory()
601 MonotonicClock monotonicClock, TraceDelegate tracer, EventLogger eventLogger) { in BatteryStatsHistory()
609 @NonNull MonotonicClock monotonicClock, @NonNull TraceDelegate tracer, in BatteryStatsHistory()
DBatteryStatsHistoryIterator.java53 mEndTimeMs = (endTimeMs != MonotonicClock.UNDEFINED) ? endTimeMs : Long.MAX_VALUE; in BatteryStatsHistoryIterator()
/frameworks/base/services/core/java/com/android/server/power/stats/
DPowerStatsScheduler.java27 import com.android.internal.os.MonotonicClock;
50 private final MonotonicClock mMonotonicClock;
72 AlarmScheduler alarmScheduler, Clock clock, MonotonicClock monotonicClock, in PowerStatsScheduler()
157 MonotonicClock.UNDEFINED, in aggregateAndDumpPowerStats()
DBatteryStatsImpl.java136 import com.android.internal.os.MonotonicClock;
235 private final MonotonicClock mMonotonicClock;
964 long mMonotonicEndTime = MonotonicClock.UNDEFINED;
11219 @NonNull MonotonicClock monotonicClock, @Nullable File systemDir, in BatteryStatsImpl()
11232 @NonNull MonotonicClock monotonicClock, @Nullable File systemDir, in BatteryStatsImpl()
16404 mMonotonicEndTime = MonotonicClock.UNDEFINED;
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DPowerStatsAggregatorTest.java33 import com.android.internal.os.MonotonicClock;
54 private final MonotonicClock mMonotonicClock = new MonotonicClock(START_TIME, mClock);
122 mAggregator.aggregatePowerStats(0, MonotonicClock.UNDEFINED, stats -> { in stateUpdates()
221 mAggregator.aggregatePowerStats(0, MonotonicClock.UNDEFINED, stats -> { in incompatiblePowerStats()
DBatteryStatsHistoryIteratorTest.java30 import com.android.internal.os.MonotonicClock;
88 mBatteryStats.iterateBatteryStatsHistory(0, MonotonicClock.UNDEFINED); in unconstrainedIteration()
126 assertIncludedEvents(mBatteryStats.iterateBatteryStatsHistory(0, MonotonicClock.UNDEFINED), in constrainedIteration()
129 mBatteryStats.iterateBatteryStatsHistory(2000_000, MonotonicClock.UNDEFINED), in constrainedIteration()
191 mBatteryStats.iterateBatteryStatsHistory(0, MonotonicClock.UNDEFINED); in tagsLongHistory()
259 mBatteryStats.iterateBatteryStatsHistory(0, MonotonicClock.UNDEFINED); in cpuSuspendHistoryEvents()
DBatteryStatsHistoryTest.java45 import com.android.internal.os.MonotonicClock;
75 private final MonotonicClock mMonotonicClock = new MonotonicClock(0, mClock);
285 mHistory.iterate(0, MonotonicClock.UNDEFINED); in unconstrainedIteration()
416 BatteryStatsHistoryIterator iterator = mHistory.iterate(0, MonotonicClock.UNDEFINED); in recordPowerStats()
446 BatteryStatsHistoryIterator iterator = mHistory.iterate(0, MonotonicClock.UNDEFINED); in testNrState_dump()
487 BatteryStatsHistoryIterator iterator = mHistory.iterate(0, MonotonicClock.UNDEFINED); in testNrState_checkin()
570 mHistory.iterate(0, MonotonicClock.UNDEFINED); iterator.hasNext(); ) { in largeTagPool()
626 BatteryStatsHistoryIterator iterator = mHistory.iterate(0, MonotonicClock.UNDEFINED); in recordProcStateChange()
DPowerStatsSchedulerTest.java35 import com.android.internal.os.MonotonicClock;
62 private MonotonicClock mMonotonicClock = new MonotonicClock(0, mClock);
DBinaryStatePowerStatsProcessorTest.java41 import com.android.internal.os.MonotonicClock;
60 private final MonotonicClock mMonotonicClock = new MonotonicClock(0, mClock);
DPowerStatsExporterTest.java40 import com.android.internal.os.MonotonicClock;
76 private MonotonicClock mMonotonicClock = new MonotonicClock(0, mClock);
DMockBatteryStatsImpl.java38 import com.android.internal.os.MonotonicClock;
82 super(config, clock, new MonotonicClock(0, clock), historyDirectory, handler, in MockBatteryStatsImpl()
DBatteryExternalStatsWorkerTest.java50 import com.android.internal.os.MonotonicClock;
81 new MonotonicClock(0, Clock.SYSTEM_CLOCK), null, in setUp()
DBatteryStatsNoteTest.java65 import com.android.internal.os.MonotonicClock;
286 bi.iterateBatteryStatsHistory(0, MonotonicClock.UNDEFINED); in testNoteLongPartialWakelockStart_isolatedUid()
344 bi.iterateBatteryStatsHistory(0, MonotonicClock.UNDEFINED); in testNoteLongPartialWakelockStart_isolatedUidRace()
959 bi.iterateBatteryStatsHistory(0, MonotonicClock.UNDEFINED); in testAlarmStartAndFinishLocked()
999 bi.iterateBatteryStatsHistory(0, MonotonicClock.UNDEFINED); in testAlarmStartAndFinishLocked_workSource()
/frameworks/base/libs/hwui/thread/
DWorkQueue.h33 struct MonotonicClock { struct
41 using clock = MonotonicClock; argument
/frameworks/base/ravenwood/texts/
Dravenwood-annotation-allowed-classes.txt19 com.android.internal.os.MonotonicClock
323 com.android.internal.os.MonotonicClock
/frameworks/base/core/java/android/os/
DBatteryUsageStats.java29 import com.android.internal.os.MonotonicClock;
328 return new BatteryStatsHistoryIterator(mBatteryStatsHistory, 0, MonotonicClock.UNDEFINED); in iterateBatteryStatsHistory()
DBatteryStats.java61 import com.android.internal.os.MonotonicClock;
7519 iterateBatteryStatsHistory(0, MonotonicClock.UNDEFINED)) { in dumpHistory()
8445 iterateBatteryStatsHistory(0, MonotonicClock.UNDEFINED)) { in dumpProtoHistoryLocked()
/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java109 import com.android.internal.os.MonotonicClock;
188 private final MonotonicClock mMonotonicClock;
412 mMonotonicClock = new MonotonicClock(new File(systemDir, "monotonic_clock.xml")); in BatteryStatsService()
/frameworks/base/services/
Dart-profile3146 …id/internal/os/Clock$1;]Lcom/android/internal/os/MonotonicClock;Lcom/android/internal/os/Monotonic…
Dart-wear-profile22074 …yStatsConfig;Lcom/android/internal/os/Clock;Lcom/android/internal/os/MonotonicClock;Ljava/io/File;…
22280 …armScheduler;Lcom/android/internal/os/Clock;Lcom/android/internal/os/MonotonicClock;Ljava/util/fun…