/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsSensorTest.java | 37 final MockClocks clocks = new MockClocks(); in testSensorStartStop() local 38 MockBatteryStatsImpl bi = new MockBatteryStatsImpl(clocks); in testSensorStartStop() 40 clocks.realtime = 100; in testSensorStartStop() 41 clocks.uptime = 100; in testSensorStartStop() 46 clocks.realtime = 200; in testSensorStartStop() 47 clocks.uptime = 200; in testSensorStartStop() 53 clocks.realtime = 400; in testSensorStartStop() 54 clocks.uptime = 400; in testSensorStartStop() 65 clocks.realtime * 1000, BatteryStats.STATS_SINCE_CHARGED)); in testSensorStartStop() 69 clocks.realtime * 1000, BatteryStats.STATS_SINCE_CHARGED)); in testSensorStartStop() [all …]
|
D | BatteryStatsBackgroundStatsTest.java | 41 final MockClocks clocks = new MockClocks(); // holds realtime and uptime in ms in testBgTimeBase() local 42 MockBatteryStatsImpl bi = new MockBatteryStatsImpl(clocks); in testBgTimeBase() 48 clocks.realtime = clocks.uptime = 10; in testBgTimeBase() 49 cur = clocks.realtime * 1000; in testBgTimeBase() 55 clocks.realtime = clocks.uptime = 100; in testBgTimeBase() 56 cur = clocks.realtime * 1000; in testBgTimeBase() 62 clocks.realtime = clocks.uptime = 201; in testBgTimeBase() 63 cur = clocks.realtime * 1000; in testBgTimeBase() 69 clocks.realtime = clocks.uptime = 303; in testBgTimeBase() 70 cur = clocks.realtime * 1000; in testBgTimeBase() [all …]
|
D | BatteryStatsStopwatchTimerTest.java | 34 final MockClocks clocks = new MockClocks(); // holds realtime and uptime in ms in testCount() local 36 timeBase.init(clocks.uptimeMillis(), clocks.elapsedRealtime()); in testCount() 37 final BatteryStatsImpl.StopwatchTimer timer = new BatteryStatsImpl.StopwatchTimer(clocks, in testCount() 42 timeBase.setRunning(false, 1000 * clocks.realtime, 1000 * clocks.realtime); in testCount() 45 timer.startRunningLocked(updateTime(clocks, 100)); // start in testCount() 48 timer.startRunningLocked(updateTime(clocks, 110)); // start in testCount() 50 timer.stopRunningLocked(updateTime(clocks, 120)); // stop in testCount() 52 timer.stopRunningLocked(updateTime(clocks, 130)); // stop in testCount() 56 timer.startRunningLocked(updateTime(clocks, 200)); // start in testCount() 57 timer.stopRunningLocked(updateTime(clocks, 200)); // stop in testCount() [all …]
|
D | BatteryStatsSamplingTimerTest.java | 32 final MockClocks clocks = new MockClocks(); in testSettingStalePreservesData() local 33 final BatteryStatsImpl.SamplingTimer timer = new BatteryStatsImpl.SamplingTimer(clocks, in testSettingStalePreservesData() 59 final MockClocks clocks = new MockClocks(); in testEndSampleAndContinueWhenTimeOrCountDecreases() local 61 final BatteryStatsImpl.SamplingTimer timer = new BatteryStatsImpl.SamplingTimer(clocks, in testEndSampleAndContinueWhenTimeOrCountDecreases() 102 final MockClocks clocks = new MockClocks(); in testFirstUpdateIsAbsorbed() local 105 BatteryStatsImpl.SamplingTimer timer = new BatteryStatsImpl.SamplingTimer(clocks, timeBase); in testFirstUpdateIsAbsorbed() 114 timer = new BatteryStatsImpl.SamplingTimer(clocks, timeBase); in testFirstUpdateIsAbsorbed() 141 final MockClocks clocks = new MockClocks(); in testSampleTimerSummaryParceling() local 142 clocks.realtime = 0; in testSampleTimerSummaryParceling() 143 clocks.uptime = 0; in testSampleTimerSummaryParceling() [all …]
|
D | BatteryStatsDualTimerTest.java | 32 final MockClocks clocks = new MockClocks(); in testResetDetach() local 33 clocks.realtime = clocks.uptime = 100; in testResetDetach() 36 timeBase.init(clocks.uptimeMillis(), clocks.elapsedRealtime()); in testResetDetach() 38 subTimeBase.init(clocks.uptimeMillis(), clocks.elapsedRealtime()); in testResetDetach() 40 final BatteryStatsImpl.DualTimer timer = new BatteryStatsImpl.DualTimer(clocks, in testResetDetach() 49 clocks.realtime = clocks.uptime = 200; in testResetDetach() 50 timer.startRunningLocked(clocks.realtime); in testResetDetach() 56 clocks.realtime = clocks.uptime = 300; in testResetDetach() 57 timer.stopRunningLocked(clocks.realtime); in testResetDetach()
|
D | BatteryStatsDurationTimerTest.java | 36 final MockClocks clocks = new MockClocks(); in testStartStop() local 39 timeBase.init(clocks.uptimeMillis(), clocks.elapsedRealtime()); in testStartStop() 41 final BatteryStatsImpl.DurationTimer timer = new BatteryStatsImpl.DurationTimer(clocks, in testStartStop() 108 final MockClocks clocks = new MockClocks(); in testReset() local 111 timeBase.init(clocks.uptimeMillis(), clocks.elapsedRealtime()); in testReset() 113 final BatteryStatsImpl.DurationTimer timer = new BatteryStatsImpl.DurationTimer(clocks, in testReset() 132 clocks.uptime = clocks.realtime = 24_200; in testReset() 144 final MockClocks clocks = new MockClocks(); in testResetAndDetach() local 147 timeBase.init(clocks.uptimeMillis(), clocks.elapsedRealtime()); in testResetAndDetach() 149 final BatteryStatsImpl.DurationTimer timer = new BatteryStatsImpl.DurationTimer(clocks, in testResetAndDetach() [all …]
|
D | BatteryStatsNoteTest.java | 90 final MockClocks clocks = new MockClocks(); // holds realtime and uptime in ms in testNoteStartWakeLocked() local 91 MockBatteryStatsImpl bi = new MockBatteryStatsImpl(clocks); in testNoteStartWakeLocked() 99 .noteStartWakeLocked(pid, name, WAKE_TYPE_PARTIAL, clocks.realtime); in testNoteStartWakeLocked() 101 clocks.realtime = clocks.uptime = 100; in testNoteStartWakeLocked() 104 clocks.realtime = clocks.uptime = 220; in testNoteStartWakeLocked() 105 bi.getUidStatsLocked(UID).noteStopWakeLocked(pid, name, WAKE_TYPE_PARTIAL, clocks.realtime); in testNoteStartWakeLocked() 121 final MockClocks clocks = new MockClocks(); in testNoteUidProcessStateLocked() local 122 MockBatteryStatsImpl bi = new MockBatteryStatsImpl(clocks); in testNoteUidProcessStateLocked() 146 clocks.realtime += entry.getValue(); in testNoteUidProcessStateLocked() 147 clocks.uptime = clocks.realtime; in testNoteUidProcessStateLocked() [all …]
|
D | BatteryStatsTimerTest.java | 44 TestTimer(Clocks clocks, int type, TimeBase timeBase, Parcel in) { in TestTimer() argument 45 super(clocks, type, timeBase, in); in TestTimer() 48 TestTimer(Clocks clocks, int type, TimeBase timeBase) { in TestTimer() argument 49 super(clocks, type, timeBase); in TestTimer() 93 MockClocks clocks = new MockClocks(); in testRunning() local 95 TestTimer timer = new TestTimer(clocks, 0, timeBase); in testRunning() 114 MockClocks clocks = new MockClocks(); in testParceling() local 117 TestTimer timer1 = new TestTimer(clocks, 0, timeBase); in testParceling() 130 TestTimer timer2 = new TestTimer(clocks, 0, timeBase, parcel); in testParceling() 159 MockClocks clocks = new MockClocks(); in testResetNoDetach() local [all …]
|
D | MockBatteryStatsImpl.java | 37 public BatteryStatsImpl.Clocks clocks; field in MockBatteryStatsImpl 40 MockBatteryStatsImpl(Clocks clocks) { in MockBatteryStatsImpl() argument 41 super(clocks); in MockBatteryStatsImpl() 42 this.clocks = mClocks; in MockBatteryStatsImpl() 43 mScreenOnTimer = new BatteryStatsImpl.StopwatchTimer(clocks, null, -1, null, in MockBatteryStatsImpl() 45 mScreenDozeTimer = new BatteryStatsImpl.StopwatchTimer(clocks, null, -1, null, in MockBatteryStatsImpl() 51 mGpsSignalQualityTimer[i] = new StopwatchTimer(clocks, null, -1000 - i, null, in MockBatteryStatsImpl()
|
D | BatteryStatsCounterTest.java | 33 final MockClocks clocks = new MockClocks(); // holds realtime and uptime in ms in testCounter() local 35 timeBase.init(clocks.uptimeMillis(), clocks.elapsedRealtime()); in testCounter() 73 final MockClocks clocks = new MockClocks(); // holds realtime and uptime in ms in testParceling() local 75 timeBase.init(clocks.uptimeMillis(), clocks.elapsedRealtime()); in testParceling()
|
D | BatteryStatsUidTest.java | 30 TestBsi(MockClocks clocks) { in TestBsi() argument 31 super(clocks); in TestBsi()
|
/frameworks/base/core/java/android/os/ |
D | BestClock.java | 38 private final Clock[] clocks; field in BestClock 40 public BestClock(ZoneId zone, Clock... clocks) { in BestClock() argument 42 this.clocks = clocks; in BestClock() 47 for (Clock clock : clocks) { in millis() 56 "No clocks in " + Arrays.toString(clocks) + " were able to provide time"); in millis()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/clock/ |
D | ClockOptionsProvider.java | 102 List<ClockInfo> clocks = mClocksSupplier.get(); in query() local 103 for (int i = 0; i < clocks.size(); i++) { in query() 104 ClockInfo clock = clocks.get(i); in query() 142 List<ClockInfo> clocks = mClocksSupplier.get(); in openFile() local 143 for (int i = 0; i < clocks.size(); i++) { in openFile() 144 if (id.equals(clocks.get(i).getId())) { in openFile() 145 clock = clocks.get(i); in openFile()
|
D | ClockManager.java | 245 mListeners.forEach((listener, clocks) -> { in reload() argument 246 clocks.reloadCurrentClock(); in reload() 247 final ClockPlugin clock = clocks.getCurrentClock(); in reload()
|
/frameworks/av/media/tests/benchmark/src/native/common/utils/ |
D | Timers.cpp | 30 static const clockid_t clocks[] = {CLOCK_REALTIME, CLOCK_MONOTONIC, CLOCK_PROCESS_CPUTIME_ID, in systemTime() local 34 clock_gettime(clocks[clock], &t); in systemTime()
|
/frameworks/rs/ |
D | rsCppUtils.h | 72 static const clockid_t clocks[] = { in systemTime() local 80 clock_gettime(clocks[clock], &t); in systemTime()
|
/frameworks/native/cmds/flatland/ |
D | README.txt | 20 Additionally, all relevant hardware clocks should be locked at a particular 22 memory bus clocks. Running flatland with dynamic clocking essentially 26 If running the benchmark with the clocks locked causes thermal issues, the -s
|
/frameworks/base/packages/SystemUI/docs/ |
D | clock-plugins.md | 17 To prevent screen burn-in, clocks should not be composed of large solid
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BatteryStatsImpl.java | 1094 public BatteryStatsImpl(Clocks clocks) { in BatteryStatsImpl() argument 1095 init(clocks); in BatteryStatsImpl() 1108 private void init(Clocks clocks) { in init() argument 1109 mClocks = clocks; in init() 1677 public Timer(Clocks clocks, int type, TimeBase timeBase, Parcel in) { in Timer() argument 1678 mClocks = clocks; in Timer() 1689 public Timer(Clocks clocks, int type, TimeBase timeBase) { in Timer() argument 1690 mClocks = clocks; in Timer() 1853 public SamplingTimer(Clocks clocks, TimeBase timeBase, Parcel in) { in SamplingTimer() argument 1854 super(clocks, 0, timeBase, in); in SamplingTimer() [all …]
|