/frameworks/base/services/core/java/com/android/server/am/ |
D | BatteryStatsService.java | 772 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/ |
D | BatteryStatsSamplingTimerTest.java | 40 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 …]
|
D | BatteryStatsResetTest.java | 135 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()
|
D | BatteryStatsHistoryTest.java | 115 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/ |
D | AppIdleHistory.java | 205 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 …]
|
D | AppStandbyController.java | 613 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/ |
D | FaceAuthenticationModels.kt | 26 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/ |
D | AbstractEventLogger.java | 44 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/ |
D | CountDownTimer.java | 107 mStopTimeInFuture = SystemClock.elapsedRealtime() + mMillisInFuture; in start() 139 final long millisLeft = mStopTimeInFuture - SystemClock.elapsedRealtime(); 144 long lastTickStart = SystemClock.elapsedRealtime(); 148 long lastTickDuration = SystemClock.elapsedRealtime() - lastTickStart;
|
D | ConditionVariable.java | 125 long now = SystemClock.elapsedRealtime(); in block() 133 now = SystemClock.elapsedRealtime(); in block()
|
D | SystemClock.java | 242 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/ |
D | Clock.java | 27 public long elapsedRealtime() { in elapsedRealtime() method in Clock 44 public long elapsedRealtime() { 45 return SystemClock.elapsedRealtime();
|
D | MonotonicClock.java | 57 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()
|
D | CachedDeviceState.java | 124 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/ |
D | IccRecordsTest.java | 157 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/ |
D | AbstractStatsBase.java | 65 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/ |
D | VisibilityLoggerMixin.java | 53 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/ |
D | BootAnimationUtil.cpp | 64 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/ |
D | AppStandbyInternal.java | 81 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/ |
D | Utils.cpp | 198 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/ |
D | SystemClockImpl.java | 32 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/ |
D | RowInflaterTask.java | 88 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/ |
D | TimeController.kt | 55 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/ |
D | LocationEventLog.java | 276 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/ |
D | TokenBucketTest.java | 126 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()
|