/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsSensorTest.java | 41 clocks.uptime = 100; in testSensorStartStop() 47 clocks.uptime = 200; in testSensorStartStop() 54 clocks.uptime = 400; in testSensorStartStop() 79 curr = 1000 * (clocks.realtime = clocks.uptime = 100); in testCountingWhileOffBattery() 84 curr = 1000 * (clocks.realtime = clocks.uptime = 200); in testCountingWhileOffBattery() 88 curr = 1000 * (clocks.realtime = clocks.uptime = 215); in testCountingWhileOffBattery() 96 curr = 1000 * (clocks.realtime = clocks.uptime = 550); in testCountingWhileOffBattery() 100 curr = 1000 * (clocks.realtime = clocks.uptime = 678); in testCountingWhileOffBattery() 115 curr = 1000 * (clocks.realtime = clocks.uptime = 100); in testCountingWhileOnBattery() 119 curr = 1000 * (clocks.realtime = clocks.uptime = 200); in testCountingWhileOnBattery() [all …]
|
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 …]
|
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 | MockClocks.java | 23 public long uptime; field in MockClocks 34 return uptime; in uptimeMillis()
|
D | BatteryUsageStatsStoreTest.java | 103 mMockClocks.uptime = 10_000_000; in testGarbageCollectOldSnapshots() 113 mMockClocks.uptime += 10_000_000; in testGarbageCollectOldSnapshots() 140 mMockClocks.realtime, mMockClocks.uptime, mMockClocks.currentTime); in prepareBatteryStats() 143 mMockClocks.realtime + 500_000, mMockClocks.uptime + 500_000, in prepareBatteryStats()
|
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 | BatteryStatsNoteTest.java | 103 clocks.realtime = clocks.uptime = 100; in testNoteStartWakeLocked() 106 clocks.realtime = clocks.uptime = 220; in testNoteStartWakeLocked() 149 clocks.uptime = clocks.realtime; in testNoteUidProcessStateLocked() 264 clocks.realtime = clocks.uptime = 100; in testNoteScreenStateTimersLocked() 268 clocks.realtime = clocks.uptime = 200; in testNoteScreenStateTimersLocked() 275 clocks.realtime = clocks.uptime = 310; in testNoteScreenStateTimersLocked() 282 clocks.realtime = clocks.uptime = 400; in testNoteScreenStateTimersLocked() 289 clocks.realtime = clocks.uptime = 1000; in testNoteScreenStateTimersLocked() 308 clocks.realtime = clocks.uptime = 100; in testAlarmStartAndFinishLocked() 310 clocks.realtime = clocks.uptime = 5000; in testAlarmStartAndFinishLocked() [all …]
|
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()
|
D | BatteryUsageStatsRule.java | 170 mMockClocks.uptime = uptimeMs; 194 calculator.calculate(builder, mBatteryStats, mMockClocks.realtime, mMockClocks.uptime,
|
D | BatteryStatsSamplingTimerTest.java | 145 clocks.uptime = 0; in testSampleTimerSummaryParceling() 163 clocks.uptime = 20; in testSampleTimerSummaryParceling()
|
D | BatteryStatsStopwatchTimerTest.java | 146 return clocks.realtime = clocks.uptime = time; in updateTime()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BatteryStatsService.java | 536 final long uptime = SystemClock.uptimeMillis(); in onLowPowerModeChanged() local 540 elapsedRealtime, uptime, false); in onLowPowerModeChanged() 608 final long uptime = SystemClock.uptimeMillis(); in addIsolatedUid() local 611 mStats.addIsolatedUidLocked(isolatedUid, appUid, elapsedRealtime, uptime); in addIsolatedUid() 630 final long uptime = SystemClock.uptimeMillis(); in noteProcessStart() local 633 mStats.noteProcessStartLocked(name, uid, elapsedRealtime, uptime); in noteProcessStart() 644 final long uptime = SystemClock.uptimeMillis(); in noteProcessCrash() local 647 mStats.noteProcessCrashLocked(name, uid, elapsedRealtime, uptime); in noteProcessCrash() 658 final long uptime = SystemClock.uptimeMillis(); in noteProcessAnr() local 661 mStats.noteProcessAnrLocked(name, uid, elapsedRealtime, uptime); in noteProcessAnr() [all …]
|
D | BatteryExternalStatsWorker.java | 624 final long uptime = SystemClock.uptimeMillis(); in updateExternalStatsLocked() local 626 final long uptimeUs = uptime * 1000; in updateExternalStatsLocked() 632 uptime, in updateExternalStatsLocked() 691 btChargeUC, elapsedRealtime, uptime); in updateExternalStatsLocked() 706 extractDeltaLocked(wifiInfo), wifiChargeUC, elapsedRealtime, uptime); in updateExternalStatsLocked() local 716 uptime); in updateExternalStatsLocked()
|
/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/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/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/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()
|
/frameworks/base/services/net/java/android/net/ |
D | ConnectivityModuleConnector.java | 300 final long uptime = SystemClock.elapsedRealtime(); in maybeCrashWithTerribleFailure() local 324 final boolean justBooted = uptime < minUptimeBeforeCrash; in maybeCrashWithTerribleFailure()
|
/frameworks/base/core/proto/android/os/ |
D | cpu_usage.proto | 61 optional int32 uptime = 6; field
|