Home
last modified time | relevance | path

Searched refs:uptime (Results 1 – 25 of 54) sorted by relevance

123

/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DBatteryStatsSensorTest.java54 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 …]
DBatteryStatsBackgroundStatsTest.java60 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 …]
DPowerStatsAggregatorTest.java88 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 …]
DBatteryStatsDualTimerTest.java33 clocks.realtime = clocks.uptime = 100; in testResetDetach()
49 clocks.realtime = clocks.uptime = 200; in testResetDetach()
56 clocks.realtime = clocks.uptime = 300; in testResetDetach()
DMockClock.java25 public long uptime; field in MockClock
36 return uptime; in uptimeMillis()
DBatteryStatsHistoryIteratorTest.java139 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()
DBatteryStatsNoteTest.java152 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 …]
DBatteryStatsHistoryTest.java351 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 …]
DBatteryStatsImplTest.java180 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 …]
DPowerStatsCollectorTest.java83 mMockClock.uptime = 1000; in throttlePeriod()
89 mMockClock.uptime += 1000; in throttlePeriod()
97 mMockClock.uptime += 100_000; in throttlePeriod()
DBatteryStatsTimeBaseTest.java41 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()
DBatteryStatsDurationTimerTest.java132 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/
DBatteryStatsService.java877 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/
DClientWakelockTracker.java40 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()
DClientWakelockAccountant.java92 public synchronized long updatePendingRequestWakelockTime(long uptime) { in updatePendingRequestWakelockTime() argument
96 wlInfo.updateTime(uptime); in updatePendingRequestWakelockTime()
/frameworks/base/services/core/java/com/android/server/pm/
DSilentUpdatePolicy.java89 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/
DMockClock.java23 public long uptime; field in MockClock
34 return uptime; in uptimeMillis()
/frameworks/rs/script_api/
Drs_time.spec90 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/
DDelayableExecutor.java53 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/
DDeviceBasedSatelliteRepositoryImplTest.kt336 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/
DFakeSystemClock.java66 public void setUptimeMillis(long uptime) { in setUptimeMillis() argument
67 advanceTime(uptime - mUptimeMillis); in setUptimeMillis()
/frameworks/base/core/proto/android/service/
Dprocstats.proto57 // 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/
Drs_time.rsh105 * 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/
DFakeExecutor.java153 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/
DWindowChangeAnimationSpec.java168 long uptime = SystemClock.uptimeMillis(); in calculateStatusBarTransitionStartTime() local
169 return Math.max(uptime, uptime + ((long) (((float) mAnimation.getDuration()) * 0.99f)) in calculateStatusBarTransitionStartTime()

123