/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
D | EventCapturingClickListener.java | 42 long waitTime = 5; // seconds in assertClicked() local 43 view = mViews.poll(waitTime, SECONDS); in assertClicked() 48 + waitTime in assertClicked() 63 long waitTime = 1; // seconds in assertNoneClicked() local 64 View view = mViews.poll(waitTime, SECONDS); in assertNoneClicked()
|
D | EventCapturingLongClickListener.java | 57 long waitTime = 5; // seconds in assertLongClicked() local 58 view = mViews.poll(waitTime, SECONDS); in assertLongClicked() 63 + waitTime in assertLongClicked() 78 long waitTime = 1; // seconds in assertNoneLongClicked() local 79 View view = mViews.poll(waitTime, SECONDS); in assertNoneLongClicked()
|
D | EventCapturingHoverListener.java | 57 long waitTime = 1; // seconds in assertNonePropagated() local 58 MotionEvent event = mEvents.poll(waitTime, SECONDS); in assertNonePropagated() 73 long waitTime = 5; // seconds in assertPropagated() local 80 ev = mEvents.poll(waitTime, SECONDS); in assertPropagated() 82 "Expected " + expected + " but none present after " + waitTime + " seconds", in assertPropagated() 86 ev = mEvents.poll(waitTime, SECONDS); in assertPropagated() 98 ev = mEvents.poll(waitTime, SECONDS); in assertPropagated()
|
D | GestureUtils.java | 301 PointF explorePoint, PointF tapPoint, int taps, int waitTime) { 303 long time = waitTime;
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/ |
D | ProcStateAtomTests.java | 155 final int waitTime = SLEEP_OF_FOREGROUND_SERVICE; in testForegroundService() local 156 Thread.sleep(waitTime + STATSD_REPORT_WAIT_TIME_MS + EXTRA_WAIT_TIME_MS); in testForegroundService() 161 AtomTestUtils.assertStatesOccurred(stateSet, data, waitTime, PROC_STATE_FUNCTION); in testForegroundService() 174 final int waitTime = EXTRA_WAIT_TIME_MS + 5_000; // Overlay may need to sit there a while. in testForeground() local 175 Thread.sleep(waitTime + STATSD_REPORT_WAIT_TIME_MS); in testForeground() 192 final int waitTime = SLEEP_OF_ACTION_BACKGROUND_SLEEP; in testBackground() local 193 Thread.sleep(waitTime + STATSD_REPORT_WAIT_TIME_MS + EXTRA_WAIT_TIME_MS); in testBackground() 198 AtomTestUtils.assertStatesOccurred(stateSet, data, waitTime, PROC_STATE_FUNCTION); in testBackground() 211 final int waitTime = SLEEP_OF_ACTION_SLEEP_WHILE_TOP; in testTop() local 212 Thread.sleep(waitTime + STATSD_REPORT_WAIT_TIME_MS + EXTRA_WAIT_TIME_MS); in testTop() [all …]
|
D | DeviceAtomTestCase.java | 236 long waitTime) throws Exception { in runActivity() argument 238 Thread.sleep(waitTime); in runActivity() 304 protected boolean waitForStatsServiceStart(final long waitTime) throws Exception { in waitForStatsServiceStart() argument 305 LogUtil.CLog.i("Waiting %d ms for stats service to start", waitTime); in waitForStatsServiceStart() 308 while ((System.currentTimeMillis() - startTime) < waitTime) { in waitForStatsServiceStart() 315 LogUtil.CLog.w("Stats service did not start after %d ms", waitTime); in waitForStatsServiceStart()
|
D | UidAtomTests.java | 519 final int waitTime = 5000; in testMediaCodecActivity() local 537 waitTime); in testMediaCodecActivity() local 871 final int waitTime = 10_500; 873 "StatsdCtsForegroundActivity", "action", ACTION_SHOW_APPLICATION_OVERLAY, waitTime);
|
/cts/hostsidetests/os/src/android/os/cts/ |
D | ProcfsHostTests.java | 145 long waitTime = 0; in testFile() local 146 while (waitTime < UPDATE_MAX_WAIT_TIME_MS) { in testFile() 148 waitTime += UPDATE_READ_INTERVAL_MS; in testFile()
|
/cts/tests/camera/utils/src/android/hardware/cts/helpers/ |
D | CameraUtils.java | 260 long waitTime = timeOutMs; in getAvailableSurfaceTexture() local 262 while (!view.isAvailable() && waitTime > 0) { in getAvailableSurfaceTexture() 265 waitTime -= (SystemClock.elapsedRealtime() - startTimeMs); in getAvailableSurfaceTexture()
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | MmsTest.java | 152 long waitTime = timeout; in waitForSuccess() local 153 while (!mDone && waitTime > 0) { in waitForSuccess() 155 mLock.wait(waitTime); in waitForSuccess() 159 waitTime = timeout - (SystemClock.elapsedRealtime() - startTime); in waitForSuccess()
|
D | SmsManagerTest.java | 964 long waitTime = timeout - (SystemClock.elapsedRealtime() - startTime); in waitForCalls() local 965 if (waitTime > 0) { in waitForCalls() 966 mLock.wait(waitTime); in waitForCalls()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | SoundPoolTest.java | 337 final long waitTime = in testAutoPauseResume() local 339 assertTrue(waitTime > 0); in testAutoPauseResume() 340 done.wait(waitTime); in testAutoPauseResume()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/qstiles/ |
D | InteractiveVerifierActivity.java | 362 protected void delay(long waitTime) { in delay() argument 364 mHandler.postDelayed(mRunner, waitTime); in delay()
|
/cts/tests/tests/wifi/src/android/net/wifi/cts/ |
D | ScanResultTest.java | 176 long waitTime = System.currentTimeMillis() + timeout; in waitForBroadcast() local 177 while (System.currentTimeMillis() < waitTime in waitForBroadcast()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
D | InteractiveVerifierActivity.java | 394 protected void delay(long waitTime) { in delay() argument 396 mHandler.postDelayed(mRunner, waitTime); in delay()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | WindowManagerStateHelper.java | 401 public void waitAndAssertAppFocus(String appPackageName, long waitTime) { 412 }).setRetryIntervalMs(100).setRetryLimit((int) waitTime / 100));
|
/cts/tests/tests/os/src/android/os/storage/cts/ |
D | StorageManagerTest.java | 898 long waitTime = 0; in waitForCompletion() local 900 while (!isDone() && waitTime < MAX_WAIT_TIME) { in waitForCompletion() 903 waitTime += WAIT_TIME_INCR; in waitForCompletion()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ContentResolverTest.java | 623 final long waitTime = System.nanoTime() - startTime; in testCancelableQuery_WhenCanceledDuringLongRunningQuery_CancelsQueryAndThrows() local 624 if (waitTime > 150 * 1000000L && waitTime < 600 * 1000000L) { in testCancelableQuery_WhenCanceledDuringLongRunningQuery_CancelsQueryAndThrows()
|
/cts/tests/app/src/android/app/cts/ |
D | ActivityManagerProcessStateTest.java | 241 private void waitForAppFocus(String waitForApp, long waitTime) { in waitForAppFocus() argument 242 long waitUntil = SystemClock.elapsedRealtime() + waitTime; in waitForAppFocus()
|