Home
last modified time | relevance | path

Searched refs:waitTime (Results 1 – 13 of 13) sorted by relevance

/cts/hostsidetests/statsd/src/android/cts/statsd/atom/
DProcStateAtomTests.java127 final int waitTime = SLEEP_OF_FOREGROUND_SERVICE + EXTRA_WAIT_TIME_MS; in testForegroundService() local
128 Thread.sleep(waitTime + STATSD_REPORT_WAIT_TIME_MS); in testForegroundService()
132 assertStatesOccurred(stateSet, data, waitTime, PROC_STATE_FUNCTION); in testForegroundService()
149 final int waitTime = EXTRA_WAIT_TIME_MS + 5_000; // Overlay may need to sit there a while. in testForeground() local
150 Thread.sleep(waitTime + STATSD_REPORT_WAIT_TIME_MS); in testForeground()
169 final int waitTime = SLEEP_OF_ACTION_BACKGROUND_SLEEP + EXTRA_WAIT_TIME_MS; in testBackground() local
170 Thread.sleep(waitTime + STATSD_REPORT_WAIT_TIME_MS); in testBackground()
174 assertStatesOccurred(stateSet, data, waitTime, PROC_STATE_FUNCTION); in testBackground()
191 final int waitTime = SLEEP_OF_ACTION_SLEEP_WHILE_TOP + EXTRA_WAIT_TIME_MS; in testTop() local
192 Thread.sleep(waitTime + STATSD_REPORT_WAIT_TIME_MS); in testTop()
[all …]
DDeviceAtomTestCase.java200 long waitTime) throws Exception { in runActivity() argument
214 Thread.sleep(waitTime); in runActivity()
/cts/hostsidetests/os/src/android/os/cts/
DProcfsHostTests.java133 long waitTime = 0; in testFile() local
134 while (waitTime < UPDATE_MAX_WAIT_TIME_MS) { in testFile()
136 waitTime += UPDATE_READ_INTERVAL_MS; in testFile()
/cts/tests/tests/telephony/src/android/telephony/cts/
DMmsTest.java143 long waitTime = timeout; in waitForSuccess() local
144 while (waitTime > 0) { in waitForSuccess()
146 mLock.wait(waitTime); in waitForSuccess()
153 waitTime = timeout - (SystemClock.elapsedRealtime() - startTime); in waitForSuccess()
DSmsManagerTest.java500 long waitTime = timeout - (SystemClock.elapsedRealtime() - startTime); in waitForCalls() local
501 if (waitTime > 0) { in waitForCalls()
502 mLock.wait(waitTime); in waitForCalls()
/cts/tests/tests/database/src/android/database/sqlite/cts/
DSQLiteQueryBuilderTest.java383 final long waitTime = System.nanoTime() - startTime; in testCancelableQuery_WhenCanceledDueToContention_StopsWaitingAndThrows() local
384 if (waitTime > 150 * 1000000L) { in testCancelableQuery_WhenCanceledDueToContention_StopsWaitingAndThrows()
445 final long waitTime = System.nanoTime() - startTime; in testCancelableQuery_WhenCanceledDuringLongRunningQuery_CancelsQueryAndThrows() local
446 if (waitTime > 150 * 1000000L && waitTime < 600 * 1000000L) { in testCancelableQuery_WhenCanceledDuringLongRunningQuery_CancelsQueryAndThrows()
/cts/tests/tests/net/src/android/net/wifi/cts/
DScanResultTest.java130 long waitTime = System.currentTimeMillis() + timeout; in waitForBroadcast() local
131 while (System.currentTimeMillis() < waitTime in waitForBroadcast()
/cts/tests/tests/media/src/android/media/cts/
DSoundPoolTest.java289 final long waitTime = in testAutoPauseResume() local
291 assertTrue(waitTime > 0); in testAutoPauseResume()
292 done.wait(waitTime); in testAutoPauseResume()
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2MultiViewTestCase.java334 long waitTime = timeOutMs; in getAvailableSurfaceTexture() local
336 while (!view.isAvailable() && waitTime > 0) { in getAvailableSurfaceTexture()
339 waitTime -= (SystemClock.elapsedRealtime() - startTimeMs); in getAvailableSurfaceTexture()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DInteractiveVerifierActivity.java363 protected void delay(long waitTime) { in delay() argument
365 mHandler.postDelayed(mRunner, waitTime); in delay()
/cts/tests/tests/os/src/android/os/storage/cts/
DStorageManagerTest.java749 long waitTime = 0; in waitForCompletion() local
751 while (!isDone() && waitTime < MAX_WAIT_TIME) { in waitForCompletion()
754 waitTime += WAIT_TIME_INCR; in waitForCompletion()
/cts/tests/tests/content/src/android/content/cts/
DContentResolverTest.java556 final long waitTime = System.nanoTime() - startTime; in testCancelableQuery_WhenCanceledDuringLongRunningQuery_CancelsQueryAndThrows() local
557 if (waitTime > 150 * 1000000L && waitTime < 600 * 1000000L) { in testCancelableQuery_WhenCanceledDuringLongRunningQuery_CancelsQueryAndThrows()
/cts/tests/app/src/android/app/cts/
DActivityManagerProcessStateTest.java133 private void waitForAppFocus(String waitForApp, long waitTime) { in waitForAppFocus() argument
134 long waitUntil = SystemClock.elapsedRealtime() + waitTime; in waitForAppFocus()