Home
last modified time | relevance | path

Searched refs:elapsedRealtime (Results 1 – 25 of 485) sorted by relevance

12345678910>>...20

/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java772 SystemClock.elapsedRealtime(), SystemClock.uptimeMillis())); in noteBinderCallStats()
861 SystemClock.elapsedRealtime(), SystemClock.uptimeMillis()); in initPowerManagement()
902 final long elapsedRealtime = SystemClock.elapsedRealtime(); in onLowPowerModeChanged() local
907 elapsedRealtime, uptime); in onLowPowerModeChanged()
942 final long elapsedRealtime = SystemClock.elapsedRealtime(); in removeUid() local
946 mStats.removeUidStatsLocked(uid, elapsedRealtime); in removeUid()
954 final long elapsedRealtime = SystemClock.elapsedRealtime(); in onCleanupUser() local
957 mStats.onCleanupUserLocked(userId, elapsedRealtime); in onCleanupUser()
987 final long elapsedRealtime = SystemClock.elapsedRealtime(); in noteProcessStart() local
991 mStats.noteProcessStartLocked(name, uid, elapsedRealtime, uptime); in noteProcessStart()
[all …]
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DBatteryStatsSamplingTimerTest.java40 timer.update(10, 1, SystemClock.elapsedRealtime() * 1000); in testSettingStalePreservesData()
42 timer.update(20, 2, SystemClock.elapsedRealtime() * 1000); in testSettingStalePreservesData()
66 timer.update(10, 1, SystemClock.elapsedRealtime() * 1000); in testEndSampleAndContinueWhenTimeOrCountDecreases()
75 timer.update(0, 0, SystemClock.elapsedRealtime() * 1000); in testEndSampleAndContinueWhenTimeOrCountDecreases()
78 timer.update(0, 0, SystemClock.elapsedRealtime() * 1000); in testEndSampleAndContinueWhenTimeOrCountDecreases()
92 timer.update(30, 3, SystemClock.elapsedRealtime() * 1000); in testEndSampleAndContinueWhenTimeOrCountDecreases()
95 timer.update(30, 3, SystemClock.elapsedRealtime() * 1000); in testEndSampleAndContinueWhenTimeOrCountDecreases()
117 timer.update(10, 1, SystemClock.elapsedRealtime() * 1000); in testFirstUpdateIsAbsorbed()
126 timer.update(10, 1, SystemClock.elapsedRealtime() * 1000); in testFirstUpdateIsAbsorbed()
154 timeBase.init(clocks.uptimeMillis(), clocks.elapsedRealtime()); in testSampleTimerSummaryParceling()
[all …]
DBatteryStatsResetTest.java135 expectedResetTimeUs = mMockClock.elapsedRealtime() * 1000; in testResetOnUnplug_highBatteryLevel()
178 expectedResetTimeUs = mMockClock.elapsedRealtime() * 1000; in testResetOnUnplug_significantCharge()
242 expectedResetTimeUs = mMockClock.elapsedRealtime() * 1000; in testResetOnUnplug_manyPartialCharges()
269 expectedResetTimeUs = mMockClock.elapsedRealtime() * 1000; in testResetWhilePluggedIn_longPlugIn()
282 expectedResetTimeUs = mMockClock.elapsedRealtime() * 1000; in testResetWhilePluggedIn_longPlugIn()
304 expectedResetTimeUs = mMockClock.elapsedRealtime() * 1000; in testResetWhilePluggedIn_longPlugIn()
354 mMockClock.elapsedRealtime(), mMockClock.uptimeMillis(), in updateBatteryState()
DBatteryStatsHistoryTest.java115 mHistory.recordStateStartEvent(mClock.elapsedRealtime(), in testAtraceBinaryState1()
117 mHistory.recordStateStopEvent(mClock.elapsedRealtime(), in testAtraceBinaryState1()
119 mHistory.recordStateStartEvent(mClock.elapsedRealtime(), in testAtraceBinaryState1()
132 mHistory.recordState2StartEvent(mClock.elapsedRealtime(), in testAtraceBinaryState2()
134 mHistory.recordState2StopEvent(mClock.elapsedRealtime(), in testAtraceBinaryState2()
136 mHistory.recordState2StartEvent(mClock.elapsedRealtime(), in testAtraceBinaryState2()
150 mHistory.recordStateStartEvent(mClock.elapsedRealtime(), in testAtraceExcludedState()
162 mHistory.recordDataConnectionTypeChangeEvent(mClock.elapsedRealtime(), in testAtraceNumericalState()
164 mHistory.recordDataConnectionTypeChangeEvent(mClock.elapsedRealtime(), in testAtraceNumericalState()
166 mHistory.recordDataConnectionTypeChangeEvent(mClock.elapsedRealtime(), in testAtraceNumericalState()
[all …]
/frameworks/base/apex/jobscheduler/service/java/com/android/server/usage/
DAppIdleHistory.java205 AppIdleHistory(File storageDir, long elapsedRealtime) { in AppIdleHistory() argument
206 mElapsedSnapshot = elapsedRealtime; in AppIdleHistory()
207 mScreenOnSnapshot = elapsedRealtime; in AppIdleHistory()
212 public void updateDisplay(boolean screenOn, long elapsedRealtime) { in updateDisplay() argument
217 mScreenOnSnapshot = elapsedRealtime; in updateDisplay()
219 mScreenOnDuration += elapsedRealtime - mScreenOnSnapshot; in updateDisplay()
220 mElapsedDuration += elapsedRealtime - mElapsedSnapshot; in updateDisplay()
221 mElapsedSnapshot = elapsedRealtime; in updateDisplay()
228 public long getScreenOnTime(long elapsedRealtime) { in getScreenOnTime() argument
231 screenOnTime += elapsedRealtime - mScreenOnSnapshot; in getScreenOnTime()
[all …]
DAppStandbyController.java613 mInjector.elapsedRealtime()); in AppStandbyController()
696 mAppIdleHistory.updateDisplay(isDisplayOn(), mInjector.elapsedRealtime()); in onBootPhase()
739 final long elapsedRealtime = mInjector.elapsedRealtime(); in reportContentProviderUsage() local
755 elapsedRealtime, mSyncAdapterTimeoutMillis, linkedProfiles); in reportContentProviderUsage()
780 final long elapsedRealtime = mInjector.elapsedRealtime(); in reportExemptedSyncScheduled() local
784 usageReason, elapsedRealtime, durationMillis, linkedProfiles); in reportExemptedSyncScheduled()
791 final long elapsedRealtime = mInjector.elapsedRealtime(); in reportUnexemptedSyncScheduled() local
794 mAppIdleHistory.getAppStandbyBucket(packageName, userId, elapsedRealtime); in reportUnexemptedSyncScheduled()
800 elapsedRealtime, mUnexemptedSyncScheduledTimeoutMillis, linkedProfiles); in reportUnexemptedSyncScheduled()
808 final long elapsedRealtime = mInjector.elapsedRealtime(); in reportExemptedSyncStart() local
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/deviceentry/shared/model/
DFaceAuthenticationModels.kt26 import android.os.SystemClock.elapsedRealtime
38 @JvmField val createdAt: Long = elapsedRealtime()
45 @JvmField val createdAt: Long = elapsedRealtime()
51 @JvmField val createdAt: Long = elapsedRealtime()
57 @JvmField val createdAt: Long = elapsedRealtime()
65 @JvmField val createdAt: Long = elapsedRealtime()
103 @JvmField val createdAt: Long = elapsedRealtime()
/frameworks/base/core/java/android/speech/tts/
DAbstractEventLogger.java44 mReceivedTime = SystemClock.elapsedRealtime(); in AbstractEventLogger()
53 mRequestProcessingStartTime = SystemClock.elapsedRealtime(); in onRequestProcessingStart()
62 mEngineStartTime = SystemClock.elapsedRealtime(); in onEngineDataReceived()
71 mEngineCompleteTime = SystemClock.elapsedRealtime(); in onEngineComplete()
84 mPlaybackStartTime = SystemClock.elapsedRealtime(); in onAudioDataWritten()
99 long completionTime = SystemClock.elapsedRealtime(); in onCompleted()
/frameworks/base/core/java/android/os/
DCountDownTimer.java107 mStopTimeInFuture = SystemClock.elapsedRealtime() + mMillisInFuture; in start()
139 final long millisLeft = mStopTimeInFuture - SystemClock.elapsedRealtime();
144 long lastTickStart = SystemClock.elapsedRealtime();
148 long lastTickDuration = SystemClock.elapsedRealtime() - lastTickStart;
DConditionVariable.java125 long now = SystemClock.elapsedRealtime(); in block()
133 now = SystemClock.elapsedRealtime(); in block()
DSystemClock.java242 native public static long elapsedRealtime();
245 public static long elapsedRealtime$ravenwood() {
259 return SystemClock.elapsedRealtime();
357 long currentMillis = elapsedRealtime();
/frameworks/base/core/java/com/android/internal/os/
DClock.java27 public long elapsedRealtime() { in elapsedRealtime() method in Clock
44 public long elapsedRealtime() {
45 return SystemClock.elapsedRealtime();
DMonotonicClock.java57 this (file, Clock.SYSTEM_CLOCK.elapsedRealtime(), Clock.SYSTEM_CLOCK); in MonotonicClock()
68 mTimeshift = read(monotonicTime - mClock.elapsedRealtime()); in MonotonicClock()
71 mTimeshift = monotonicTime - mClock.elapsedRealtime(); in MonotonicClock()
80 return monotonicTime(mClock.elapsedRealtime()); in monotonicTime()
142 return savedTimeshift - mClock.elapsedRealtime(); in readXml()
DCachedDeviceState.java124 mStartTimeMillis = isRunning() ? SystemClock.elapsedRealtime() : 0; in reset()
131 mStartTimeMillis = SystemClock.elapsedRealtime(); in start()
146 return isRunning() ? SystemClock.elapsedRealtime() - mStartTimeMillis : 0; in elapsedTime()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
DIccRecordsTest.java157 startTime = SystemClock.elapsedRealtime(); in testGetIccSimChallengeResponseNull()
161 timeSpent = SystemClock.elapsedRealtime() - startTime; in testGetIccSimChallengeResponseNull()
177 startTime = SystemClock.elapsedRealtime(); in testGetIccSimChallengeResponseTimeout()
181 timeSpent = SystemClock.elapsedRealtime() - startTime; in testGetIccSimChallengeResponseTimeout()
218 startTime = SystemClock.elapsedRealtime(); in testGetIccSimChallengeResponseDefault()
222 timeSpent = SystemClock.elapsedRealtime() - startTime; in testGetIccSimChallengeResponseDefault()
228 startTime = SystemClock.elapsedRealtime(); in testGetIccSimChallengeResponseDefault()
231 timeSpent = SystemClock.elapsedRealtime() - startTime; in testGetIccSimChallengeResponseDefault()
236 startTime = SystemClock.elapsedRealtime(); in testGetIccSimChallengeResponseDefault()
239 timeSpent = SystemClock.elapsedRealtime() - startTime; in testGetIccSimChallengeResponseDefault()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DAbstractStatsBase.java65 mLastTimeWritten.set(SystemClock.elapsedRealtime()); in writeNow()
69 if (SystemClock.elapsedRealtime() - mLastTimeWritten.get() < WRITE_INTERVAL_MS in maybeWriteAsync()
80 mLastTimeWritten.set(SystemClock.elapsedRealtime()); in maybeWriteAsync()
122 mLastTimeWritten.set(SystemClock.elapsedRealtime()); in read()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/instrumentation/
DVisibilityLoggerMixin.java53 mCreationTimestamp = SystemClock.elapsedRealtime(); in onAttach()
61 mVisibleTimestamp = SystemClock.elapsedRealtime(); in onResume()
76 final int elapse = (int) (SystemClock.elapsedRealtime() - mVisibleTimestamp); in onPause()
91 final int elapse = (int) (SystemClock.elapsedRealtime() - mCreationTimestamp); in writeElapsedTimeMetric()
/frameworks/base/cmds/bootanimation/
DBootAnimationUtil.cpp64 int64_t waitStartTime = elapsedRealtime(); in waitForSurfaceFlinger()
74 elapsedRealtime() - waitStartTime); in waitForSurfaceFlinger()
78 int64_t totalWaited = elapsedRealtime() - waitStartTime; in waitForSurfaceFlinger()
/frameworks/base/apex/jobscheduler/framework/java/com/android/server/usage/
DAppStandbyInternal.java81 void setLastJobRunTime(String packageName, int userId, long elapsedRealtime); in setLastJobRunTime() argument
113 boolean isAppIdleFiltered(String packageName, int userId, long elapsedRealtime, in isAppIdleFiltered() argument
123 long elapsedRealtime); in isAppIdleFiltered() argument
136 long elapsedRealtime, boolean shouldObfuscateInstantApps); in getAppStandbyBucket() argument
164 @ElapsedRealtimeLong long elapsedRealtime); in getAppStandbyBucketReason() argument
/frameworks/base/services/core/jni/gnss/
DUtils.cpp198 flags = static_cast<uint32_t>(location.elapsedRealtime.flags); in translateGnssLocation()
201 location.elapsedRealtime.timestampNs > android::elapsedRealtimeNano()) { in translateGnssLocation()
204 SET(ElapsedRealtimeNanos, location.elapsedRealtime.timestampNs); in translateGnssLocation()
211 static_cast<double>(location.elapsedRealtime.timeUncertaintyNs)); in translateGnssLocation()
257 const uint16_t flags = static_cast<uint16_t>(location.elapsedRealtime.flags); in translateGnssLocation()
261 SET(ElapsedRealtimeNanos, location.elapsedRealtime.timestampNs); in translateGnssLocation()
266 static_cast<double>(location.elapsedRealtime.timeUncertaintyNs)); in translateGnssLocation()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/time/
DSystemClockImpl.java32 public long elapsedRealtime() { in elapsedRealtime() method in SystemClockImpl
33 return android.os.SystemClock.elapsedRealtime(); in elapsedRealtime()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DRowInflaterTask.java88 mInflateStartTimeMs = mSystemClock.elapsedRealtime(); in inflate()
117 final long startMs = mSystemClock.elapsedRealtime(); in onCreateView()
120 final long elapsedMs = mSystemClock.elapsedRealtime() - startMs; in onCreateView()
142 final long elapsedMs = mSystemClock.elapsedRealtime() - mInflateStartTimeMs; in onInflateFinished()
/frameworks/libs/systemui/toruslib/torus-core/src/main/java/com/google/android/torus/core/time/
DTimeController.kt55 fun resetDeltaTime(currentTimeMillis: Long = SystemClock.elapsedRealtime()) { in resetDeltaTime()
76 fun updateDeltaTime(currentTimeMillis: Long = SystemClock.elapsedRealtime()) { in updateDeltaTime()
/frameworks/base/services/core/java/com/android/server/location/eventlog/
DLocationEventLog.java276 addLog(SystemClock.elapsedRealtime(), logEvent); in addLog()
289 long systemTimeDeltaMs = System.currentTimeMillis() - SystemClock.elapsedRealtime(); in iterate()
647 this.addLog(SystemClock.elapsedRealtime(), logEvent); in addLog()
689 mAddedTimeLastUpdateRealtimeMs = SystemClock.elapsedRealtime(); in markRequestAdded()
708 mActiveTimeLastUpdateRealtimeMs = SystemClock.elapsedRealtime(); in markRequestActive()
721 mForegroundTimeLastUpdateRealtimeMs = SystemClock.elapsedRealtime(); in markRequestForeground()
737 long realtimeMs = SystemClock.elapsedRealtime(); in updateTotals()
742 long realtimeMs = SystemClock.elapsedRealtime(); in updateTotals()
747 long realtimeMs = SystemClock.elapsedRealtime(); in updateTotals()
798 mAddedTimeLastUpdateRealtimeMs = SystemClock.elapsedRealtime(); in markRequestAdded()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DTokenBucketTest.java126 long start = SystemClock.elapsedRealtime(); in testAverage()
136 assertDuration(want * delta, SystemClock.elapsedRealtime() - start); in testAverage()
145 long start = SystemClock.elapsedRealtime(); in testBurst()
156 assertDuration(total * delta, SystemClock.elapsedRealtime() - start); in testBurst()

12345678910>>...20