Home
last modified time | relevance | path

Searched refs:timeoutSec (Results 1 – 9 of 9) sorted by relevance

/cts/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/
DIntentSenderActivity.java77 int timeoutSec = 30; in getResult() local
78 Result result = mResult.poll(timeoutSec, TimeUnit.SECONDS); in getResult()
82 Log.d(TAG, "no result after " + timeoutSec in getResult()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20007/test-app/src/android/security/cts/CVE_2022_20007/
DDeviceTest.java92 final long timeoutSec = 30L; in testRaceCondition() local
123 preferenceChanged.tryAcquire(timeoutSec, TimeUnit.SECONDS); in testRaceCondition()
139 assumeTrue(mDevice.wait(Until.gone(By.pkg(mContext.getPackageName())), timeoutSec)); in testRaceCondition() local
143 preferenceChanged.tryAcquire(getIntegerRes(R.integer.permitCount), timeoutSec, in testRaceCondition() local
145 preferenceChanged2.tryAcquire(timeoutSec, TimeUnit.SECONDS); in testRaceCondition()
/cts/tests/BlobStore/aidl/com/android/cts/blob/
DICommandReceiver.aidl24 long size, long timeoutSec); in commit() argument
/cts/tests/BlobStore/helper-app/src/com/android/cts/blob/helper/
DBlobStoreTestService.java58 long timeoutSec, long size) { in commit() argument
72 return callback.get(timeoutSec, TimeUnit.SECONDS); in commit()
/cts/hostsidetests/car/util/src/android/car/cts/
DCarHostJUnit4TestCase.java469 protected void waitUntilCurrentUserIsNotSystem(int timeoutSec) throws Exception { in waitUntilCurrentUserIsNotSystem() argument
470 CommonTestUtils.waitUntil("timed out (" + timeoutSec + "s) waiting for current user to NOT " in waitUntilCurrentUserIsNotSystem()
471 + "be the system user", timeoutSec, () -> getCurrentUserId() != SYSTEM_USER_ID); in waitUntilCurrentUserIsNotSystem()
477 protected void waitUntilAtLeastNPersistentUsersAreAvailable(int timeoutSec, int n) in waitUntilAtLeastNPersistentUsersAreAvailable() argument
479 waitUntil(timeoutSec, () -> getAllPersistentUsers().size() >= n, "%d persistent users", n); in waitUntilAtLeastNPersistentUsersAreAvailable()
/cts/tests/tests/content/src/android/content/pm/cts/
DLauncherAppsForHiddenProfilesTest.java240 long timeoutSec = 2; in assertCallbacksPropagation() local
242 assertThat(callback.mPackageAdded.await(timeoutSec, TimeUnit.SECONDS)) in assertCallbacksPropagation()
244 assertThat(callback.mPackageChanged.await(timeoutSec, TimeUnit.SECONDS)) in assertCallbacksPropagation()
246 assertThat(callback.mPackageRemoved.await(timeoutSec, TimeUnit.SECONDS)) in assertCallbacksPropagation()
/cts/tests/camera/libctscamera2jni/
Dnative-camera-jni.cpp564 int64_t getCaptureSequenceLastFrameNumber(int64_t sequenceId, uint32_t timeoutSec) { in getCaptureSequenceLastFrameNumber() argument
570 std::chrono::seconds(timeoutSec); in getCaptureSequenceLastFrameNumber()
583 bool waitForFrameNumber(int64_t frameNumber, uint32_t timeoutSec) { in waitForFrameNumber() argument
590 std::chrono::seconds(timeoutSec); in waitForFrameNumber()
604 bool waitForFrameNumberStarted(int64_t frameNumber, uint32_t timeoutSec) { in waitForFrameNumberStarted() argument
610 std::chrono::seconds(timeoutSec); in waitForFrameNumberStarted()
842 bool waitForNextBuffer(uint32_t timeoutSec) { in waitForNextBuffer() argument
854 auto timeout = std::chrono::system_clock::now() + std::chrono::seconds(timeoutSec); in waitForNextBuffer()
1702 int64_t getCaptureSequenceLastFrameNumber(int64_t sequenceId, uint32_t timeoutSec) { in getCaptureSequenceLastFrameNumber() argument
1703 return mResultListener.getCaptureSequenceLastFrameNumber(sequenceId, timeoutSec); in getCaptureSequenceLastFrameNumber()
[all …]
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DBaseDevicePolicyTest.java273 long timeoutSec) throws Exception { in waitForOutput() argument
274 final long deadline = System.nanoTime() + TimeUnit.SECONDS.toNanos(timeoutSec); in waitForOutput()
/cts/tests/tests/wifi/src/android/net/wifi/aware/cts/
DSingleDeviceTest.java543 boolean waitForCallback(int callback, int timeoutSec) { in waitForCallback() argument
555 return mBlocker.await(timeoutSec, TimeUnit.SECONDS); in waitForCallback()