Home
last modified time | relevance | path

Searched refs:maxWait (Results 1 – 10 of 10) sorted by relevance

/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DTestAppInterface.java415 boolean awaitJobStart(long maxWait) throws Exception { in awaitJobStart() argument
416 return awaitJobStart(mJobId, maxWait); in awaitJobStart()
419 boolean awaitJobStart(int jobId, long maxWait) throws Exception { in awaitJobStart() argument
420 return waitUntilTrue(maxWait, () -> { in awaitJobStart()
428 boolean awaitJobStop(long maxWait) throws Exception {
429 return waitUntilTrue(maxWait, () -> {
477 private boolean waitUntilTrue(long maxWait, BooleanSupplier condition) {
478 final long deadline = SystemClock.uptimeMillis() + maxWait;
DJobThrottlingTest.java1523 private boolean waitUntilTrue(long maxWait, BooleanSupplier condition) { in waitUntilTrue() argument
1524 final long deadline = SystemClock.uptimeMillis() + maxWait; in waitUntilTrue()
/cts/hostsidetests/graphics/displaymode/app/src/com/android/cts/graphics/displaymode/
DBootDisplayModeTest.java191 private void waitUntil(Display display, Predicate<Display> pred, Duration maxWait) in waitUntil() argument
216 long remainingNanos = maxWait.toNanos(); in waitUntil()
/cts/tests/tests/webkit/src/android/webkit/cts/
DCookieTest.java64 int maxWait = 10; in setUp() local
65 for (int i=0; i < maxWait; i++) { in setUp()
/cts/tests/tests/display/src/android/display/cts/
DHdrConversionEnabledTest.java228 private void waitUntil(Predicate<DisplayManager> pred, Duration maxWait) in waitUntil() argument
249 long remainingNanos = maxWait.toNanos(); in waitUntil()
DDefaultDisplayModeTest.java379 private void waitUntil(Display display, Predicate<Display> pred, Duration maxWait) in waitUntil() argument
404 long remainingNanos = maxWait.toNanos(); in waitUntil()
DDisplayTest.java530 private void waitUntil(Display display, Predicate<Display> pred, Duration maxWait)
555 long remainingNanos = maxWait.toNanos();
/cts/tests/tests/media/decoder/src/android/media/decoder/cts/
DDecodeOnlyTest.java449 private void sleepUntil(Supplier<Boolean> supplier, Duration maxWait) throws Exception { in sleepUntil() argument
450 final long deadLineMs = System.currentTimeMillis() + maxWait.toMillis(); in sleepUntil()
DDecoderTest.java4377 private void sleepUntil(Supplier<Boolean> supplier, Duration maxWait) throws Exception {
4378 final long deadLineMs = System.currentTimeMillis() + maxWait.toMillis();
/cts/tests/app/src/android/app/cts/
DActivityManagerTest.java2496 private boolean waitUntilTrue(long maxWait, Supplier<Boolean> supplier) throws Exception {
2497 final long deadLine = SystemClock.uptimeMillis() + maxWait;