/frameworks/base/services/usage/java/com/android/server/usage/ |
D | AppIdleHistory.java | 141 AppIdleHistory(File storageDir, long elapsedRealtime) { in AppIdleHistory() argument 142 mElapsedSnapshot = elapsedRealtime; in AppIdleHistory() 143 mScreenOnSnapshot = elapsedRealtime; in AppIdleHistory() 148 public void updateDisplay(boolean screenOn, long elapsedRealtime) { in updateDisplay() argument 153 mScreenOnSnapshot = elapsedRealtime; in updateDisplay() 155 mScreenOnDuration += elapsedRealtime - mScreenOnSnapshot; in updateDisplay() 156 mElapsedDuration += elapsedRealtime - mElapsedSnapshot; in updateDisplay() 157 mElapsedSnapshot = elapsedRealtime; in updateDisplay() 164 public long getScreenOnTime(long elapsedRealtime) { in getScreenOnTime() argument 167 screenOnTime += elapsedRealtime - mScreenOnSnapshot; in getScreenOnTime() [all …]
|
D | AppStandbyController.java | 341 mInjector.elapsedRealtime()); in AppStandbyController() 381 mAppIdleHistory.updateDisplay(isDisplayOn(), mInjector.elapsedRealtime()); in onBootPhase() 409 final long elapsedRealtime = mInjector.elapsedRealtime(); in reportContentProviderUsage() local 424 elapsedRealtime + mSyncAdapterTimeoutMillis); in reportContentProviderUsage() 425 maybeInformListeners(packageName, userId, elapsedRealtime, in reportContentProviderUsage() 454 final long elapsedRealtime = mInjector.elapsedRealtime(); in reportExemptedSyncScheduled() local 460 elapsedRealtime + durationMillis); in reportExemptedSyncScheduled() 461 maybeInformListeners(packageName, userId, elapsedRealtime, in reportExemptedSyncScheduled() 469 final long elapsedRealtime = mInjector.elapsedRealtime(); in reportUnexemptedSyncScheduled() local 472 mAppIdleHistory.getAppStandbyBucket(packageName, userId, elapsedRealtime); in reportUnexemptedSyncScheduled() [all …]
|
/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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/nitz/ |
D | TimeZoneSuggesterImplTest.java | 142 scenario.createNitzSignal(mFakeDeviceState.elapsedRealtime())); in test_uniqueUsZone() 152 scenario.createNitzSignal(mFakeDeviceState.elapsedRealtime())); in test_uniqueUsZone() 166 scenario.createNitzSignal(mFakeDeviceState.elapsedRealtime())); in test_uniqueUsZone() 175 CZECHIA_SCENARIO.createNitzSignal(mFakeDeviceState.elapsedRealtime()); in test_uniqueUsZone() 214 scenario.createNitzSignal(mFakeDeviceState.elapsedRealtime())); in test_nonUniqueUsZone() 224 scenario.createNitzSignal(mFakeDeviceState.elapsedRealtime())); in test_nonUniqueUsZone() 232 scenario.createNitzSignal(mFakeDeviceState.elapsedRealtime())); in test_nonUniqueUsZone() 245 CZECHIA_SCENARIO.createNitzSignal(mFakeDeviceState.elapsedRealtime()); in test_nonUniqueUsZone() 283 scenario.createNitzSignal(mFakeDeviceState.elapsedRealtime())); in test_unitedKingdom() 294 scenario.createNitzSignal(mFakeDeviceState.elapsedRealtime())); in test_unitedKingdom() [all …]
|
D | NitzSignalInputFilterPredicateFactoryTest.java | 61 scenario.createNitzSignal(mFakeDeviceState.elapsedRealtime()); in testNitzSignalInputFilterPredicateImpl_nullSecondArgumentRejected() 76 .createNitzSignal(mFakeDeviceState.elapsedRealtime()); in testNitzSignalInputFilterPredicateImpl_defaultIsTrue() 86 scenario.createNitzSignal(mFakeDeviceState.elapsedRealtime()); in testNitzSignalInputFilterPredicateImpl_nullIsIgnored() 98 scenario.createNitzSignal(mFakeDeviceState.elapsedRealtime()); in testNitzSignalInputFilterPredicateImpl_trueIsHonored() 118 scenario.createNitzSignal(mFakeDeviceState.elapsedRealtime()); in testNitzSignalInputFilterPredicateImpl_falseIsHonored() 148 long elapsedRealtimeClock = mFakeDeviceState.elapsedRealtime(); in testTrivalentPredicate_bogusElapsedRealtimeCheck() 165 scenario.createNitzSignal(mFakeDeviceState.elapsedRealtime()); in testTrivalentPredicate_noOldSignalCheck() 181 long baseElapsedRealtimeMillis = mFakeDeviceState.elapsedRealtime(); in testTrivalentPredicate_rateLimitCheck_elapsedRealtime() 215 long baseElapsedRealtimeMillis = mFakeDeviceState.elapsedRealtime(); in testTrivalentPredicate_rateLimitCheck_offsetDifference() 251 long baseElapsedRealtimeMillis = mFakeDeviceState.elapsedRealtime(); in testTrivalentPredicate_rateLimitCheck_utcTimeDifferences()
|
D | NitzStateMachineTestSupport.java | 209 public long elapsedRealtime; field in NitzStateMachineTestSupport.FakeDeviceState 217 elapsedRealtime = ARBITRARY_REALTIME_MILLIS; in FakeDeviceState() 236 public long elapsedRealtime() { in elapsedRealtime() method in NitzStateMachineTestSupport.FakeDeviceState 237 return elapsedRealtime; in elapsedRealtime() 249 elapsedRealtime += timeIncrementMillis; in simulateTimeIncrement()
|
/frameworks/base/services/core/java/com/android/server/ |
D | SystemServiceManager.java | 128 long time = SystemClock.elapsedRealtime(); in startService() 135 warnIfTooLong(SystemClock.elapsedRealtime() - time, service, "onStart"); in startService() 156 long time = SystemClock.elapsedRealtime(); in startBootPhase() 166 warnIfTooLong(SystemClock.elapsedRealtime() - time, service, "onBootPhase"); in startBootPhase() 189 long time = SystemClock.elapsedRealtime(); in startUser() 196 warnIfTooLong(SystemClock.elapsedRealtime() - time, service, "onStartUser "); in startUser() 210 long time = SystemClock.elapsedRealtime(); in unlockUser() 217 warnIfTooLong(SystemClock.elapsedRealtime() - time, service, "onUnlockUser "); in unlockUser() 231 long time = SystemClock.elapsedRealtime(); in switchUser() 238 warnIfTooLong(SystemClock.elapsedRealtime() - time, service, "onSwitchUser"); in switchUser() [all …]
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | LocationRequestStatistics.java | 130 mInitialElapsedTimeMs = SystemClock.elapsedRealtime(); in PackageStatistics() 142 mLastActivitationElapsedTimeMs = SystemClock.elapsedRealtime(); in startRequesting() 157 long nowElapsedTimeMs = SystemClock.elapsedRealtime(); in updateForeground() 174 mLastStopElapsedTimeMs = SystemClock.elapsedRealtime(); in stopRequesting() 188 += SystemClock.elapsedRealtime() - mLastActivitationElapsedTimeMs; in getDurationMs() 200 += SystemClock.elapsedRealtime() - mLastForegroundElapsedTimeMs; in getForegroundDurationMs() 209 return SystemClock.elapsedRealtime() - mInitialElapsedTimeMs; in getTimeSinceFirstRequestMs() 216 return SystemClock.elapsedRealtime() - mLastStopElapsedTimeMs; in getTimeSinceLastRequestStoppedMs()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BatteryStatsImpl.java | 374 final long elapsedRealtime = mClocks.elapsedRealtime(); 375 addHistoryRecordLocked(elapsedRealtime, uptime); 493 long cutOffTime = mClocks.elapsedRealtime() - mConstants.UID_REMOVE_DELAY_MS; in clearPendingRemovedUids() 595 public long elapsedRealtime(); in elapsedRealtime() method 600 public long elapsedRealtime() { in elapsedRealtime() method in BatteryStatsImpl.SystemClocks 601 return SystemClock.elapsedRealtime(); in elapsedRealtime() 1112 void onTimeStarted(long elapsedRealtime, long baseUptime, long baseRealtime); in onTimeStarted() argument 1113 void onTimeStopped(long elapsedRealtime, long baseUptime, long baseRealtime); in onTimeStopped() argument 1355 public void onTimeStarted(long elapsedRealtime, long baseUptime, long baseRealtime) { in onTimeStarted() argument 1359 public void onTimeStopped(long elapsedRealtime, long baseUptime, long baseRealtime) { in onTimeStopped() argument [all …]
|
D | CachedDeviceState.java | 123 mStartTimeMillis = isRunning() ? SystemClock.elapsedRealtime() : 0; in reset() 130 mStartTimeMillis = SystemClock.elapsedRealtime(); in start() 145 return isRunning() ? SystemClock.elapsedRealtime() - mStartTimeMillis : 0; in elapsedTime()
|
/frameworks/base/core/java/android/os/ |
D | CountDownTimer.java | 92 mStopTimeInFuture = SystemClock.elapsedRealtime() + mMillisInFuture; in start() 124 final long millisLeft = mStopTimeInFuture - SystemClock.elapsedRealtime(); 129 long lastTickStart = SystemClock.elapsedRealtime(); 133 long lastTickDuration = SystemClock.elapsedRealtime() - lastTickStart;
|
D | ConditionVariable.java | 124 long now = SystemClock.elapsedRealtime(); in block() 132 now = SystemClock.elapsedRealtime(); in block()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/ |
D | IccRecordsTest.java | 156 startTime = SystemClock.elapsedRealtime(); in testGetIccSimChallengeResponseNull() 160 timeSpent = SystemClock.elapsedRealtime() - startTime; in testGetIccSimChallengeResponseNull() 176 startTime = SystemClock.elapsedRealtime(); in testGetIccSimChallengeResponseTimeout() 180 timeSpent = SystemClock.elapsedRealtime() - startTime; in testGetIccSimChallengeResponseTimeout() 217 startTime = SystemClock.elapsedRealtime(); in testGetIccSimChallengeResponseDefault() 221 timeSpent = SystemClock.elapsedRealtime() - startTime; in testGetIccSimChallengeResponseDefault() 227 startTime = SystemClock.elapsedRealtime(); in testGetIccSimChallengeResponseDefault() 230 timeSpent = SystemClock.elapsedRealtime() - startTime; in testGetIccSimChallengeResponseDefault() 235 startTime = SystemClock.elapsedRealtime(); in testGetIccSimChallengeResponseDefault() 238 timeSpent = SystemClock.elapsedRealtime() - startTime; in testGetIccSimChallengeResponseDefault() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsSamplingTimerTest.java | 146 timeBase.init(clocks.uptimeMillis(), clocks.elapsedRealtime()); in testSampleTimerSummaryParceling() 153 timeBase.setRunning(true, clocks.uptimeMillis(), clocks.elapsedRealtime()); in testSampleTimerSummaryParceling() 163 assertEquals(10, timer.getTotalTimeLocked(clocks.elapsedRealtime(), in testSampleTimerSummaryParceling() 169 timer.writeSummaryFromParcelLocked(onBatterySummaryParcel, clocks.elapsedRealtime() * 1000); in testSampleTimerSummaryParceling() 173 timeBase.setRunning(false, clocks.uptimeMillis(), clocks.elapsedRealtime()); in testSampleTimerSummaryParceling() 175 assertEquals(10, timer.getTotalTimeLocked(clocks.elapsedRealtime(), in testSampleTimerSummaryParceling() 182 clocks.elapsedRealtime() * 1000); in testSampleTimerSummaryParceling() 187 timeBase.setRunning(true, clocks.uptimeMillis(), clocks.elapsedRealtime()); in testSampleTimerSummaryParceling()
|
D | BatteryStatsDurationTimerTest.java | 39 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/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/cmds/bootanimation/ |
D | BootAnimationUtil.cpp | 57 int64_t waitStartTime = elapsedRealtime(); in waitForSurfaceFlinger() 67 elapsedRealtime() - waitStartTime); in waitForSurfaceFlinger() 71 int64_t totalWaited = elapsedRealtime() - waitStartTime; in waitForSurfaceFlinger()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/ |
D | SipConnectionBase.java | 65 mConnectTimeReal = SystemClock.elapsedRealtime(); in setState() 74 mHoldingStartTime = SystemClock.elapsedRealtime(); in setState() 106 dur = SystemClock.elapsedRealtime() - mConnectTimeReal; in getDurationMillis() 121 dur = SystemClock.elapsedRealtime() - mHoldingStartTime; in getHoldDurationMillis()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | NitzStateMachine.java | 112 long elapsedRealtime(); in elapsedRealtime() method 161 public long elapsedRealtime() { in elapsedRealtime() method in NitzStateMachine.DeviceStateImpl 162 return SystemClock.elapsedRealtime(); in elapsedRealtime()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiWakeMetrics.java | 59 mCurrentSession = new Session(numNetworks, SystemClock.elapsedRealtime()); in recordStartEvent() 79 SystemClock.elapsedRealtime()); in recordInitializeEvent() 99 mCurrentSession.recordUnlockEvent(numScans, SystemClock.elapsedRealtime()); in recordUnlockEvent() 118 mCurrentSession.recordWakeupEvent(numScans, SystemClock.elapsedRealtime()); in recordWakeupEvent() 138 mCurrentSession.recordResetEvent(numScans, SystemClock.elapsedRealtime()); in recordResetEvent()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
D | TokenBucketTest.java | 112 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/base/services/tests/servicestests/src/com/android/server/am/ |
D | ActivityManagerInternalTest.java | 174 final long endTime = SystemClock.elapsedRealtime() + WAIT_TIMEOUT_MS; in startAndWait() 178 && SystemClock.elapsedRealtime() < endTime) { in startAndWait() 197 final long endTime = SystemClock.elapsedRealtime() + WAIT_TIMEOUT_MS; in assertTerminated() 199 && SystemClock.elapsedRealtime() < endTime) { in assertTerminated()
|
/frameworks/layoutlib/bridge/src/android/os/ |
D | SystemClock_Delegate.java | 52 /*package*/ static long elapsedRealtime() { in elapsedRealtime() method in SystemClock_Delegate 97 return elapsedRealtime() * 1000; in currentTimeMicro()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | AppTimeTracker.java | 51 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 writeToProto()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/nitz/ |
D | NitzSignalInputFilterPredicateFactory.java | 135 long elapsedRealtime = deviceState.elapsedRealtime(); in createBogusElapsedRealtimeCheck() local 136 long millisSinceNitzReceived = elapsedRealtime - newSignal.getReferenceTimeMillis(); in createBogusElapsedRealtimeCheck() 140 + " because unexpected elapsedRealtime=" + elapsedRealtime in createBogusElapsedRealtimeCheck()
|