/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/power/stats/ |
H A D | BatteryStatsSensorTest.java | 42 clocks.uptime = 100; in testSensorStartStop() 48 clocks.uptime = 200; in testSensorStartStop() 55 clocks.uptime = 400; in testSensorStartStop() 384 clocks.uptime = 100; in testSensorReset() 389 clocks.uptime += 100; in testSensorReset() 394 clocks.uptime += 100; in testSensorReset() 439 clocks.uptime += 100; in testSensorResetTimes() 446 clocks.uptime += 100; in testSensorResetTimes() 452 clocks.uptime += 100; in testSensorResetTimes() 464 clocks.uptime += 100; in testSensorResetTimes() [all …]
|
H A D | BatteryStatsBackgroundStatsTest.java | 48 clocks.realtime = clocks.uptime = 10; in testBgTimeBase() 55 clocks.realtime = clocks.uptime = 100; in testBgTimeBase() 62 clocks.realtime = clocks.uptime = 201; in testBgTimeBase() 69 clocks.realtime = clocks.uptime = 303; in testBgTimeBase() 77 clocks.realtime = clocks.uptime = 409; in testBgTimeBase() 84 clocks.realtime = clocks.uptime = 417; in testBgTimeBase() 91 clocks.realtime = clocks.uptime = 530; in testBgTimeBase() 99 clocks.realtime = clocks.uptime = 690; in testBgTimeBase() 116 cur = (clocks.realtime = clocks.uptime = 100) * 1000; in testScreenOffBgTimeBase() 122 cur = (clocks.realtime = clocks.uptime = 200) * 1000; in testScreenOffBgTimeBase() [all …]
|
H A D | BatteryUsageStatsStoreTest.java | 83 mMockClock.uptime = 1000; in testStoreSnapshot() 88 mMockClock.uptime = 1_000_000; in testStoreSnapshot() 112 mMockClock.uptime = 10_000_000; in testGarbageCollectOldSnapshots() 122 mMockClock.uptime += 10_000_000; in testGarbageCollectOldSnapshots() 142 mMockClock.uptime += 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 | BatteryStatsDualTimerTest.java | 33 clocks.realtime = clocks.uptime = 100; in testResetDetach() 49 clocks.realtime = clocks.uptime = 200; in testResetDetach() 56 clocks.realtime = clocks.uptime = 300; in testResetDetach()
|
H A D | MockClock.java | 25 public long uptime; field in MockClock 36 return uptime; in uptimeMillis()
|
H A D | BatteryStatsNoteTest.java | 138 clocks.realtime = clocks.uptime = 100; in testNoteStartWakeLocked() 141 clocks.realtime = clocks.uptime = 220; in testNoteStartWakeLocked() 175 clocks.realtime = clocks.uptime = 100; in testNoteStartWakeLocked_isolatedUid() 178 clocks.realtime = clocks.uptime = 220; in testNoteStartWakeLocked_isolatedUid() 215 clocks.realtime = clocks.uptime = 100; in testNoteStartWakeLocked_isolatedUidRace() 218 clocks.realtime = clocks.uptime = 150; in testNoteStartWakeLocked_isolatedUidRace() 221 clocks.realtime = clocks.uptime = 220; in testNoteStartWakeLocked_isolatedUidRace() 260 clocks.realtime = clocks.uptime = 100; in testNoteLongPartialWakelockStart_isolatedUid() 263 clocks.realtime = clocks.uptime = 220; in testNoteLongPartialWakelockStart_isolatedUid() 313 clocks.realtime = clocks.uptime = 100; in testNoteLongPartialWakelockStart_isolatedUidRace() [all …]
|
H A D | BatteryStatsImplTest.java | 119 mMockClock.uptime = 1000; in testUpdateProcStateCpuTimes() 145 mMockClock.uptime += 1000; in testUpdateProcStateCpuTimes() 150 mMockClock.realtime, mMockClock.uptime); in testUpdateProcStateCpuTimes() 175 mMockClock.uptime += 1000; in testUpdateProcStateCpuTimes() 184 mMockClock.realtime, mMockClock.uptime); in testUpdateProcStateCpuTimes() 216 mMockClock.uptime += 1000; in testUpdateProcStateCpuTimes() 225 mMockClock.realtime, mMockClock.uptime); in testUpdateProcStateCpuTimes() 259 mMockClock.uptime += 1000; in testUpdateProcStateCpuTimes() 274 mMockClock.realtime, mMockClock.uptime); in testUpdateProcStateCpuTimes() 309 mMockClock.uptime = 1000; in testUpdateCpuTimesForAllUids() [all …]
|
H A D | BatteryStatsHistoryTest.java | 381 mClock.uptime = 1_000_000; in largeTagPool() 386 mClock.uptime += 10; in largeTagPool() 387 mHistory.recordEvent(mClock.realtime, mClock.uptime, HistoryItem.EVENT_ALARM_START, in largeTagPool() 392 mClock.uptime += 10; in largeTagPool() 393 mHistory.recordWakelockStartEvent(mClock.realtime, mClock.uptime, "w" + tag, 42); in largeTagPool() 395 mClock.uptime += 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 44 mUptimeUs = uptime; in populate() 55 public void verify(long uptime, long realtime, boolean running, long pastUptime, in verify() argument 58 Assert.assertEquals(uptime, mUptimeUs); 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() 181 clocks.uptime = 10; in testParceling()
|
/aosp14/frameworks/base/services/core/java/com/android/server/am/ |
H A D | BatteryStatsService.java | 658 elapsedRealtime, uptime); in onLowPowerModeChanged() 1069 elapsedRealtime, uptime); in noteJobsDeferred() 1085 elapsedRealtime, uptime); in noteWakupAlarm() 1149 elapsedRealtime, uptime); in noteStopWakelock() 1210 elapsedRealtime, uptime); in noteStopWakelockFromSource() 1228 elapsedRealtime, uptime); in noteLongPartialWakelockStart() 1247 elapsedRealtime, uptime); in noteLongPartialWakelockStartFromSource() 1265 elapsedRealtime, uptime); in noteLongPartialWakelockFinish() 1284 elapsedRealtime, uptime); in noteLongPartialWakelockFinishFromSource() 1532 elapsedRealtime, uptime); in noteMobileRadioPowerState() [all …]
|
/aosp14/system/core/bootstat/ |
H A D | boot_event_record_store.cpp | 40 bool ParseRecordEventTime(const std::string& path, int32_t* uptime) { in ParseRecordEventTime() argument 41 DCHECK_NE(static_cast<int32_t*>(nullptr), uptime); in ParseRecordEventTime() 49 *uptime = file_stat.st_mtime; in ParseRecordEventTime() 61 auto uptime = std::chrono::duration_cast<std::chrono::seconds>( in AddBootEvent() local 63 AddBootEventWithValue(event, uptime.count()); in AddBootEvent() 103 int32_t uptime; in GetBootEvent() local 104 if (!ParseRecordEventTime(record_path, &uptime)) { in GetBootEvent() 109 *record = std::make_pair(event, uptime); in GetBootEvent()
|
H A D | boot_event_record_store_test.cpp | 134 time_t uptime = GetUptimeSeconds(); in TEST_F() local 135 ASSERT_NE(-1, uptime); in TEST_F() 142 EXPECT_TRUE(FuzzUptimeEquals(uptime, events[0].second)); in TEST_F() 149 time_t uptime = GetUptimeSeconds(); in TEST_F() local 150 ASSERT_NE(-1, uptime); in TEST_F() 173 EXPECT_TRUE(FuzzUptimeEquals(uptime, *i)); in TEST_F()
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | SilentUpdatePolicy.java | 89 final long uptime = SystemClock.uptimeMillis(); in track() local 90 pruneLocked(uptime); in track() 93 mSilentUpdateInfos.put(key, uptime); in track() 124 private void pruneLocked(long uptime) { in pruneLocked() argument 128 if (uptime - lastSilentUpdatedMs > mSilentUpdateThrottleTimeMs) { in pruneLocked()
|
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
H A D | MockClock.java | 23 public long uptime; field in MockClock 34 return uptime; in uptimeMillis()
|
/aosp14/system/core/libutils/include/utils/ |
H A D | Looper.h | 374 void sendMessageAtTime(nsecs_t uptime, const sp<MessageHandler>& handler, 444 MessageEnvelope() : uptime(0) { } in MessageEnvelope() 447 : uptime(u), handler(std::move(h)), message(m) {} in MessageEnvelope() 449 nsecs_t uptime; member
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/util/concurrency/ |
H A D | DelayableExecutor.java | 53 default Runnable executeAtTime(Runnable r, long uptime) { in executeAtTime() argument 54 return executeAtTime(r, uptime, TimeUnit.MILLISECONDS); in executeAtTime()
|
/aosp14/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/time/ |
H A D | FakeSystemClock.java | 66 public void setUptimeMillis(long uptime) { in setUptimeMillis() argument 67 advanceTime(uptime - mUptimeMillis); in setUptimeMillis()
|
/aosp14/system/core/libutils/ |
H A D | Looper.cpp | 321 if (messageEnvelope.uptime <= now) { in pollInner() 345 mNextMessageUptime = messageEnvelope.uptime; in pollInner() 594 void Looper::sendMessageAtTime(nsecs_t uptime, const sp<MessageHandler>& handler, in sendMessageAtTime() argument 598 this, uptime, handler.get(), message.what); in sendMessageAtTime() 606 while (i < messageCount && uptime >= mMessageEnvelopes.itemAt(i).uptime) { in sendMessageAtTime() 610 MessageEnvelope messageEnvelope(uptime, handler, message); in sendMessageAtTime()
|
/aosp14/frameworks/base/core/proto/android/service/ |
H A D | procstats.proto | 57 // CPU uptime at start of report. 60 // CPU uptime at end of report. 122 // Millisecond uptime duration spent in this state 253 // Millisecond uptime total duration this association was around. 265 // Millisecond uptime duration spent in this state 283 // Millisecond uptime total duration this association was around. 289 // Millisecond uptime total duration this association was around.
|
/aosp14/system/core/shell_and_utilities/ |
H A D | README.md | 70 uniq unix2dos unlink unshare uptime usleep uudecode uuencode uuidgen 104 uniq unix2dos unlink unshare uptime usleep uudecode uuencode uuidgen 138 unlink unshare uptime usleep uudecode uuencode uuidgen vconfig vi 171 tty tunctl ulimit umount uname uniq unix2dos unlink unshare uptime 231 umount uname uniq unix2dos uptime usleep uudecode uuencode vmstat wc 279 **uptime** usleep vmstat wc which whoami xargs **xxd** yes 312 top touch umount uptime vmstat watchprops wipe 324 stop swapoff swapon sync top touch umount uptime vmstat watchprops wipe 336 sync top touch umount uptime vmstat watchprops wipe 347 touch umount uptime vmstat watchprops wipe [all …]
|
/aosp14/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/concurrency/ |
H A D | FakeExecutor.java | 153 public Runnable executeAtTime(Runnable r, long uptime, TimeUnit unit) { in executeAtTime() argument 154 long uptimeMillis = unit.toMillis(uptime); in executeAtTime()
|
/aosp14/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | WindowChangeAnimationSpec.java | 168 long uptime = SystemClock.uptimeMillis(); in calculateStatusBarTransitionStartTime() local 169 return Math.max(uptime, uptime + ((long) (((float) mAnimation.getDuration()) * 0.99f)) in calculateStatusBarTransitionStartTime()
|
/aosp14/system/core/init/ |
H A D | bootchart.cpp | 56 boot_clock::time_point uptime = boot_clock::now(); in get_uptime_jiffies() local 57 return uptime.time_since_epoch().count() / kNanosecondsPerJiffy; in get_uptime_jiffies()
|
/aosp14/frameworks/base/services/core/java/com/android/server/power/stats/ |
H A D | BatteryExternalStatsWorker.java | 671 final long uptime = SystemClock.uptimeMillis(); 673 final long uptimeUs = uptime * 1000; 679 uptime, 685 mStats.recordEnergyConsumerDetailsLocked(elapsedRealtime, uptime, 750 btChargeUC, elapsedRealtime, uptime); 768 wifiChargeUC, elapsedRealtime, uptime, networkStatsManager); 780 uptime, networkStatsManager);
|