Home
last modified time | relevance | path

Searched refs:SystemClock (Results 1 – 25 of 607) sorted by relevance

12345678910>>...25

/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DConnectivityManagerTestBase.java31 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/
DAbstractEventLogger.java18 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/
DNotificationTests.java32 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/
DSystemServiceManager.java22 import android.os.SystemClock;
127 long time = SystemClock.elapsedRealtime(); in startService()
134 warnIfTooLong(SystemClock.elapsedRealtime() - time, service, "onStart"); in startService()
155 long time = SystemClock.elapsedRealtime(); in startBootPhase()
165 warnIfTooLong(SystemClock.elapsedRealtime() - time, service, "onBootPhase"); in startBootPhase()
187 long time = SystemClock.elapsedRealtime(); in startUser()
194 warnIfTooLong(SystemClock.elapsedRealtime() - time, service, "onStartUser "); in startUser()
206 long time = SystemClock.elapsedRealtime(); in unlockUser()
213 warnIfTooLong(SystemClock.elapsedRealtime() - time, service, "onUnlockUser "); in unlockUser()
225 long time = SystemClock.elapsedRealtime(); in switchUser()
[all …]
/frameworks/base/services/core/java/com/android/server/location/
DLocationRequestStatistics.java3 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/tests/servicestests/src/com/android/server/power/
DAttentionDetectorTest.java38 import android.os.SystemClock;
77 mNextDimming = SystemClock.uptimeMillis() + 3000L; in setUp()
150 int result = mAttentionDetector.onUserActivity(SystemClock.uptimeMillis(), i); in onUserActivity_ignoresWhiteListedActivityTypes()
161 long now = SystemClock.uptimeMillis(); in testUpdateUserActivity_ignoresWhenItsNotTimeYet()
170 long now = SystemClock.uptimeMillis(); in testUpdateUserActivity_schedulesTheNextCheck()
179 long now = SystemClock.uptimeMillis(); in testOnUserActivity_ignoresAfterMaximumExtension()
221 SystemClock.uptimeMillis()); in testCallbackOnSuccess_ignoresIfNoAttention()
229 SystemClock.uptimeMillis()); in testCallbackOnSuccess_callsCallback()
240 SystemClock.uptimeMillis()); in testCallbackOnSuccess_doesNotCallNonCurrentCallback()
251 SystemClock.uptimeMillis()); // old callback came in testCallbackOnSuccess_callsCallbackAfterOldCallbackCame()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DClock.java19 import android.os.SystemClock;
40 return SystemClock.elapsedRealtime(); in getElapsedSinceBootMillis()
49 return SystemClock.elapsedRealtimeNanos(); in getElapsedSinceBootNanos()
58 return SystemClock.uptimeMillis(); in getUptimeSinceBootMillis()
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DInteractionController.java24 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/base/test-runner/src/android/test/
DTouchUtils.java22 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/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/
DReferenceTestUtils.java19 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/
DAbstractStatsBase.java20 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/services/tests/wmtests/src/com/android/server/wm/
DPersisterQueueTests.java27 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/
DWifiStressTest.java30 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/core/java/android/os/
DCountDownTimer.java92 mStopTimeInFuture = SystemClock.elapsedRealtime() + mMillisInFuture; in start()
124 final long millisLeft = mStopTimeInFuture - SystemClock.elapsedRealtime();
129 long lastTickStart = SystemClock.elapsedRealtime();
133 long lastTickDuration = SystemClock.elapsedRealtime() - lastTickStart;
DSystemClock.java104 public final class SystemClock { class
111 private SystemClock() { in SystemClock() method in SystemClock
197 return SystemClock.uptimeMillis(); in uptimeClock()
220 return SystemClock.elapsedRealtime();
318 return SystemClock.currentNetworkTimeMillis();
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/
DSettingsProviderPerformanceTest.java22 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/base/packages/SystemUI/src/com/android/systemui/util/leak/
DTrackedCollections.java19 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/opt/telephony/src/java/com/android/internal/telephony/sip/
DSipConnectionBase.java25 import android.os.SystemClock;
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/telephony/src/java/com/android/internal/telephony/
DClientWakelockTracker.java19 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/
DCachedDeviceState.java20 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/
DDisplayFoldDurationLogger.java21 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/
DProviderAccessStats.java18 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/base/tests/ActivityTests/src/com/google/android/test/activity/
DSlowReceiver.java22 import android.os.SystemClock;
34 long now = SystemClock.elapsedRealtime(); in onReceive()
40 now = SystemClock.elapsedRealtime(); in onReceive()
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DDispatchThread.java21 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/packages/SystemUI/tests/src/com/android/systemui/pip/phone/
DPipTouchStateTest.java28 import android.os.SystemClock;
66 final long currentTime = SystemClock.uptimeMillis(); in testDoubleTapLongSingleTap_notDoubleTapAndNotWaiting()
78 final long currentTime = SystemClock.uptimeMillis(); in testDoubleTapTimeout_timeoutCallbackCalled()
97 final long currentTime = SystemClock.uptimeMillis(); in testDoubleTapDrag_doubleTapCanceled()
110 final long currentTime = SystemClock.uptimeMillis(); in testDoubleTap_doubleTapRegistered()

12345678910>>...25