/frameworks/base/services/usage/java/com/android/server/usage/ |
D | AppIdleHistory.java | 95 AppIdleHistory(long elapsedRealtime) { in AppIdleHistory() argument 96 this(Environment.getDataSystemDirectory(), elapsedRealtime); in AppIdleHistory() 100 AppIdleHistory(File storageDir, long elapsedRealtime) { in AppIdleHistory() argument 101 mElapsedSnapshot = elapsedRealtime; in AppIdleHistory() 102 mScreenOnSnapshot = elapsedRealtime; in AppIdleHistory() 112 public void updateDisplayLocked(boolean screenOn, long elapsedRealtime) { in updateDisplayLocked() argument 117 mScreenOnSnapshot = elapsedRealtime; in updateDisplayLocked() 119 mScreenOnDuration += elapsedRealtime - mScreenOnSnapshot; in updateDisplayLocked() 120 mElapsedDuration += elapsedRealtime - mElapsedSnapshot; in updateDisplayLocked() 122 mElapsedSnapshot = elapsedRealtime; in updateDisplayLocked() [all …]
|
D | UsageStatsService.java | 202 mAppIdleHistory = new AppIdleHistory(SystemClock.elapsedRealtime()); in onStart() 205 mRealTimeSnapshot = SystemClock.elapsedRealtime(); in onStart() 231 mAppIdleHistory.updateDisplayLocked(isDisplayOn(), SystemClock.elapsedRealtime()); in onBootPhase() 309 SystemClock.elapsedRealtime()); 332 final long elapsedRealtime = SystemClock.elapsedRealtime(); in initializeDefaultsForSystemApps() local 341 mAppIdleHistory.reportUsageLocked(packageName, userId, elapsedRealtime); in initializeDefaultsForSystemApps() 460 final long elapsedRealtime = SystemClock.elapsedRealtime(); in checkIdleStates() local 478 userId, elapsedRealtime); in checkIdleStates() 483 mAppIdleHistory.setIdle(packageName, userId, elapsedRealtime); in checkIdleStates() 490 + (SystemClock.elapsedRealtime() - elapsedRealtime)); in checkIdleStates() [all …]
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BatteryStatsImpl.java | 199 public long elapsedRealtime(); in elapsedRealtime() method 204 public long elapsedRealtime() { in elapsedRealtime() method in BatteryStatsImpl.SystemClocks 205 return SystemClock.elapsedRealtime(); in elapsedRealtime() 606 new NetworkStats(mClocks.elapsedRealtime(), 50), in init() 607 new NetworkStats(mClocks.elapsedRealtime(), 50), in init() 608 new NetworkStats(mClocks.elapsedRealtime(), 50) in init() 611 new NetworkStats(mClocks.elapsedRealtime(), 50), in init() 612 new NetworkStats(mClocks.elapsedRealtime(), 50), in init() 613 new NetworkStats(mClocks.elapsedRealtime(), 50) in init() 618 void onTimeStarted(long elapsedRealtime, long baseUptime, long baseRealtime); in onTimeStarted() argument [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/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiConnectivityManagerTest.java | 78 when(mClock.elapsedRealtime()).thenReturn(SystemClock.elapsedRealtime()); in setUp() 343 when(mClock.elapsedRealtime()).thenReturn(currentTimeStamp); in connectionAttemptRateLimitedWhenScreenOff() 351 when(mClock.elapsedRealtime()).thenReturn(currentTimeStamp); in connectionAttemptRateLimitedWhenScreenOff() 382 when(mClock.elapsedRealtime()).thenReturn(currentTimeStamp); in connectionAttemptNotRateLimitedWhenScreenOff() 390 when(mClock.elapsedRealtime()).thenReturn( in connectionAttemptNotRateLimitedWhenScreenOff() 422 when(mClock.elapsedRealtime()).thenReturn(currentTimeStamp); in connectionAttemptNotRateLimitedWhenScreenOffAfterUserSelection() 433 when(mClock.elapsedRealtime()).thenReturn(currentTimeStamp); in connectionAttemptNotRateLimitedWhenScreenOffAfterUserSelection() 537 when(mClock.elapsedRealtime()).thenReturn(currentTimeStamp); in checkPeriodicScanIntervalWhenDisconnected() 545 when(mClock.elapsedRealtime()).thenReturn(currentTimeStamp); in checkPeriodicScanIntervalWhenDisconnected() 558 when(mClock.elapsedRealtime()).thenReturn(currentTimeStamp); in checkPeriodicScanIntervalWhenDisconnected() [all …]
|
D | WifiQualifiedNetworkSelectorTest.java | 81 when(mClock.elapsedRealtime()).thenReturn(SystemClock.elapsedRealtime()); in setUp() 105 long timeStamp = mClock.elapsedRealtime(); in getScanDetails() 887 when(mClock.elapsedRealtime()).thenReturn(SystemClock.elapsedRealtime() in networkChooseWithOneBssidDisableExpire() 1149 when(mClock.elapsedRealtime()).thenReturn(SystemClock.elapsedRealtime() + 11 * 1000); in noNewQNSCurrentNetworkQualified() 1192 when(mClock.elapsedRealtime()).thenReturn(SystemClock.elapsedRealtime() + 11 * 1000); in noNewQNSLinkBouncing() 1232 when(mClock.elapsedRealtime()).thenReturn(SystemClock.elapsedRealtime() + 11 * 1000); in currentNetworkNotQualifiedDueToBandMismatch() 1276 when(mClock.elapsedRealtime()).thenReturn(SystemClock.elapsedRealtime() + 11 * 1000); in currentNetworkNotQualifiedDueToOpenNetwork() 1327 when(mClock.elapsedRealtime()).thenReturn(SystemClock.elapsedRealtime() + 11 * 1000); in currentNetworkNotQualifiedDueToEphemeral() 1371 when(mClock.elapsedRealtime()).thenReturn(SystemClock.elapsedRealtime() + 11 * 1000); in currentNetworkNotQualifiedDueToLow5GRssi() 1420 when(mClock.elapsedRealtime()).thenReturn(SystemClock.elapsedRealtime() + 11 * 1000); in currentNetworkNotQualifiedDueToLow2GRssi() [all …]
|
/frameworks/base/core/java/android/os/ |
D | CountDownTimer.java | 92 mStopTimeInFuture = SystemClock.elapsedRealtime() + mMillisInFuture; in start() 124 final long millisLeft = mStopTimeInFuture - SystemClock.elapsedRealtime(); 132 long lastTickStart = SystemClock.elapsedRealtime(); 136 long delay = lastTickStart + mCountdownInterval - SystemClock.elapsedRealtime();
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsSamplingTimerTest.java | 144 timeBase.init(clocks.uptimeMillis(), clocks.elapsedRealtime()); in testSampleTimerSummaryParceling() 149 timeBase.setRunning(true, clocks.uptimeMillis(), clocks.elapsedRealtime()); in testSampleTimerSummaryParceling() 159 assertEquals(10, timer.getTotalTimeLocked(clocks.elapsedRealtime(), in testSampleTimerSummaryParceling() 165 timer.writeSummaryFromParcelLocked(onBatterySummaryParcel, clocks.elapsedRealtime() * 1000); in testSampleTimerSummaryParceling() 169 timeBase.setRunning(false, clocks.uptimeMillis(), clocks.elapsedRealtime()); in testSampleTimerSummaryParceling() 171 assertEquals(10, timer.getTotalTimeLocked(clocks.elapsedRealtime(), in testSampleTimerSummaryParceling() 178 clocks.elapsedRealtime() * 1000); in testSampleTimerSummaryParceling()
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | LocationRequestStatistics.java | 107 mInitialElapsedTimeMs = SystemClock.elapsedRealtime(); in PackageStatistics() 116 mLastActivitationElapsedTimeMs = SystemClock.elapsedRealtime(); in startRequesting() 140 = SystemClock.elapsedRealtime() - mLastActivitationElapsedTimeMs; in stopRequesting() 152 += SystemClock.elapsedRealtime() - mLastActivitationElapsedTimeMs; in getDurationMs() 161 return SystemClock.elapsedRealtime() - mInitialElapsedTimeMs; in getTimeSinceFirstRequestMs()
|
/frameworks/base/services/net/java/android/net/util/ |
D | Stopwatch.java | 46 mStartTimeMs = SystemClock.elapsedRealtime(); in start() 54 mStopTimeMs = SystemClock.elapsedRealtime(); in stop() 65 return (SystemClock.elapsedRealtime() - mStartTimeMs); in lap()
|
/frameworks/volley/src/main/java/com/android/volley/toolbox/ |
D | BasicNetwork.java | 87 long requestStart = SystemClock.elapsedRealtime(); in performRequest() 108 SystemClock.elapsedRealtime() - requestStart); in performRequest() 118 SystemClock.elapsedRealtime() - requestStart); in performRequest() 131 long requestLifetime = SystemClock.elapsedRealtime() - requestStart; in performRequest() 138 SystemClock.elapsedRealtime() - requestStart); in performRequest() 156 responseHeaders, false, SystemClock.elapsedRealtime() - requestStart); in performRequest() 222 long now = SystemClock.elapsedRealtime(); in logError()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/ |
D | SipConnectionBase.java | 66 mConnectTimeReal = SystemClock.elapsedRealtime(); in setState() 75 mHoldingStartTime = SystemClock.elapsedRealtime(); in setState() 107 dur = SystemClock.elapsedRealtime() - mConnectTimeReal; in getDurationMillis() 122 dur = SystemClock.elapsedRealtime() - mHoldingStartTime; in getHoldDurationMillis()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | Clock.java | 39 public long elapsedRealtime() { in elapsedRealtime() method in Clock 40 return SystemClock.elapsedRealtime(); in elapsedRealtime()
|
/frameworks/base/core/java/android/net/ |
D | NetworkStats.java | 84 private long elapsedRealtime; field in NetworkStats 190 public NetworkStats(long elapsedRealtime, int initialSize) { in NetworkStats() argument 191 this.elapsedRealtime = elapsedRealtime; in NetworkStats() 222 elapsedRealtime = parcel.readLong(); in NetworkStats() 239 dest.writeLong(elapsedRealtime); in writeToParcel() 256 final NetworkStats clone = new NetworkStats(elapsedRealtime, size); in clone() 340 return elapsedRealtime; in getElapsedRealtime() 344 elapsedRealtime = time; in setElapsedRealtime() 352 return SystemClock.elapsedRealtime() - elapsedRealtime; in getElapsedRealtimeAge() 617 long deltaRealtime = left.elapsedRealtime - right.elapsedRealtime; in subtract() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | Chronometer.java | 119 mBase = SystemClock.elapsedRealtime(); in init() 133 updateText(SystemClock.elapsedRealtime()); in setCountDown() 154 updateText(SystemClock.elapsedRealtime()); in setBase() 295 updateText(SystemClock.elapsedRealtime()); in updateRunning() 309 updateText(SystemClock.elapsedRealtime());
|
/frameworks/volley/src/main/java/com/android/volley/ |
D | NetworkDispatcher.java | 86 long startTimeMs = SystemClock.elapsedRealtime(); in run() 137 volleyError.setNetworkTimeMs(SystemClock.elapsedRealtime() - startTimeMs); in run() 142 volleyError.setNetworkTimeMs(SystemClock.elapsedRealtime() - startTimeMs); in run()
|
/frameworks/base/tools/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/location/java/android/location/ |
D | LocationRequest.java | 396 long elapsedRealtime = SystemClock.elapsedRealtime(); in setExpireIn() local 399 if (millis > Long.MAX_VALUE - elapsedRealtime) { in setExpireIn() 402 mExpireAt = millis + elapsedRealtime; in setExpireIn() 662 long expireIn = mExpireAt - SystemClock.elapsedRealtime(); in toString()
|
/frameworks/base/services/core/java/com/android/server/job/controllers/ |
D | TimeController.java | 142 final long nowElapsedMillis = SystemClock.elapsedRealtime(); in checkExpiredDeadlinesAndResetAlarm() 175 final long nowElapsedMillis = SystemClock.elapsedRealtime(); in checkExpiredDelaysAndResetAlarm() 245 final long earliestWakeupTimeElapsed = SystemClock.elapsedRealtime(); in maybeAdjustAlarmTime() 290 final long nowElapsed = SystemClock.elapsedRealtime(); in dumpControllerStateLocked() 292 pw.print(SystemClock.elapsedRealtime()); in dumpControllerStateLocked()
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | TextViewActivity.java | 60 long elapsedMillis = SystemClock.elapsedRealtime(); in waitForWindowFocus() 64 long newElapsedMillis = SystemClock.elapsedRealtime(); in waitForWindowFocus()
|
/frameworks/base/core/java/android/gesture/ |
D | GestureStore.java | 231 start = SystemClock.elapsedRealtime(); in save() 261 long end = SystemClock.elapsedRealtime(); in save() 286 start = SystemClock.elapsedRealtime(); in load() 298 long end = SystemClock.elapsedRealtime(); in load()
|
/frameworks/base/services/core/java/com/android/server/ |
D | NetworkTimeUpdateService.java | 173 final long refTime = SystemClock.elapsedRealtime(); in onPollNetworkTimeUnderWakeLock() 213 mLastNtpFetchTime = SystemClock.elapsedRealtime(); in onPollNetworkTimeUnderWakeLock() 237 long now = SystemClock.elapsedRealtime(); in resetAlarm() 258 mNitzTimeSetTime = SystemClock.elapsedRealtime(); 260 mNitzZoneSetTime = SystemClock.elapsedRealtime();
|
/frameworks/base/test-runner/src/android/test/ |
D | SyncBaseInstrumentation.java | 59 long startTimeInMillis = SystemClock.elapsedRealtime(); in syncProvider() 69 if (SystemClock.elapsedRealtime() > endTimeInMillis) { in syncProvider()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | AppTimeTracker.java | 49 long now = SystemClock.elapsedRealtime(); in start() 70 long elapsedTime = SystemClock.elapsedRealtime() - mStartedTime; in stop() 117 TimeUtils.formatDuration(SystemClock.elapsedRealtime(), mStartedTime, pw); in dump()
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
D | StopWatchMap.java | 48 mStartTime = SystemClock.elapsedRealtime(); in start() 56 long stopTime = SystemClock.elapsedRealtime(); in stop()
|