/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ |
D | ConnectivityManagerTestBase.java | 31 import android.os.SystemClock; 98 mLastConnectivityChangeTime = SystemClock.uptimeMillis(); in onReceive() 154 long startTime = SystemClock.uptimeMillis(); in waitForNetworkState() 161 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForNetworkState() 166 SystemClock.sleep(SHORT_TIMEOUT); in waitForNetworkState() 173 long startTime = SystemClock.uptimeMillis(); in waitForWifiState() 180 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForWifiState() 185 SystemClock.sleep(SHORT_TIMEOUT); in waitForWifiState() 192 long startTime = SystemClock.uptimeMillis(); in waitForWifiApState() 199 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForWifiApState() [all …]
|
/frameworks/base/core/java/android/speech/tts/ |
D | AbstractEventLogger.java | 18 import android.os.SystemClock; 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/tests/notification/src/com/android/frameworks/tests/notification/ |
D | NotificationTests.java | 32 import android.os.SystemClock; 256 final long time = SystemClock.currentThreadTimeMillis(); in testCreate() 258 L(" %s: create=%dms", summarize(n), SystemClock.currentThreadTimeMillis() - time); in testCreate() 273 final long time = SystemClock.currentThreadTimeMillis(); in testCreate() 290 … L(" %s: create=%dms", phoneCall.toString(), SystemClock.currentThreadTimeMillis() - time); in testCreate() 295 final long time = SystemClock.currentThreadTimeMillis(); in testCreate() 303 L(" %s: create=%dms", summarize(n), SystemClock.currentThreadTimeMillis() - time); in testCreate() 308 final long time = SystemClock.currentThreadTimeMillis(); in testCreate() 324 L(" %s: create=%dms", summarize(n), SystemClock.currentThreadTimeMillis() - time); in testCreate() 331 final long time = SystemClock.currentThreadTimeMillis(); in testCreate() [all …]
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | LocationRequestStatistics.java | 3 import android.os.SystemClock; 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/services/core/java/com/android/server/ |
D | SystemServiceManager.java | 22 import android.os.SystemClock; 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() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/power/ |
D | AttentionDetectorTest.java | 38 import android.os.SystemClock; 82 mNextDimming = SystemClock.uptimeMillis() + 3000L; in setUp() 164 int result = mAttentionDetector.onUserActivity(SystemClock.uptimeMillis(), i); in onUserActivity_ignoresWhiteListedActivityTypes() 175 long now = SystemClock.uptimeMillis(); in testUpdateUserActivity_ignoresWhenItsNotTimeYet() 184 long now = SystemClock.uptimeMillis(); in testUpdateUserActivity_schedulesTheNextCheck() 193 long now = SystemClock.uptimeMillis(); in testOnUserActivity_ignoresAfterMaximumExtension() 235 SystemClock.uptimeMillis()); in testCallbackOnSuccess_ignoresIfNoAttention() 243 SystemClock.uptimeMillis()); in testCallbackOnSuccess_callsCallback() 254 SystemClock.uptimeMillis()); in testCallbackOnSuccess_doesNotCallNonCurrentCallback() 265 SystemClock.uptimeMillis()); // old callback came in testCallbackOnSuccess_callsCallbackAfterOldCallbackCame() [all …]
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
D | InteractionController.java | 24 import android.os.SystemClock; 189 final long eventTime = SystemClock.uptimeMillis(); in sendKeyAndWaitForEvent() 217 SystemClock.sleep(REGULAR_CLICK_LENGTH); in clickNoSync() 274 SystemClock.sleep(REGULAR_CLICK_LENGTH); in clickRunnable() 294 SystemClock.sleep(mUiAutomatorBridge.getSystemLongPressTime()); 306 mDownTime = SystemClock.uptimeMillis(); 317 final long eventTime = SystemClock.uptimeMillis(); 329 final long eventTime = SystemClock.uptimeMillis(); 452 SystemClock.sleep(mUiAutomatorBridge.getSystemLongPressTime()); 461 SystemClock.sleep(MOTION_EVENT_INJECTION_DELAY_MILLIS); [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | Clock.java | 19 import android.os.SystemClock; 40 return SystemClock.elapsedRealtime(); in getElapsedSinceBootMillis() 49 return SystemClock.elapsedRealtimeNanos(); in getElapsedSinceBootNanos() 58 return SystemClock.uptimeMillis(); in getUptimeSinceBootMillis()
|
/frameworks/base/test-runner/src/android/test/ |
D | TouchUtils.java | 22 import android.os.SystemClock; 258 long downTime = SystemClock.uptimeMillis(); in tapView() 259 long eventTime = SystemClock.uptimeMillis(); in tapView() 266 eventTime = SystemClock.uptimeMillis(); in tapView() 273 eventTime = SystemClock.uptimeMillis(); in tapView() 298 long downTime = SystemClock.uptimeMillis(); in touchAndCancelView() 299 long eventTime = SystemClock.uptimeMillis(); in touchAndCancelView() 306 eventTime = SystemClock.uptimeMillis(); in touchAndCancelView() 333 long downTime = SystemClock.uptimeMillis(); in clickView() 334 long eventTime = SystemClock.uptimeMillis(); in clickView() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/ |
D | IccRecordsTest.java | 46 import android.os.SystemClock; 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() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | PersisterQueueTests.java | 27 import android.os.SystemClock; 94 final long dispatchTime = SystemClock.uptimeMillis(); in testProcessOneItem() 99 final long processDuration = SystemClock.uptimeMillis() - dispatchTime; in testProcessOneItem() 118 final long dispatchTime = SystemClock.uptimeMillis(); in testProcessOneItem_Flush() 123 final long processDuration = SystemClock.uptimeMillis() - dispatchTime; in testProcessOneItem_Flush() 142 final long dispatchTime = SystemClock.uptimeMillis(); in testProcessTwoItems() 149 final long processDuration = SystemClock.uptimeMillis() - dispatchTime; in testProcessTwoItems() 170 long dispatchTime = SystemClock.uptimeMillis(); in testProcessTwoItems_OneAfterAnother() 174 long processDuration = SystemClock.uptimeMillis() - dispatchTime; in testProcessTwoItems_OneAfterAnother() 186 dispatchTime = SystemClock.uptimeMillis(); in testProcessTwoItems_OneAfterAnother() [all …]
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/stress/ |
D | WifiStressTest.java | 30 import android.os.SystemClock; 158 start = SystemClock.uptimeMillis(); in testWifiScanning() 165 scanTimeSum += SystemClock.uptimeMillis() - start; in testWifiScanning() 233 long start = SystemClock.uptimeMillis(); in testWifiReconnectionAfterSleep() 237 ((SystemClock.uptimeMillis() - start) < SCREEN_OFF_TIMER)) { in testWifiReconnectionAfterSleep() 238 SystemClock.sleep(100); in testWifiReconnectionAfterSleep() 242 SystemClock.sleep(WIFI_IDLE_MS + WIFI_SHUTDOWN_DELAY); in testWifiReconnectionAfterSleep() 256 SystemClock.sleep(mWifiSleepTime); in testWifiReconnectionAfterSleep() 273 long startTime = SystemClock.uptimeMillis(); in testWifiReconnectionAfterSleep() 279 long connectionTime = SystemClock.uptimeMillis() - startTime; in testWifiReconnectionAfterSleep()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/ |
D | ReferenceTestUtils.java | 19 import android.os.SystemClock; 53 long deadline = SystemClock.uptimeMillis() + 5_000; in waitForCondition() 55 if (SystemClock.uptimeMillis() > deadline) { in waitForCondition() 58 SystemClock.sleep(100); in waitForCondition()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | AbstractStatsBase.java | 20 import android.os.SystemClock; 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/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 | SystemClock.java | 104 public final class SystemClock { class 111 private SystemClock() { in SystemClock() method in SystemClock 198 return SystemClock.uptimeMillis(); in uptimeClock() 221 return SystemClock.elapsedRealtime(); 319 return SystemClock.currentNetworkTimeMillis();
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/ |
D | TrackedCollections.java | 19 import android.os.SystemClock; 45 collectionState.startUptime = SystemClock.uptimeMillis(); in track() 49 && SystemClock.uptimeMillis() - collectionState.startUptime > HALFWAY_DELAY) { in track() 53 collectionState.lastUptime = SystemClock.uptimeMillis(); in track() 75 long now = SystemClock.uptimeMillis(); in dump()
|
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/ |
D | SettingsProviderPerformanceTest.java | 22 import android.os.SystemClock; 45 final long startTimeMicro = SystemClock.currentTimeMicro(); in testSetAndGetPerformanceForGlobalViaFrontEndApi() 72 final long elapsedTimeMicro = SystemClock.currentTimeMicro() - startTimeMicro; in testSetAndGetPerformanceForGlobalViaFrontEndApi() 89 final long startTimeMicro = SystemClock.currentTimeMicro(); in testSetAndGetPerformanceForGlobalViaProviderApi() 116 final long elapsedTimeMicro = SystemClock.currentTimeMicro() - startTimeMicro; in testSetAndGetPerformanceForGlobalViaProviderApi()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/ |
D | SipConnectionBase.java | 19 import android.os.SystemClock; 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 | ClientWakelockTracker.java | 19 import android.os.SystemClock; 40 long uptime = SystemClock.uptimeMillis(); in startTracking() 53 long uptime = SystemClock.uptimeMillis(); in stopTracking() 65 long uptime = SystemClock.uptimeMillis(); in stopTrackingAll() 76 long uptime = SystemClock.uptimeMillis(); in getClientRequestStats()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | CachedDeviceState.java | 20 import android.os.SystemClock; 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/services/core/java/com/android/server/policy/ |
D | DisplayFoldDurationLogger.java | 21 import android.os.SystemClock; 64 mLastChanged = SystemClock.uptimeMillis(); in onFinishedWakingUp() 81 mLastChanged = SystemClock.uptimeMillis(); in setDeviceFolded() 111 .setLatency(SystemClock.uptimeMillis() - mLastChanged)); in log()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | ProviderAccessStats.java | 18 import android.os.SystemClock; 27 private final long mStartUptime = SystemClock.uptimeMillis(); 58 data.startUptimeMillis = SystemClock.uptimeMillis(); in incrementStats() 93 final long duration = Math.max(1, SystemClock.uptimeMillis() - data.startUptimeMillis); in finishOperation() 105 pw.print((SystemClock.uptimeMillis() - mStartUptime) / (60 * 1000)); in dump()
|
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
D | DispatchThread.java | 21 import android.os.SystemClock; 76 long timeoutBound = SystemClock.uptimeMillis() + timeoutMs; in runJobSync() 80 if (SystemClock.uptimeMillis() > timeoutBound) { in runJobSync() 84 if (SystemClock.uptimeMillis() > timeoutBound) { in runJobSync()
|
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/ |
D | SlowReceiver.java | 22 import android.os.SystemClock; 34 long now = SystemClock.elapsedRealtime(); in onReceive() 40 now = SystemClock.elapsedRealtime(); in onReceive()
|