Home
last modified time | relevance | path

Searched refs:timeoutMillis (Results 1 – 20 of 20) sorted by relevance

/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DAdvertiseSettingsTest.java46 final int timeoutMillis = 60 * 1000; in testReadWriteParcel() local
51 .setTimeout(timeoutMillis) in testReadWriteParcel()
60 assertEquals(timeoutMillis, settingsFromParcel.getTimeout()); in testReadWriteParcel()
/cts/tests/tests/telecom/src/android/telecom/cts/
DTestUtils.java523 public void waitForCount(int count, long timeoutMillis) { in waitForCount() argument
524 waitForCount(count, timeoutMillis, null); in waitForCount()
527 public void waitForCount(long timeoutMillis) { in waitForCount() argument
530 mLock.wait(timeoutMillis); in waitForCount()
537 public void waitForCount(int count, long timeoutMillis, String message) { in waitForCount() argument
543 final long remainingTimeMillis = timeoutMillis - elapsedTimeMillis; in waitForCount()
552 mLock.wait(timeoutMillis); in waitForCount()
566 public void waitForPredicate(Predicate predicate, long timeoutMillis) { in waitForPredicate() argument
570 long remainingTimeMillis = timeoutMillis; in waitForPredicate()
575 mLock.wait(timeoutMillis); in waitForPredicate()
[all …]
/cts/tests/tests/role/src/android/app/role/cts/
DWaitForResultActivity.java46 public Pair<Integer, Intent> waitForActivityResult(long timeoutMillis) in waitForActivityResult() argument
48 mLatch.await(timeoutMillis, TimeUnit.MILLISECONDS); in waitForActivityResult()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DBlockingBroadcastReceiver.java86 public @Nullable Intent awaitForBroadcast(long timeoutMillis) { in awaitForBroadcast() argument
88 return mBlockingQueue.poll(timeoutMillis, TimeUnit.MILLISECONDS); in awaitForBroadcast()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DBlockingBroadcastReceiver.java86 public @Nullable Intent awaitForBroadcast(long timeoutMillis) { in awaitForBroadcast() argument
88 return mBlockingQueue.poll(timeoutMillis, TimeUnit.MILLISECONDS); in awaitForBroadcast()
/cts/tests/tests/net/src/android/net/cts/
DLocalSocketTest.java207 int timeoutMillis = 1000; in testSetSoTimeout_readTimeout() local
208 clientSocket.setSoTimeout(timeoutMillis); in testSetSoTimeout_readTimeout()
220 int allowedTime = timeoutMillis + 2000; in testSetSoTimeout_readTimeout()
237 int timeoutMillis = 1000; in testSetSoTimeout_writeTimeout() local
238 clientSocket.setSoTimeout(timeoutMillis); in testSetSoTimeout_writeTimeout()
255 int allowedTime = timeoutMillis + 2000; in testSetSoTimeout_writeTimeout()
/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/
DExternalStorageTest.java167 public void waitForDownloadComplete(long timeoutMillis, long... waitForIds) in waitForDownloadComplete() argument
176 mCompleteIds.wait(timeoutMillis); in waitForDownloadComplete()
179 } while ((SystemClock.elapsedRealtime() - startTime) < timeoutMillis); in waitForDownloadComplete()
/cts/hostsidetests/theme/app/src/android/theme/app/
DGenerateImagesActivity.java177 public boolean waitForCompletion(long timeoutMillis) throws InterruptedException { in waitForCompletion() argument
178 return mLatch.await(timeoutMillis, TimeUnit.MILLISECONDS); in waitForCompletion()
/cts/tests/tests/batterysaving/src/android/os/cts/batterysaving/
DActionChargingTest.java74 public void await(long timeoutMillis) throws InterruptedException { in await() argument
76 mLatch.await(timeoutMillis, TimeUnit.MILLISECONDS)); in await()
/cts/tests/JobScheduler/src/android/jobscheduler/
DMockJobService.java422 public boolean awaitExecution(long timeoutMillis) throws InterruptedException { in awaitExecution() argument
423 final boolean executed = mLatch.await(timeoutMillis, TimeUnit.MILLISECONDS); in awaitExecution()
439 public boolean awaitTimeout(long timeoutMillis) throws InterruptedException { in awaitTimeout() argument
440 return !mLatch.await(timeoutMillis, TimeUnit.MILLISECONDS); in awaitTimeout()
/cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/
DMockJobService.java422 public boolean awaitExecution(long timeoutMillis) throws InterruptedException { in awaitExecution() argument
423 final boolean executed = mLatch.await(timeoutMillis, TimeUnit.MILLISECONDS); in awaitExecution()
439 public boolean awaitTimeout(long timeoutMillis) throws InterruptedException { in awaitTimeout() argument
440 return !mLatch.await(timeoutMillis, TimeUnit.MILLISECONDS); in awaitTimeout()
/cts/tests/tests/netsecpolicy/src/android/security/
DNetworkSecurityPolicyTestBase.java337 long timeoutMillis = timeUnit.toMillis(timeout); in get() local
338 long deadlineTimeMillis = System.currentTimeMillis() + timeoutMillis; in get()
342 if ((millisTillDeadline <= 0) || (millisTillDeadline > timeoutMillis)) { in get()
/cts/tests/accessibility/common/src/android/accessibility/cts/common/
DInstrumentedAccessibilityService.java208 long timeoutMillis) { in getInstanceForClass() argument
209 final long timeoutTimeMillis = SystemClock.uptimeMillis() + timeoutMillis; in getInstanceForClass()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DActivityLaunchUtils.java215 BooleanSupplier condition, long timeoutMillis, String conditionName) { in executeAndWaitOn() argument
228 TestUtils.waitOn(waitObject, condition, timeoutMillis, conditionName); in executeAndWaitOn()
/cts/tests/app/src/android/app/cts/
DDownloadManagerTestBase.java383 public void waitForDownloadComplete(long timeoutMillis, long... waitForIds) in waitForDownloadComplete() argument
392 mCompleteIds.wait(timeoutMillis); in waitForDownloadComplete()
395 } while ((SystemClock.elapsedRealtime() - startTime) < timeoutMillis); in waitForDownloadComplete()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DVisualVoicemailServiceTest.java632 public void assertReceived(long timeoutMillis) { in assertReceived() argument
634 mFuture.get(timeoutMillis, TimeUnit.MILLISECONDS); in assertReceived()
640 public void assertNotReceived(long timeoutMillis) { in assertNotReceived() argument
642 mFuture.get(timeoutMillis, TimeUnit.MILLISECONDS); in assertNotReceived()
/cts/tests/tests/display/src/android/display/cts/
DVirtualDisplayTest.java333 public boolean waitForColor(int color, long timeoutMillis) { in waitForColor() argument
334 long timeoutTime = SystemClock.uptimeMillis() + timeoutMillis; in waitForColor()
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/
DBasePrintTest.java1021 public void waitForCount(int count, long timeoutMillis) throws TimeoutException { in waitForCount() argument
1027 final long remainingTimeMillis = timeoutMillis - elapsedTimeMillis; in waitForCount()
1031 mLock.wait(timeoutMillis); in waitForCount()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DBaseDevicePolicyTest.java804 long timeoutMillis) throws Exception { in tryWaitForSuccess() argument
806 while (System.currentTimeMillis() - epoch <= timeoutMillis) { in tryWaitForSuccess()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DUiBot.java897 public AccessibilityEvent waitForWindowChange(Runnable runnable, long timeoutMillis)
906 }, timeoutMillis);