/cts/hostsidetests/statsd/src/android/cts/statsd/atom/ |
D | ProcStateAtomTests.java | 127 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 …]
|
D | DeviceAtomTestCase.java | 200 long waitTime) throws Exception { in runActivity() argument 214 Thread.sleep(waitTime); in runActivity()
|
/cts/hostsidetests/os/src/android/os/cts/ |
D | ProcfsHostTests.java | 133 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/ |
D | MmsTest.java | 143 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()
|
D | SmsManagerTest.java | 500 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/ |
D | SQLiteQueryBuilderTest.java | 383 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/ |
D | ScanResultTest.java | 130 long waitTime = System.currentTimeMillis() + timeout; in waitForBroadcast() local 131 while (System.currentTimeMillis() < waitTime in waitForBroadcast()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | SoundPoolTest.java | 289 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/ |
D | Camera2MultiViewTestCase.java | 334 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/ |
D | InteractiveVerifierActivity.java | 363 protected void delay(long waitTime) { in delay() argument 365 mHandler.postDelayed(mRunner, waitTime); in delay()
|
/cts/tests/tests/os/src/android/os/storage/cts/ |
D | StorageManagerTest.java | 749 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/ |
D | ContentResolverTest.java | 556 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/ |
D | ActivityManagerProcessStateTest.java | 133 private void waitForAppFocus(String waitForApp, long waitTime) { in waitForAppFocus() argument 134 long waitUntil = SystemClock.elapsedRealtime() + waitTime; in waitForAppFocus()
|