/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/power/stats/ |
H A D | BatteryStatsSensorTest.java | 41 clocks.realtime = 100; in testSensorStartStop() 47 clocks.realtime = 200; in testSensorStartStop() 54 clocks.realtime = 400; in testSensorStartStop() 383 clocks.realtime = 100; in testSensorReset() 388 clocks.realtime += 100; in testSensorReset() 393 clocks.realtime += 100; in testSensorReset() 438 clocks.realtime += 100; in testSensorResetTimes() 445 clocks.realtime += 100; in testSensorResetTimes() 451 clocks.realtime += 100; in testSensorResetTimes() 463 clocks.realtime += 100; in testSensorResetTimes() [all …]
|
H A D | BatteryStatsBackgroundStatsTest.java | 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() 70 cur = clocks.realtime * 1000; in testBgTimeBase() 78 cur = clocks.realtime * 1000; in testBgTimeBase() 85 cur = clocks.realtime * 1000; in testBgTimeBase() 92 cur = clocks.realtime * 1000; in testBgTimeBase() [all …]
|
H A D | BatteryStatsStopwatchTimerTest.java | 42 timeBase.setRunning(false, 1000 * clocks.realtime, 1000 * clocks.realtime); in testCount() 83 timeBase.setRunning(true, 1000 * clocks.realtime, 1000 * clocks.realtime); in testCount() 124 timeBase.setRunning(false, 1000 * clocks.realtime, 1000 * clocks.realtime); in testCount() 130 timeBase.setRunning(true, 1000 * clocks.realtime, 1000 * clocks.realtime); in testCount() 140 timeBase.setRunning(false, 1000 * clocks.realtime, 1000 * clocks.realtime); in testCount() 146 return clocks.realtime = clocks.uptime = time; in updateTime()
|
H A D | BatteryStatsDualTimerTest.java | 33 clocks.realtime = clocks.uptime = 100; 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()
|
H A D | BatteryStatsNoteTest.java | 1134 clocks.realtime = 0; in testUpdateDisplayMeasuredEnergyStatsLocked() 1151 clocks.realtime += 17; in testUpdateDisplayMeasuredEnergyStatsLocked() 1155 clocks.realtime += 19; in testUpdateDisplayMeasuredEnergyStatsLocked() 1160 clocks.realtime += 18; in testUpdateDisplayMeasuredEnergyStatsLocked() 1162 clocks.realtime += 18; in testUpdateDisplayMeasuredEnergyStatsLocked() 1167 clocks.realtime += 17; in testUpdateDisplayMeasuredEnergyStatsLocked() 1198 clocks.realtime += 5; in testUpdateDisplayMeasuredEnergyStatsLocked() 1205 clocks.realtime += 6; in testUpdateDisplayMeasuredEnergyStatsLocked() 2252 clocks.realtime = clocks.uptime = clocks.realtime + (long) (rateLimit * 0.7); in testNoteMobileRadioPowerStateLocked_rateLimited() 2262 clocks.realtime = clocks.uptime = clocks.realtime + (long) (rateLimit * 0.7); in testNoteMobileRadioPowerStateLocked_rateLimited() [all …]
|
H A D | BatteryUsageStatsStoreTest.java | 82 mMockClock.realtime = 1000; in testStoreSnapshot() 87 mMockClock.realtime = 1_000_000; in testStoreSnapshot() 111 mMockClock.realtime = 10_000_000; in testGarbageCollectOldSnapshots() 121 mMockClock.realtime += 10_000_000; in testGarbageCollectOldSnapshots() 141 mMockClock.realtime += 10_000_000; in testRemoveAllSnapshots() 169 mMockClock.realtime, mMockClock.uptime, mMockClock.currentTime); in prepareBatteryStats() 172 mMockClock.realtime + 500_000, mMockClock.uptime + 500_000, in prepareBatteryStats()
|
H A D | BatteryStatsImplTest.java | 118 mMockClock.realtime = 1000; in testUpdateProcStateCpuTimes() 144 mMockClock.realtime += 1000; in testUpdateProcStateCpuTimes() 174 mMockClock.realtime += 1000; in testUpdateProcStateCpuTimes() 215 mMockClock.realtime += 1000; in testUpdateProcStateCpuTimes() 258 mMockClock.realtime += 1000; in testUpdateProcStateCpuTimes() 308 mMockClock.realtime = 1000; in testUpdateCpuTimesForAllUids() 519 mMockClock.realtime = 1000; in testGetWakeLockStats() 523 mMockClock.realtime = 3000; in testGetWakeLockStats() 528 mMockClock.realtime = 4000; in testGetWakeLockStats() 532 mMockClock.realtime = 5000; in testGetWakeLockStats() [all …]
|
H A D | MockClock.java | 23 public long realtime; field in MockClock 31 return realtime; in elapsedRealtime()
|
H A D | BatteryStatsHistoryTest.java | 380 mClock.realtime = 2_000_000; in largeTagPool() 385 mClock.realtime += 10; in largeTagPool() 387 mHistory.recordEvent(mClock.realtime, mClock.uptime, HistoryItem.EVENT_ALARM_START, in largeTagPool() 391 mClock.realtime += 10; in largeTagPool() 393 mHistory.recordWakelockStartEvent(mClock.realtime, mClock.uptime, "w" + tag, 42); in largeTagPool() 394 mClock.realtime += 10; in largeTagPool() 396 mHistory.recordWakelockStopEvent(mClock.realtime, mClock.uptime, "w" + tag, 42); in largeTagPool() 399 mHistory.recordWakeupEvent(mClock.realtime, mClock.uptime, "wr" + (tag++)); in largeTagPool()
|
H A D | BatteryStatsTimeBaseTest.java | 41 public void populate(long uptime, long realtime, boolean running, long pastUptime, in populate() argument 45 mRealtimeUs = realtime; in populate() 55 public void verify(long uptime, long realtime, boolean running, long pastUptime, in verify() argument 59 Assert.assertEquals(realtime, mRealtimeUs); in verify()
|
H A D | BatteryStatsDurationTimerTest.java | 132 clocks.uptime = clocks.realtime = 24_200; in testReset() 161 clocks.uptime = clocks.realtime = 7_000; in testResetAndDetach() 180 clocks.realtime = 100; in testParceling()
|
H A D | BatteryStatsCpuTimesTest.java | 1044 mClocks.realtime = 1000; in testReadKernelUidCpuActiveTimesLocked() 1079 mClocks.realtime = 2000; in testReadKernelUidCpuActiveTimesLocked() 1105 mClocks.realtime = 3000; in testReadKernelUidCpuActiveTimesLocked() 1136 mClocks.realtime = 1000; in testReadKernelUidCpuActiveTimesLocked_invalidUid() 1168 mClocks.realtime = 2000; in testReadKernelUidCpuActiveTimesLocked_invalidUid() 1316 mClocks.realtime = mClocks.uptime = 0; in testRemoveUidCpuTimes() 1324 mClocks.realtime = mClocks.uptime = 100_000; in testRemoveUidCpuTimes() 1328 mClocks.realtime = mClocks.uptime = 200_000; in testRemoveUidCpuTimes() 1334 mClocks.realtime = mClocks.uptime = 400_000; in testRemoveUidCpuTimes() 1346 mClocks.realtime = mClocks.uptime = 800_000; in testRemoveUidCpuTimes()
|
H A D | BatteryStatsSamplingTimerTest.java | 150 clocks.realtime = 0; in testSampleTimerSummaryParceling() 168 clocks.realtime = 20; in testSampleTimerSummaryParceling()
|
H A D | BatteryUsageStatsRule.java | 206 mMockClock.realtime = realtimeMs; 235 calculator.calculate(builder, mBatteryStats, mMockClock.realtime * 1000,
|
H A D | BatteryStatsResetTest.java | 348 mMockClock.realtime += milliseconds; in incTimeMs()
|
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
H A D | MockClock.java | 21 public long realtime; field in MockClock 29 return realtime; in elapsedRealtime()
|
H A D | KernelCpuUidUserSysTimeReaderTest.java | 93 mMockClock.realtime = 1000; in testThrottler() 111 mMockClock.realtime += 600; in testThrottler() 130 mMockClock.realtime += 600; in testThrottler() 145 mMockClock.realtime += 600; in testThrottler()
|
/aosp14/frameworks/base/core/proto/android/util/ |
H A D | quotatracker.proto | 34 // Current elapsed realtime. 40 // The time at which the alarm is set to go off, in the elapsed realtime timebase. 48 // The time at which the UPTC will be in quota, in the elapsed realtime timebase. 96 // The time the event occurred, in the elapsed realtime timebase. 104 // elapsed realtime timebase.
|
/aosp14/frameworks/base/core/proto/android/server/alarm/ |
H A D | alarmmanagerservice.proto | 185 // Start time in terms of elapsed realtime. 187 // End time in terms of elapsed realtime. 204 // in terms of elapsed realtime. 237 // The last time this filter when in flight, in terms of elapsed realtime. 244 // in terms of elapsed realtime. 260 // Time when this entry was created, in terms of elapsed realtime.
|
/aosp14/frameworks/base/core/proto/android/service/ |
H A D | procstats.proto | 51 // Elapsed realtime at start of report. 54 // Elapsed realtime at end of report. 127 // Millisecond elapsed realtime duration spent in this state 221 // Millisecond elapsed realtime duration spent in this state 267 // Millisecond elapsed realtime duration spent in this state
|
/aosp14/system/core/libstats/push_compat/ |
H A D | statsd_writer.c | 192 header.realtime.tv_sec = ts->tv_sec; in statsdWrite() 193 header.realtime.tv_nsec = ts->tv_nsec; in statsdWrite()
|
/aosp14/frameworks/base/core/proto/android/view/inputmethod/ |
H A D | inputmethodeditortrace.proto | 61 /* required: elapsed realtime in nanos since boot of when this entry was logged */ 111 /* required: elapsed realtime in nanos since boot of when this entry was logged */ 148 /* required: elapsed realtime in nanos since boot of when this entry was logged */
|
/aosp14/frameworks/base/core/proto/android/server/ |
H A D | windowmanagertrace.proto | 49 /* required: elapsed realtime in nanos since boot of when this entry was logged */
|
H A D | jobscheduler.proto | 610 // The time at which the alarm should go off, in the elapsed realtime timebase. Only 621 // elapsed realtime timebase. 654 // in the elapsed realtime timebase. 661 // considered valid before elapsed realtime has reached 666 // invalid, in the elapsed realtime timebase. 673 // valid before elapsed realtime has reached session_count_expiration_time_elapsed. 749 // The time at which the alarm is set to go off, in the elapsed realtime timebase. 757 // The time at which the package will be in quota, in the elapsed realtime timebase. 1086 // The original latest runtime value, in the elapsed realtime timebase. Valid only for periodic
|
H A D | accessibilitytrace.proto | 50 /* required: elapsed realtime in nanos since boot of when this entry was logged */
|