Home
last modified time | relevance | path

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

/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/
DHdmiCecClientWrapper.java213 long timeoutMillis) throws Exception { in checkConsoleOutput() argument
218 while ((endTime - startTime <= timeoutMillis)) { in checkConsoleOutput()
283 long timeoutMillis) throws Exception { in checkExpectedOutput() argument
284 return checkExpectedOutput(LogicalAddress.BROADCAST, expectedMessage, timeoutMillis); in checkExpectedOutput()
293 long timeoutMillis) throws Exception { in checkExpectedOutput() argument
302 while ((endTime - startTime <= timeoutMillis)) { in checkExpectedOutput()
333 long timeoutMillis) throws Exception { in checkOutputDoesNotContainMessage() argument
343 while ((endTime - startTime <= timeoutMillis)) { in checkOutputDoesNotContainMessage()
/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.java593 public void waitForCount(int count, long timeoutMillis) { in waitForCount() argument
594 waitForCount(count, timeoutMillis, null); in waitForCount()
597 public void waitForCount(long timeoutMillis) { in waitForCount() argument
600 mLock.wait(timeoutMillis); in waitForCount()
607 public void waitForCount(int count, long timeoutMillis, String message) { in waitForCount() argument
613 final long remainingTimeMillis = timeoutMillis - elapsedTimeMillis; in waitForCount()
622 mLock.wait(timeoutMillis); in waitForCount()
636 public void waitForPredicate(Predicate predicate, long timeoutMillis) { in waitForPredicate() argument
640 long remainingTimeMillis = timeoutMillis; in waitForPredicate()
645 mLock.wait(timeoutMillis); in waitForPredicate()
[all …]
/cts/tests/autofillservice/src/android/autofillservice/cts/
DWindowChangeTimeoutException.java24 public WindowChangeTimeoutException(@NonNull Throwable cause, long timeoutMillis) { in WindowChangeTimeoutException() argument
25 super(cause, "no window change event in %dms", timeoutMillis); in WindowChangeTimeoutException()
DUiBot.java901 public AccessibilityEvent waitForWindowChange(Runnable runnable, long timeoutMillis) {
912 }, timeoutMillis);
914 throw new WindowChangeTimeoutException(e, timeoutMillis);
/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/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/common/device-side/util-axt/src/com/android/compatibility/common/util/
DBlockingBroadcastReceiver.java81 public @Nullable Intent awaitForBroadcast(long timeoutMillis) { in awaitForBroadcast() argument
83 return mBlockingQueue.poll(timeoutMillis, TimeUnit.MILLISECONDS); in awaitForBroadcast()
/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/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/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/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/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/hostsidetests/theme/app/src/android/theme/app/
DGenerateImagesActivity.java205 public boolean waitForCompletion(long timeoutMillis) throws InterruptedException { in waitForCompletion() argument
206 return mLatch.await(timeoutMillis, TimeUnit.MILLISECONDS); in waitForCompletion()
/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/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/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.java443 public void waitForDownloadComplete(long timeoutMillis, long... waitForIds) in waitForDownloadComplete() argument
452 mCompleteIds.wait(timeoutMillis); in waitForDownloadComplete()
455 } while ((SystemClock.elapsedRealtime() - startTime) < timeoutMillis); in waitForDownloadComplete()
/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.java1022 public void waitForCount(int count, long timeoutMillis) throws TimeoutException { in waitForCount() argument
1028 final long remainingTimeMillis = timeoutMillis - elapsedTimeMillis; in waitForCount()
1032 mLock.wait(timeoutMillis); in waitForCount()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DBaseDevicePolicyTest.java871 long timeoutMillis) throws Exception { in tryWaitForSuccess() argument
873 while (System.currentTimeMillis() - epoch <= timeoutMillis) { in tryWaitForSuccess()