/cts/tests/tests/bluetooth/src/android/bluetooth/cts/ |
D | AdvertiseSettingsTest.java | 46 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/ |
D | TestUtils.java | 523 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/ |
D | WaitForResultActivity.java | 46 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/ |
D | BlockingBroadcastReceiver.java | 86 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/ |
D | BlockingBroadcastReceiver.java | 86 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/ |
D | LocalSocketTest.java | 207 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/ |
D | ExternalStorageTest.java | 167 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/ |
D | GenerateImagesActivity.java | 177 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/ |
D | ActionChargingTest.java | 74 public void await(long timeoutMillis) throws InterruptedException { in await() argument 76 mLatch.await(timeoutMillis, TimeUnit.MILLISECONDS)); in await()
|
/cts/tests/JobScheduler/src/android/jobscheduler/ |
D | MockJobService.java | 422 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/ |
D | MockJobService.java | 422 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/ |
D | NetworkSecurityPolicyTestBase.java | 337 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/ |
D | InstrumentedAccessibilityService.java | 208 long timeoutMillis) { in getInstanceForClass() argument 209 final long timeoutTimeMillis = SystemClock.uptimeMillis() + timeoutMillis; in getInstanceForClass()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
D | ActivityLaunchUtils.java | 215 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/ |
D | DownloadManagerTestBase.java | 383 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/ |
D | VisualVoicemailServiceTest.java | 632 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/ |
D | VirtualDisplayTest.java | 333 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/ |
D | BasePrintTest.java | 1021 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/ |
D | BaseDevicePolicyTest.java | 804 long timeoutMillis) throws Exception { in tryWaitForSuccess() argument 806 while (System.currentTimeMillis() - epoch <= timeoutMillis) { in tryWaitForSuccess()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | UiBot.java | 897 public AccessibilityEvent waitForWindowChange(Runnable runnable, long timeoutMillis) 906 }, timeoutMillis);
|