Home
last modified time | relevance | path

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

12345678910>>...17

/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java450 SystemClock.elapsedRealtime(), SystemClock.uptimeMillis())); in noteBinderCallStats()
508 SystemClock.elapsedRealtime(), SystemClock.uptimeMillis()); in initPowerManagement()
546 final long elapsedRealtime = SystemClock.elapsedRealtime(); in onLowPowerModeChanged() local
551 elapsedRealtime, uptime); in onLowPowerModeChanged()
586 final long elapsedRealtime = SystemClock.elapsedRealtime(); in removeUid() local
589 mStats.removeUidStatsLocked(uid, elapsedRealtime); in removeUid()
597 final long elapsedRealtime = SystemClock.elapsedRealtime(); in onCleanupUser() local
600 mStats.onCleanupUserLocked(userId, elapsedRealtime); in onCleanupUser()
618 final long elapsedRealtime = SystemClock.elapsedRealtime(); in addIsolatedUid() local
622 mStats.addIsolatedUidLocked(isolatedUid, appUid, elapsedRealtime, uptime); in addIsolatedUid()
[all …]
DAppTimeTracker.java51 long now = SystemClock.elapsedRealtime(); in start()
72 long elapsedTime = SystemClock.elapsedRealtime() - mStartedTime; in stop()
119 TimeUtils.formatDuration(SystemClock.elapsedRealtime(), mStartedTime, pw); in dump()
137 mStartedTime, SystemClock.elapsedRealtime()); in dumpDebug()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
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 …]
DBatteryStatsDurationTimerTest.java39 timeBase.init(clocks.uptimeMillis(), clocks.elapsedRealtime()); in testStartStop()
111 timeBase.init(clocks.uptimeMillis(), clocks.elapsedRealtime()); in testReset()
147 timeBase.init(clocks.uptimeMillis(), clocks.elapsedRealtime()); in testResetAndDetach()
174 timeBase.init(clocks.uptimeMillis(), clocks.elapsedRealtime()); in testParceling()
182 timeBase.setRunning(true, clocks.uptimeMillis()*1000, clocks.elapsedRealtime()*1000); in testParceling()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/usage/
DAppIdleHistory.java204 AppIdleHistory(File storageDir, long elapsedRealtime) { in AppIdleHistory() argument
205 mElapsedSnapshot = elapsedRealtime; in AppIdleHistory()
206 mScreenOnSnapshot = elapsedRealtime; in AppIdleHistory()
211 public void updateDisplay(boolean screenOn, long elapsedRealtime) { in updateDisplay() argument
216 mScreenOnSnapshot = elapsedRealtime; in updateDisplay()
218 mScreenOnDuration += elapsedRealtime - mScreenOnSnapshot; in updateDisplay()
219 mElapsedDuration += elapsedRealtime - mElapsedSnapshot; in updateDisplay()
220 mElapsedSnapshot = elapsedRealtime; in updateDisplay()
227 public long getScreenOnTime(long elapsedRealtime) { in getScreenOnTime() argument
230 screenOnTime += elapsedRealtime - mScreenOnSnapshot; in getScreenOnTime()
[all …]
DAppStandbyController.java604 mInjector.elapsedRealtime()); in AppStandbyController()
664 mAppIdleHistory.updateDisplay(isDisplayOn(), mInjector.elapsedRealtime()); in onBootPhase()
707 final long elapsedRealtime = mInjector.elapsedRealtime(); in reportContentProviderUsage() local
723 elapsedRealtime, mSyncAdapterTimeoutMillis, linkedProfiles); in reportContentProviderUsage()
748 final long elapsedRealtime = mInjector.elapsedRealtime(); in reportExemptedSyncScheduled() local
752 usageReason, elapsedRealtime, durationMillis, linkedProfiles); in reportExemptedSyncScheduled()
759 final long elapsedRealtime = mInjector.elapsedRealtime(); in reportUnexemptedSyncScheduled() local
762 mAppIdleHistory.getAppStandbyBucket(packageName, userId, elapsedRealtime); in reportUnexemptedSyncScheduled()
768 elapsedRealtime, mUnexemptedSyncScheduledTimeoutMillis, linkedProfiles); in reportUnexemptedSyncScheduled()
776 final long elapsedRealtime = mInjector.elapsedRealtime(); in reportExemptedSyncStart() local
[all …]
/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.java124 long now = SystemClock.elapsedRealtime(); in block()
132 now = SystemClock.elapsedRealtime(); in block()
/frameworks/base/core/java/com/android/internal/os/
DClock.java26 public long elapsedRealtime() { in elapsedRealtime() method in Clock
43 public long elapsedRealtime() {
44 return SystemClock.elapsedRealtime();
DCachedDeviceState.java123 mStartTimeMillis = isRunning() ? SystemClock.elapsedRealtime() : 0; in reset()
130 mStartTimeMillis = SystemClock.elapsedRealtime(); in start()
145 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/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/core/tests/coretests/src/com/android/internal/util/
DTokenBucketTest.java112 long start = SystemClock.elapsedRealtime(); in testAverage()
122 assertDuration(want * delta, SystemClock.elapsedRealtime() - start); in testAverage()
130 long start = SystemClock.elapsedRealtime(); in testBurst()
141 assertDuration(total * delta, SystemClock.elapsedRealtime() - start); in testBurst()
/frameworks/layoutlib/bridge/src/android/os/
DSystemClock_Delegate.java52 /*package*/ static long elapsedRealtime() { in elapsedRealtime() method in SystemClock_Delegate
107 return elapsedRealtime() * 1000; in currentTimeMicro()
/frameworks/base/services/core/java/com/android/server/location/eventlog/
DLocationEventLog.java220 addLog(SystemClock.elapsedRealtime(), logEvent); in addLog()
233 long systemTimeDeltaMs = System.currentTimeMillis() - SystemClock.elapsedRealtime(); in iterate()
526 this.addLog(SystemClock.elapsedRealtime(), logEvent); in addLog()
568 mAddedTimeLastUpdateRealtimeMs = SystemClock.elapsedRealtime(); in markRequestAdded()
587 mActiveTimeLastUpdateRealtimeMs = SystemClock.elapsedRealtime(); in markRequestActive()
600 mForegroundTimeLastUpdateRealtimeMs = SystemClock.elapsedRealtime(); in markRequestForeground()
616 long realtimeMs = SystemClock.elapsedRealtime(); in updateTotals()
621 long realtimeMs = SystemClock.elapsedRealtime(); in updateTotals()
626 long realtimeMs = SystemClock.elapsedRealtime(); in updateTotals()
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
DSlowReceiver.java34 long now = SystemClock.elapsedRealtime(); in onReceive()
40 now = SystemClock.elapsedRealtime(); in onReceive()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationUsageStats.java86 mLastEmitTime = SystemClock.elapsedRealtime(); in NotificationUsageStats()
109 return stats.getEnqueueRate(SystemClock.elapsedRealtime()); in getAppEnqueueRate()
142 final long now = SystemClock.elapsedRealtime(); in registerPostedByApp()
164 stats.updateInterarrivalEstimate(SystemClock.elapsedRealtime()); in registerUpdatedByApp()
295 result.mLastAccessTime = SystemClock.elapsedRealtime(); in getOrCreateAggregatedStatsLocked()
356 mLastEmitTime = SystemClock.elapsedRealtime(); in emit()
411 mCreated = SystemClock.elapsedRealtime(); in AggregatedStats()
588 return getEnqueueRate(SystemClock.elapsedRealtime()); in getEnqueueRate()
600 boolean limited = alertRate.shouldRateLimitAlert(SystemClock.elapsedRealtime()); in isAlertRateLimited()
686 dump.put("duration", SystemClock.elapsedRealtime() - mCreated); in dumpJson()
[all …]
/frameworks/base/services/core/jni/gnss/
DUtils.cpp195 flags = static_cast<uint32_t>(location.elapsedRealtime.flags); in translateGnssLocation()
197 SET(ElapsedRealtimeNanos, location.elapsedRealtime.timestampNs); in translateGnssLocation()
203 static_cast<double>(location.elapsedRealtime.timeUncertaintyNs)); in translateGnssLocation()
249 const uint16_t flags = static_cast<uint16_t>(location.elapsedRealtime.flags); in translateGnssLocation()
253 SET(ElapsedRealtimeNanos, location.elapsedRealtime.timestampNs); in translateGnssLocation()
258 static_cast<double>(location.elapsedRealtime.timeUncertaintyNs)); in translateGnssLocation()
/frameworks/base/core/java/com/android/internal/util/
DPerfettoTrigger.java46 long sinceLastTrigger = SystemClock.elapsedRealtime() - lastTrigger; in trigger()
53 sLastInvocationPerTrigger.put(triggerName.hashCode(), SystemClock.elapsedRealtime()); in trigger()
/frameworks/base/core/jni/
Dandroid_os_SystemClock.cpp42 static_assert(std::is_same<decltype(elapsedRealtime()), int64_t>::value,
82 { "elapsedRealtime", "()J", (void*) elapsedRealtime },

12345678910>>...17