Home
last modified time | relevance | path

Searched refs:SystemClock (Results 1 – 25 of 610) 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/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
DTouchUtils.java20 import android.os.SystemClock;
41 long downTime = SystemClock.uptimeMillis(); in tapView()
42 long eventTime = SystemClock.uptimeMillis(); in tapView()
49 eventTime = SystemClock.uptimeMillis(); in tapView()
56 eventTime = SystemClock.uptimeMillis(); in tapView()
72 long downTime = SystemClock.uptimeMillis(); in touchAndCancelView()
73 long eventTime = SystemClock.uptimeMillis(); in touchAndCancelView()
80 eventTime = SystemClock.uptimeMillis(); in touchAndCancelView()
99 long downTime = SystemClock.uptimeMillis(); in clickView()
100 long eventTime = SystemClock.uptimeMillis(); in clickView()
[all …]
/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/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
DTwoWayBindingAdapterTest.java22 import android.os.SystemClock;
69 long timeout = SystemClock.uptimeMillis() + 500; in testListViewSelectedItemPosition()
71 SystemClock.uptimeMillis() < timeout) { in testListViewSelectedItemPosition()
102 long downTime = SystemClock.uptimeMillis(); in clickView()
103 long eventTime = SystemClock.uptimeMillis(); in clickView()
110 eventTime = SystemClock.uptimeMillis(); in clickView()
117 eventTime = SystemClock.uptimeMillis(); in clickView()
152 long timeout = SystemClock.uptimeMillis() + 1500; in testCalendarViewDate()
166 } while (date[0] == date[1] && SystemClock.uptimeMillis() < timeout); in testCalendarViewDate()
168 timeout = SystemClock.uptimeMillis() + 100; in testCalendarViewDate()
[all …]
/frameworks/base/services/core/java/com/android/server/
DSystemServiceManager.java21 import android.os.SystemClock;
124 long time = SystemClock.elapsedRealtime(); in startService()
131 warnIfTooLong(SystemClock.elapsedRealtime() - time, service, "onStart"); in startService()
152 long time = SystemClock.elapsedRealtime(); in startBootPhase()
162 warnIfTooLong(SystemClock.elapsedRealtime() - time, service, "onBootPhase"); in startBootPhase()
184 long time = SystemClock.elapsedRealtime(); in startUser()
191 warnIfTooLong(SystemClock.elapsedRealtime() - time, service, "onStartUser "); in startUser()
203 long time = SystemClock.elapsedRealtime(); in unlockUser()
210 warnIfTooLong(SystemClock.elapsedRealtime() - time, service, "onUnlockUser "); in unlockUser()
222 long time = SystemClock.elapsedRealtime(); in switchUser()
[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/services/core/java/com/android/server/location/
DLocationRequestStatistics.java3 import android.os.SystemClock;
127 mInitialElapsedTimeMs = SystemClock.elapsedRealtime(); in PackageStatistics()
138 mLastActivitationElapsedTimeMs = SystemClock.elapsedRealtime(); in startRequesting()
153 long nowElapsedTimeMs = SystemClock.elapsedRealtime(); in updateForeground()
171 = SystemClock.elapsedRealtime() - mLastActivitationElapsedTimeMs; in stopRequesting()
184 += SystemClock.elapsedRealtime() - mLastActivitationElapsedTimeMs; in getDurationMs()
196 += SystemClock.elapsedRealtime() - mLastForegroundElapsedTimeMs; in getForegroundDurationMs()
205 return SystemClock.elapsedRealtime() - mInitialElapsedTimeMs; in getTimeSinceFirstRequestMs()
/frameworks/base/services/net/java/android/net/util/
DStopwatch.java19 import android.os.SystemClock;
46 mStartTimeMs = SystemClock.elapsedRealtime(); in start()
54 mStopTimeMs = SystemClock.elapsedRealtime(); in stop()
65 return (SystemClock.elapsedRealtime() - mStartTimeMs); in lap()
/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/support/wear/src/androidTest/java/androidx/wear/widget/
DScrollManagerTest.java25 import android.os.SystemClock;
125 long downTime = SystemClock.uptimeMillis(); in scroll()
126 long eventTime = SystemClock.uptimeMillis(); in scroll()
140 eventTime = SystemClock.uptimeMillis(); in scroll()
145 eventTime = SystemClock.uptimeMillis(); in scroll()
152 long downTime = SystemClock.uptimeMillis(); in scrollOnArch()
153 long eventTime = SystemClock.uptimeMillis(); in scrollOnArch()
171 eventTime = SystemClock.uptimeMillis(); in scrollOnArch()
176 eventTime = SystemClock.uptimeMillis(); in scrollOnArch()
/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/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.java101 public final class SystemClock { class
107 private SystemClock() { in SystemClock() method in SystemClock
193 return SystemClock.uptimeMillis(); in uptimeClock()
216 return SystemClock.elapsedRealtime();
312 return SystemClock.currentNetworkTimeMillis();
/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/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/support/core/ktx/src/androidTest/java/androidx/core/os/
DHandlerTest.kt21 import android.os.SystemClock
68 handler.postAtTime(SystemClock.uptimeMillis() + 10) { in postAtTimeLambda()
78 val runnable = handler.postAtTime(SystemClock.uptimeMillis() + 10) { in postAtTimeLambdaRemoved()
90 handler.postAtTime(SystemClock.uptimeMillis() + 10, token) { in postAtTimeLambdaWithTokenRuns()
104 handler.postAtTime(SystemClock.uptimeMillis() + 10, token) { in postAtTimeLambdaWithTokenCancelWithToken()
/frameworks/support/dynamic-animation/src/main/java/androidx/dynamicanimation/animation/
DAnimationHandler.java22 import android.os.SystemClock;
60 mCurrentFrameTime = SystemClock.uptimeMillis(); in dispatchAnimationFrame()
130 mDelayedCallbackStartTime.put(callback, (SystemClock.uptimeMillis() + delay)); in addAnimationFrameCallback()
147 long currentTime = SystemClock.uptimeMillis(); in doAnimationFrame()
229 mLastFrameTime = SystemClock.uptimeMillis(); in FrameCallbackProvider14()
238 long delay = FRAME_DELAY_MS - (SystemClock.uptimeMillis() - mLastFrameTime); in postFrameCallback()
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/content/
DSimpleWakefulService.java22 import android.os.SystemClock;
46 + "/5 @ " + SystemClock.elapsedRealtime()); in onHandleIntent()
52 Log.i("SimpleWakefulReceiver", "Completed service @ " + SystemClock.elapsedRealtime()); in onHandleIntent()
/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/
DKernelUidCpuTimeReaderBase.java20 import android.os.SystemClock;
43 if (SystemClock.elapsedRealtime() < mLastTimeReadMs + mThrottleInterval) { in readDelta()
50 mLastTimeReadMs = SystemClock.elapsedRealtime(); in readDelta()

12345678910>>...25