/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/ |
D | BatteryStatsSensorTest.java | 54 clocks.uptime = 100; in testSensorStartStop() 60 clocks.uptime = 200; in testSensorStartStop() 67 clocks.uptime = 400; in testSensorStartStop() 92 curr = 1000 * (clocks.realtime = clocks.uptime = 100); in testCountingWhileOffBattery() 97 curr = 1000 * (clocks.realtime = clocks.uptime = 200); in testCountingWhileOffBattery() 101 curr = 1000 * (clocks.realtime = clocks.uptime = 215); in testCountingWhileOffBattery() 109 curr = 1000 * (clocks.realtime = clocks.uptime = 550); in testCountingWhileOffBattery() 113 curr = 1000 * (clocks.realtime = clocks.uptime = 678); in testCountingWhileOffBattery() 128 curr = 1000 * (clocks.realtime = clocks.uptime = 100); in testCountingWhileOnBattery() 132 curr = 1000 * (clocks.realtime = clocks.uptime = 200); in testCountingWhileOnBattery() [all …]
|
D | BatteryStatsBackgroundStatsTest.java | 60 clocks.realtime = clocks.uptime = 10; in testBgTimeBase() 67 clocks.realtime = clocks.uptime = 100; in testBgTimeBase() 74 clocks.realtime = clocks.uptime = 201; in testBgTimeBase() 81 clocks.realtime = clocks.uptime = 303; in testBgTimeBase() 89 clocks.realtime = clocks.uptime = 409; in testBgTimeBase() 96 clocks.realtime = clocks.uptime = 417; in testBgTimeBase() 103 clocks.realtime = clocks.uptime = 530; in testBgTimeBase() 111 clocks.realtime = clocks.uptime = 690; in testBgTimeBase() 129 cur = (clocks.realtime = clocks.uptime = 100) * 1000; in testScreenOffBgTimeBase() 135 cur = (clocks.realtime = clocks.uptime = 200) * 1000; in testScreenOffBgTimeBase() [all …]
|
D | PowerStatsAggregatorTest.java | 88 mHistory.recordPowerStats(mClock.realtime, mClock.uptime, powerStats); in stateUpdates() 90 mHistory.recordBatteryState(mClock.realtime, mClock.uptime, 10, /* plugged */ true); in stateUpdates() 91 mHistory.recordStateStartEvent(mClock.realtime, mClock.uptime, in stateUpdates() 93 mHistory.recordProcessStateChange(mClock.realtime, mClock.uptime, TEST_UID, in stateUpdates() 100 mHistory.recordPowerStats(mClock.realtime, mClock.uptime, powerStats); in stateUpdates() 102 mHistory.recordBatteryState(mClock.realtime, mClock.uptime, 90, /* plugged */ false); in stateUpdates() 103 mHistory.recordStateStopEvent(mClock.realtime, mClock.uptime, in stateUpdates() 108 mHistory.recordProcessStateChange(mClock.realtime, mClock.uptime, TEST_UID, in stateUpdates() 114 mHistory.recordCurrentTimeChange(mClock.realtime, mClock.uptime, mClock.currentTime); in stateUpdates() 120 mHistory.recordPowerStats(mClock.realtime, mClock.uptime, powerStats); in stateUpdates() [all …]
|
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()
|
D | MockClock.java | 25 public long uptime; field in MockClock 36 return uptime; in uptimeMillis()
|
D | BatteryStatsHistoryIteratorTest.java | 139 mMockClock.uptime = 1000; in prepareHistory() 167 mMockClock.uptime = 1_000_000; in tagsLongHistory() 171 mMockClock.uptime, mMockClock.currentTime); in tagsLongHistory() 180 mMockClock.uptime += 1_000_000; in tagsLongHistory() 182 mMockClock.realtime, mMockClock.uptime); in tagsLongHistory() 185 mMockClock.uptime += 500_000; in tagsLongHistory() 187 mMockClock.realtime, mMockClock.uptime); in tagsLongHistory() 336 public void updateCpuStats(int totalUTimeMs, long elapsedRealtime, long uptime) { in updateCpuStats() argument 338 mBatteryStats.recordHistoryEventLocked(elapsedRealtime, uptime, in updateCpuStats()
|
D | BatteryStatsNoteTest.java | 152 clocks.realtime = clocks.uptime = 100; in testNoteStartWakeLocked() 155 clocks.realtime = clocks.uptime = 220; in testNoteStartWakeLocked() 191 clocks.realtime = clocks.uptime = 100; in testNoteStartWakeLocked_isolatedUid() 194 clocks.realtime = clocks.uptime = 220; in testNoteStartWakeLocked_isolatedUid() 233 clocks.realtime = clocks.uptime = 100; in testNoteStartWakeLocked_isolatedUidRace() 236 clocks.realtime = clocks.uptime = 150; in testNoteStartWakeLocked_isolatedUidRace() 239 clocks.realtime = clocks.uptime = 220; in testNoteStartWakeLocked_isolatedUidRace() 279 clocks.realtime = clocks.uptime = 100; in testNoteLongPartialWakelockStart_isolatedUid() 282 clocks.realtime = clocks.uptime = 220; in testNoteLongPartialWakelockStart_isolatedUid() 334 clocks.realtime = clocks.uptime = 100; in testNoteLongPartialWakelockStart_isolatedUidRace() [all …]
|
D | BatteryStatsHistoryTest.java | 351 mClock.uptime = 1000; in prepareMultiFileHistory() 352 mHistory.recordEvent(mClock.realtime, mClock.uptime, in prepareMultiFileHistory() 358 mClock.uptime = 2000; in prepareMultiFileHistory() 359 mHistory.recordEvent(mClock.realtime, mClock.uptime, in prepareMultiFileHistory() 365 mClock.uptime = 3000; in prepareMultiFileHistory() 366 mHistory.recordEvent(mClock.realtime, mClock.uptime, in prepareMultiFileHistory() 542 mClock.uptime = 1_000_000; in largeTagPool() 547 mClock.uptime += 10; in largeTagPool() 548 mHistory.recordEvent(mClock.realtime, mClock.uptime, HistoryItem.EVENT_ALARM_START, in largeTagPool() 553 mClock.uptime += 10; in largeTagPool() [all …]
|
D | BatteryStatsImplTest.java | 180 mMockClock.uptime = 1000; in testUpdateProcStateCpuTimes() 206 mMockClock.uptime += 1000; in testUpdateProcStateCpuTimes() 211 mMockClock.realtime, mMockClock.uptime); in testUpdateProcStateCpuTimes() 236 mMockClock.uptime += 1000; in testUpdateProcStateCpuTimes() 245 mMockClock.realtime, mMockClock.uptime); in testUpdateProcStateCpuTimes() 266 mBatteryStatsImpl.updateTimeBasesLocked(true, Display.STATE_OFF, mMockClock.uptime * 1000, in testUpdateProcStateCpuTimes() 277 mMockClock.uptime += 1000; in testUpdateProcStateCpuTimes() 286 mMockClock.realtime, mMockClock.uptime); in testUpdateProcStateCpuTimes() 320 mMockClock.uptime += 1000; in testUpdateProcStateCpuTimes() 335 mMockClock.realtime, mMockClock.uptime); in testUpdateProcStateCpuTimes() [all …]
|
D | PowerStatsCollectorTest.java | 83 mMockClock.uptime = 1000; in throttlePeriod() 89 mMockClock.uptime += 1000; in throttlePeriod() 97 mMockClock.uptime += 100_000; in throttlePeriod()
|
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()
|
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()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BatteryStatsService.java | 877 final long uptime = SystemClock.uptimeMillis(); in onLowPowerModeChanged() local 881 elapsedRealtime, uptime); in onLowPowerModeChanged() 962 final long uptime = SystemClock.uptimeMillis(); in noteProcessStart() local 965 mStats.noteProcessStartLocked(name, uid, elapsedRealtime, uptime); in noteProcessStart() 976 final long uptime = SystemClock.uptimeMillis(); in noteProcessCrash() local 979 mStats.noteProcessCrashLocked(name, uid, elapsedRealtime, uptime); in noteProcessCrash() 990 final long uptime = SystemClock.uptimeMillis(); in noteProcessAnr() local 993 mStats.noteProcessAnrLocked(name, uid, elapsedRealtime, uptime); in noteProcessAnr() 1002 final long uptime = SystemClock.uptimeMillis(); in noteProcessFinish() local 1005 mStats.noteProcessFinishLocked(name, uid, elapsedRealtime, uptime); in noteProcessFinish() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | ClientWakelockTracker.java | 40 long uptime = SystemClock.uptimeMillis(); in startTracking() local 41 client.startAttributingWakelock(requestId, token, numRequestsInQueue, uptime); in startTracking() 42 updateConcurrentRequests(numRequestsInQueue, uptime); in startTracking() 53 long uptime = SystemClock.uptimeMillis(); in stopTracking() local 54 client.stopAttributingWakelock(requestId, token, uptime); in stopTracking() 60 updateConcurrentRequests(numRequestsInQueue, uptime); in stopTracking() 65 long uptime = SystemClock.uptimeMillis(); in stopTrackingAll() local 68 client.stopAllPendingRequests(uptime); in stopTrackingAll() 76 long uptime = SystemClock.uptimeMillis(); in getClientRequestStats() local 81 client.updatePendingRequestWakelockTime(uptime); in getClientRequestStats()
|
D | ClientWakelockAccountant.java | 92 public synchronized long updatePendingRequestWakelockTime(long uptime) { in updatePendingRequestWakelockTime() argument 96 wlInfo.updateTime(uptime); in updatePendingRequestWakelockTime()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
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()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | MockClock.java | 23 public long uptime; field in MockClock 34 return uptime; in uptimeMillis()
|
/frameworks/rs/script_api/ |
D | rs_time.spec | 90 summary: System uptime in milliseconds 92 Returns the current system clock (uptime) in milliseconds. 98 summary: System uptime in nanoseconds 100 Returns the current system clock (uptime) in nanoseconds.
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/concurrency/ |
D | DelayableExecutor.java | 53 default Runnable executeAtTime(Runnable r, long uptime) { in executeAtTime() argument 54 return executeAtTime(r, uptime, TimeUnit.MILLISECONDS); in executeAtTime()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/satellite/data/prod/ |
D | DeviceBasedSatelliteRepositoryImplTest.kt | 336 uptime = MIN_UPTIME, in satelliteProvisioned_notSupported_defaultFalse() 349 uptime = MIN_UPTIME, in satelliteProvisioned_supported_defaultFalse() 447 uptime = MIN_UPTIME, in satelliteProvisioned_supported_provisioned_queriesInitialStateBeforeCallbacks() 469 uptime = MIN_UPTIME, in satelliteProvisioned_supported_notProvisioned_queriesInitialStateBeforeCallbacks() 491 uptime = MIN_UPTIME, in satelliteProvisioned_supported_notInitiallyProvisioned_tracksCallback() 517 uptime = MIN_UPTIME, in satelliteProvisioned_supported_tracksCallback_reRegistersOnCrash() 559 uptime = MIN_UPTIME, in satelliteNotSupported_listenersAreNotRegistered() 589 uptime = MIN_UPTIME, in satelliteNotSupported_registersCallbackForStateChanges() 649 uptime = MIN_UPTIME, in satelliteNotSupported_supportShowsUp_registersListeners() 682 uptime = 100, in repoDoesNotCheckForSupportUntilMinUptime() [all …]
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/time/ |
D | FakeSystemClock.java | 66 public void setUptimeMillis(long uptime) { in setUptimeMillis() argument 67 advanceTime(uptime - mUptimeMillis); in setUptimeMillis()
|
/frameworks/base/core/proto/android/service/ |
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.
|
/frameworks/rs/script_api/include/ |
D | rs_time.rsh | 105 * rsUptimeMillis: System uptime in milliseconds 107 * Returns the current system clock (uptime) in milliseconds. 115 * rsUptimeNanos: System uptime in nanoseconds 117 * Returns the current system clock (uptime) in nanoseconds.
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/concurrency/ |
D | FakeExecutor.java | 153 public Runnable executeAtTime(Runnable r, long uptime, TimeUnit unit) { in executeAtTime() argument 154 long uptimeMillis = unit.toMillis(uptime); in executeAtTime()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
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()
|