/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/ |
D | WindowChangeTimeoutException.java | 24 public WindowChangeTimeoutException(@NonNull Throwable cause, long timeoutMillis) { in WindowChangeTimeoutException() argument 25 super(cause, "no window change event in %dms", timeoutMillis); in WindowChangeTimeoutException()
|
/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/wifi/src/android/net/wifi/cts/ |
D | WaitForResultActivity.java | 60 public boolean waitForActivityResult(long timeoutMillis) in waitForActivityResult() argument 62 assertThat(mLatch.await(timeoutMillis, TimeUnit.MILLISECONDS)).isTrue(); in waitForActivityResult() 124 public boolean waitForServiceResult(long timeoutMillis) in waitForServiceResult() argument 126 assertThat(mLatch.await(timeoutMillis, TimeUnit.MILLISECONDS)).isTrue(); in waitForServiceResult()
|
/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/ |
D | HdmiCecClientWrapper.java | 374 long timeoutMillis) throws Exception { in checkConsoleOutput() argument 376 return checkConsoleOutput(expectedMessage, timeoutMillis, mInputConsole); in checkConsoleOutput() 381 String expectedMessage, long timeoutMillis, BufferedReader inputConsole) in checkConsoleOutput() argument 386 while ((endTime - startTime <= timeoutMillis)) { in checkConsoleOutput() 518 long timeoutMillis) throws Exception { in checkExpectedOutput() argument 520 targetDevice, LogicalAddress.BROADCAST, expectedMessage, timeoutMillis, false); in checkExpectedOutput() 529 long timeoutMillis) throws Exception { in checkExpectedOutput() argument 530 return checkExpectedOutput(targetDevice, toDevice, expectedMessage, timeoutMillis, false); in checkExpectedOutput() 544 long timeoutMillis, in checkExpectedOutput() argument 565 while ((endTime - startTime <= timeoutMillis)) { in checkExpectedOutput() [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/tests/tests/permission/src/android/permission/cts/ |
D | OneTimePermissionTest.java | 205 private void assertGrantedState(String s, int permissionGranted, long timeoutMillis) { in assertGrantedState() argument 208 .checkPermission(ACCESS_FINE_LOCATION, APP_PKG_NAME)), timeoutMillis); in assertGrantedState() local 211 private void assertGranted(long timeoutMillis) { in assertGranted() argument 213 timeoutMillis); in assertGranted() 216 private void assertDenied(long timeoutMillis) { in assertDenied() argument 218 timeoutMillis); in assertDenied()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | Utils.java | 49 public static void tryWaitForSuccess(BooleanSupplier successCondition, long timeoutMillis) in tryWaitForSuccess() argument 52 while (System.currentTimeMillis() - epoch <= timeoutMillis) { in tryWaitForSuccess()
|
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/ |
D | NoOpHotwordDetectionService.java | 39 long timeoutMillis, in onDetect() argument 41 super.onDetect(eventPayload, timeoutMillis, callback); in onDetect()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | BlockingBroadcastReceiver.java | 186 public void awaitForBroadcastOrFail(long timeoutMillis) { in awaitForBroadcastOrFail() argument 187 if (awaitForBroadcast(timeoutMillis) == null) { in awaitForBroadcastOrFail() 196 public @Nullable Intent awaitForBroadcast(long timeoutMillis) { in awaitForBroadcast() argument 202 mReceivedIntent = mBlockingQueue.poll(timeoutMillis, TimeUnit.MILLISECONDS); in awaitForBroadcast()
|
D | SystemUtil.java | 342 public static void eventually(@NonNull ThrowingRunnable r, long timeoutMillis) { in eventually() argument 350 if (System.currentTimeMillis() - start < timeoutMillis) { in eventually() 384 public static <T> T getEventually(@NonNull Callable<T> c, long timeoutMillis) throws Exception { in getEventually() argument 391 if (System.currentTimeMillis() - start < timeoutMillis) { in getEventually()
|
/cts/hostsidetests/calllog/app/src/android/provider/cts/contacts/testapp/ |
D | BootReceiver.java | 38 public static boolean waitForBootComplete(Context context, String action, long timeoutMillis) in waitForBootComplete() argument 51 onBootCompleteChanged.get(timeoutMillis, TimeUnit.MILLISECONDS); in waitForBootComplete()
|
/cts/hostsidetests/scopedstorage/host/src/android/scopedstorage/cts/host/ |
D | BaseHostTestCase.java | 55 protected static void eventually(ThrowingRunnable r, long timeoutMillis) { in eventually() argument 63 if (System.currentTimeMillis() - start < timeoutMillis) { in eventually()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | TestUtils.java | 681 public void waitForCount(int count, long timeoutMillis) { in waitForCount() argument 682 waitForCount(count, timeoutMillis, null); in waitForCount() 685 public void waitForCount(long timeoutMillis) { in waitForCount() argument 688 mLock.wait(timeoutMillis); in waitForCount() 695 public void waitForCount(int count, long timeoutMillis, String message) { in waitForCount() argument 701 final long remainingTimeMillis = timeoutMillis - elapsedTimeMillis; in waitForCount() 710 mLock.wait(timeoutMillis); in waitForCount() 724 public void waitForPredicate(Predicate predicate, long timeoutMillis) { in waitForPredicate() argument 728 long remainingTimeMillis = timeoutMillis; in waitForPredicate() 733 mLock.wait(timeoutMillis); in waitForPredicate() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/ |
D | ExternalStorageTest.java | 171 public void waitForDownloadComplete(long timeoutMillis, long... waitForIds) in waitForDownloadComplete() argument 180 mCompleteIds.wait(timeoutMillis); in waitForDownloadComplete() 183 } while ((SystemClock.elapsedRealtime() - startTime) < timeoutMillis); in waitForDownloadComplete()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | NativeAnalyzerThread.java | 159 final long timeoutMillis = mSecondsToRun * 1000; 192 timedOut = (now - startedAtMillis) > timeoutMillis;
|
/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/translation/src/android/translation/cts/ |
D | CtsContentCaptureService.java | 139 void awaitSessionCreated(long timeoutMillis) { in awaitSessionCreated() argument 141 mSessionCreatedLatch.await(timeoutMillis, TimeUnit.MILLISECONDS); in awaitSessionCreated()
|
/cts/hostsidetests/theme/app/src/android/theme/app/ |
D | GenerateImagesActivity.java | 213 public boolean waitForCompletion(long timeoutMillis) throws InterruptedException { in waitForCompletion() argument 214 return mLatch.await(timeoutMillis, TimeUnit.MILLISECONDS); in waitForCompletion()
|
/cts/tests/tests/textclassifier/src/android/view/textclassifier/cts/ |
D | CtsTextClassifierService.java | 85 void awaitQuery(long timeoutMillis) { in awaitQuery() argument 87 mRequestLatch.await(timeoutMillis, TimeUnit.MILLISECONDS); in awaitQuery()
|
/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/JobScheduler/src/android/jobscheduler/ |
D | MockJobService.java | 427 public boolean awaitExecution(long timeoutMillis) throws InterruptedException { in awaitExecution() argument 428 final boolean executed = mLatch.await(timeoutMillis, TimeUnit.MILLISECONDS); in awaitExecution() 444 public boolean awaitTimeout(long timeoutMillis) throws InterruptedException { in awaitTimeout() argument 445 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 | 217 Class<T> clazz, long timeoutMillis) { in getInstanceForClass() argument 218 final long timeoutTimeMillis = SystemClock.uptimeMillis() + timeoutMillis; in getInstanceForClass()
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | VisualVoicemailServiceTest.java | 636 public void assertReceived(long timeoutMillis) { in assertReceived() argument 638 mFuture.get(timeoutMillis, TimeUnit.MILLISECONDS); in assertReceived() 644 public void assertNotReceived(long timeoutMillis) { in assertNotReceived() argument 646 mFuture.get(timeoutMillis, TimeUnit.MILLISECONDS); in assertNotReceived()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
D | ActivityLaunchUtils.java | 234 BooleanSupplier condition, long timeoutMillis, String conditionName) { in executeAndWaitOn() argument 247 TestUtils.waitOn(waitObject, condition, timeoutMillis, conditionName); in executeAndWaitOn()
|