Home
last modified time | relevance | path

Searched refs:TIMEOUT_MILLIS (Results 1 – 12 of 12) sorted by relevance

/cts/hostsidetests/appsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/
DReceiveUriActivity.java38 private static final long TIMEOUT_MILLIS = 30 * SECOND_IN_MILLIS; field in ReceiveUriActivity
101 sLock.wait(TIMEOUT_MILLIS); in finishCurInstanceSync()
104 if (SystemClock.uptimeMillis() >= (startTime + TIMEOUT_MILLIS)) { in finishCurInstanceSync()
128 sLock.wait(TIMEOUT_MILLIS); in waitForStart()
131 if (SystemClock.uptimeMillis() >= (startTime + TIMEOUT_MILLIS)) { in waitForStart()
143 sLock.wait(TIMEOUT_MILLIS); in waitForNewIntent()
146 if (SystemClock.uptimeMillis() >= (startTime + TIMEOUT_MILLIS)) { in waitForNewIntent()
/cts/hostsidetests/harmfulappwarning/testapp/src/android/harmfulappwarning/testapp/
DHarmfulAppWarningDeviceTest.java48 private static final long TIMEOUT_MILLIS = TimeUnit.SECONDS.toMillis(1); field in HarmfulAppWarningDeviceTest
75 getUiDevice().wait(Until.findObject(By.res("android:id/message")), TIMEOUT_MILLIS); in verifyWarningShown()
83 mSampleActivityStartedReceiver.awaitForBroadcast(TIMEOUT_MILLIS)); in verifySampleActivityLaunched()
88 mSampleActivityStartedReceiver.awaitForBroadcast(TIMEOUT_MILLIS)); in verifySampleActivityNotLaunched()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/telecom/
DCtsSelfManagedConnectionService.java16 static final int TIMEOUT_MILLIS = 10000; field in CtsSelfManagedConnectionService
42 sBindingLatch.await(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in waitForAndGetConnectionService()
66 mConnectionLatch.await(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in waitForAndGetConnection()
DCtsConnectionService.java36 static final int TIMEOUT_MILLIS = 10000; field in CtsConnectionService
62 sBindingLatch.await(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in waitForAndGetConnectionService()
86 mConnectionLatch.await(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in waitForAndGetConnection()
DCtsConnection.java153 mWaitForCallAudioStateChanged.await(CtsConnectionService.TIMEOUT_MILLIS, in waitForAudioStateChanged()
/cts/tests/tests/role/src/android/app/role/cts/
DRoleManagerTest.java80 private static final long TIMEOUT_MILLIS = 15 * 1000; field in RoleManagerTest
302 TIMEOUT_MILLIS); in respondToRoleRequest()
318 ? TIMEOUT_MILLIS : UNEXPECTED_TIMEOUT_MILLIS); in findDontAskAgainCheck()
330 UiObject2 button = sUiDevice.wait(Until.findObject(By.res(buttonId)), TIMEOUT_MILLIS); in clickButtonAndWaitForResult()
353 return mActivityRule.getActivity().waitForActivityResult(TIMEOUT_MILLIS); in waitForResult()
400 Pair<Integer, Intent> result = activity.waitForActivityResult(TIMEOUT_MILLIS); in assertRoleIsHeld()
469 result = future.get(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in assertOnRoleHoldersChangedListenerIsNotified()
599 future.get(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in addRoleHolder()
607 future.get(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in removeRoleHolder()
614 future.get(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in clearRoleHolders()
/cts/apps/CtsVerifierUSBCompanion/src/com/android/cts/verifierusbcompanion/
DAccessoryTestCompanion.java41 private static final int TIMEOUT_MILLIS = 500; field in AccessoryTestCompanion
181 int numTransferred = connection.bulkTransfer(in, buffer, 1, TIMEOUT_MILLIS); in runTest()
218 numTransferred = connection.bulkTransfer(in, buffer, 1, TIMEOUT_MILLIS); in runTest()
241 numTransferred = connection.bulkTransfer(in, buffer, 1, TIMEOUT_MILLIS); in runTest()
/cts/tests/tests/permission/permissionTestUtilLib/src/android/permission/cts/
DPermissionUtils.java57 private static final long TIMEOUT_MILLIS = 10000; field in PermissionUtils
339 if (System.currentTimeMillis() - start < TIMEOUT_MILLIS) { in eventually()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DCommandSession.java322 static final int TIMEOUT_MILLIS = 5000;
336 wait(TIMEOUT_MILLIS);
339 if (!mHasResult && (SystemClock.uptimeMillis() - startTime > TIMEOUT_MILLIS)) {
340 throw new TimeoutException("No response over " + TIMEOUT_MILLIS + "ms");
739 }, ActivitySession.Response.TIMEOUT_MILLIS / 2);
/cts/tests/backup/src/android/backup/cts/
DPermissionTest.java72 private static final long TIMEOUT_MILLIS = 10000; field in PermissionTest
345 if (System.currentTimeMillis() - start < TIMEOUT_MILLIS) { in eventually()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DNetworkUsageStatsTest.java74 private static final int TIMEOUT_MILLIS = 15000; field in NetworkUsageStatsTest
183 urlc.setConnectTimeout(TIMEOUT_MILLIS); in exerciseRemoteHost()
318 wait((int)(TIMEOUT_MILLIS * 1.2)); in shouldTestThisNetworkType()
332 "to connect has timed out (timeout = " + TIMEOUT_MILLIS + "ms)." + in shouldTestThisNetworkType()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/device/
DUsbDeviceTestActivity.java75 private static final int TIMEOUT_MILLIS = 5000; field in UsbDeviceTestActivity
258 lastTestResultBytes.length, TIMEOUT_MILLIS); in nextTest()
279 int numReceived = connection.bulkTransfer(in, buffer, 1, TIMEOUT_MILLIS); in receiveZeroSizedTransfer()
302 TIMEOUT_MILLIS); in echoBulkTransfer()
330 int numReceived = connection.bulkTransfer(in, receivedBuffer, offset, size, TIMEOUT_MILLIS); in echoBulkTransferOffset()
367 TIMEOUT_MILLIS); in echoLargeBulkTransfer()