Home
last modified time | relevance | path

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

12

/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/tests/tests/telephony/current/src/android/telephony/cts/
DTelephonyRegistryManagerTest.java57 private static final long TIMEOUT_MILLIS = 1000; field in TelephonyRegistryManagerTest
112 queue.poll(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testNotifyCallStateChangedForAllSubscriptions()
119 Pair<Integer, String> result = queue.poll(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testNotifyCallStateChangedForAllSubscriptions()
140 queue.poll(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testNotifyCallStateChanged()
150 Pair<Integer, String> result = queue.poll(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testNotifyCallStateChanged()
170 queue.poll(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testNotifyServiceStateChanged()
181 ServiceState result = queue.poll(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testNotifyServiceStateChanged()
200 queue.poll(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testNotifySignalStrengthChanged()
210 SignalStrength result = queue.poll(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testNotifySignalStrengthChanged()
229 queue.poll(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testNotifyMessageWaitingChanged()
[all …]
/cts/tests/tests/virtualdevice/applaunch/src/android/virtualdevice/cts/applaunch/
DVirtualDeviceImeTest.java84 private static final long TIMEOUT_MILLIS = TimeUnit.SECONDS.toMillis(3); field in VirtualDeviceImeTest
151 verify(mDefaultDeviceImeListener, timeout(TIMEOUT_MILLIS).atLeastOnce()) in noCustomImeComponent_defaultImeShouldBeOnVirtualDisplay()
163 verify(mDefaultDeviceImeListener, timeout(TIMEOUT_MILLIS).atLeastOnce()) in nullCustomImeComponent_defaultImeShouldBeOnVirtualDisplay()
176 verify(mDefaultDeviceImeListener, after(TIMEOUT_MILLIS).never()).onShow(anyInt()); in nonExistentCustomImeComponent_noImeOnVirtualDisplay()
188 verify(mDefaultDeviceImeListener, after(TIMEOUT_MILLIS).never()).onShow(anyInt()); in invalidCustomImeComponent_noImeOnVirtualDisplay()
203 verify(mVirtualDeviceImeListener, timeout(TIMEOUT_MILLIS).atLeastOnce()) in validCustomImeComponent_customImeShouldBeOnVirtualDisplay()
209 verify(mDefaultDeviceImeListener, timeout(TIMEOUT_MILLIS).atLeastOnce()) in validCustomImeComponent_customImeShouldBeOnVirtualDisplay()
229 verify(mVirtualDeviceImeListener, timeout(TIMEOUT_MILLIS).atLeastOnce()) in customImeComponent_changeDefaultDeviceIme()
238 verify(mDefaultDeviceImeListener, timeout(TIMEOUT_MILLIS).atLeastOnce()) in customImeComponent_changeDefaultDeviceIme()
254 verify(mVirtualDeviceImeListener, timeout(TIMEOUT_MILLIS).atLeastOnce()) in customImeComponent_disableDefaultDeviceIme()
[all …]
DActivityManagementTest.java69 private static final long TIMEOUT_MILLIS = TimeUnit.SECONDS.toMillis(3); field in ActivityManagementTest
107 verify(mActivityListener, timeout(TIMEOUT_MILLIS).times(1)).onTopActivityChanged( in removeActivityListener_shouldStopCallbacks()
123 verify(mActivityListener, timeout(TIMEOUT_MILLIS).times(1)).onTopActivityChanged( in activityListener_shouldCallOnTopActivityChange()
130 verify(mActivityListener, timeout(TIMEOUT_MILLIS)).onDisplayEmpty(mVirtualDisplayId); in activityListener_shouldCallOnTopActivityChange()
225 verify(mActivityListener, timeout(TIMEOUT_MILLIS)).onTopActivityChanged( in assertActivityOnVirtualDisplay()
DStreamedAppBehaviorTest.java52 private static final long TIMEOUT_MILLIS = TimeUnit.SECONDS.toMillis(3); field in StreamedAppBehaviorTest
107 cond.block(TIMEOUT_MILLIS); in accessCameraFromActivity()
DRestrictActivityTest.java68 private static final long TIMEOUT_MILLIS = TimeUnit.SECONDS.toMillis(3); field in RestrictActivityTest
167 verify(mActivityListener, timeout(TIMEOUT_MILLIS)).onTopActivityChanged( in assertActivityOnDisplay()
DActivityInterceptionTest.java61 private static final long TIMEOUT_MILLIS = TimeUnit.SECONDS.toMillis(3); field in ActivityInterceptionTest
182 verify(mInterceptor, timeout(TIMEOUT_MILLIS).times(1)) in assertIntentIntercepted()
/cts/tests/tests/virtualdevice/camera/src/android/virtualdevice/cts/camera/
DVirtualCameraTest.java106 private static final long TIMEOUT_MILLIS = 2000L; field in VirtualCameraTest
196 verify(mMockDefaultContextCameraAvailabilityCallback, timeout(TIMEOUT_MILLIS)) in virtualCamera_triggersCameraAvailabilityCallbacks()
200 verify(mMockDefaultContextCameraAvailabilityCallback, timeout(TIMEOUT_MILLIS)) in virtualCamera_triggersCameraAvailabilityCallbacks()
213 verify(mMockDefaultContextCameraAvailabilityCallback, after(TIMEOUT_MILLIS).never()) in defaultContext_virtualCamera_doesNotTriggerCameraAvailabilityCallbacks()
217 verify(mMockDefaultContextCameraAvailabilityCallback, after(TIMEOUT_MILLIS).never()) in defaultContext_virtualCamera_doesNotTriggerCameraAvailabilityCallbacks()
227 verify(mMockVdContextCameraAvailabilityCallback, after(TIMEOUT_MILLIS).never()) in vdContext_noVirtualCamera_doesNotTriggerCameraAvailabilityCallbacks()
229 verify(mMockVdContextCameraAvailabilityCallback, after(TIMEOUT_MILLIS).never()) in vdContext_noVirtualCamera_doesNotTriggerCameraAvailabilityCallbacks()
241 verify(mMockVdContextCameraAvailabilityCallback, timeout(TIMEOUT_MILLIS)) in vdContext_virtualFrontCamera_triggersCameraAvailabilityCallbacks()
245 verify(mMockVdContextCameraAvailabilityCallback, timeout(TIMEOUT_MILLIS)) in vdContext_virtualFrontCamera_triggersCameraAvailabilityCallbacks()
256 verify(mMockVdContextCameraAvailabilityCallback, timeout(TIMEOUT_MILLIS)) in vdContext_virtualBackCamera_triggersCameraAvailabilityCallbacks()
[all …]
DVirtualCameraNdkTest.java75 private static final long TIMEOUT_MILLIS = 2000L; field in VirtualCameraNdkTest
157 verify(mMockAvailabilityCallback, timeout(TIMEOUT_MILLIS)) in availabilityCallbacks_virtualDevice()
160 verify(mMockAvailabilityCallback, timeout(TIMEOUT_MILLIS)) in availabilityCallbacks_virtualDevice()
177 verify(mMockAvailabilityCallback, timeout(TIMEOUT_MILLIS)).onCameraAvailable(cameraId); in availabilityCallbacks_defaultDevice()
182 verify(mMockAvailabilityCallback, after(TIMEOUT_MILLIS).never()).onCameraAvailable( in availabilityCallbacks_defaultDevice()
185 verify(mMockAvailabilityCallback, after(TIMEOUT_MILLIS).never()).onCameraUnavailable( in availabilityCallbacks_defaultDevice()
DVirtualCameraCaptureTest.java98 private static final long TIMEOUT_MILLIS = 2000L; field in VirtualCameraCaptureTest
305 verify(mCameraStateCallback, timeout(TIMEOUT_MILLIS)).onOpened( in captureImage()
311 verify(mSessionStateCallback, timeout(TIMEOUT_MILLIS)).onConfigured( in captureImage()
313 verify(mVirtualCameraCallback, timeout(TIMEOUT_MILLIS)).onStreamConfigured(anyInt(), in captureImage()
328 verify(mVirtualCameraCallback, timeout(TIMEOUT_MILLIS)) in captureImage()
330 verify(mCaptureCallback, timeout(TIMEOUT_MILLIS)).onCaptureCompleted(any(), in captureImage()
/cts/hostsidetests/harmfulappwarning/testapp/src/android/harmfulappwarning/testapp/
DHarmfulAppWarningDeviceTest.java48 private static final long TIMEOUT_MILLIS = TimeUnit.SECONDS.toMillis(3); 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/tests/tests/appop/src/android/app/appops/cts/
DForegroundModeAndActiveTest.kt67 private const val TIMEOUT_MILLIS = 45000L in <lambda>() constant
159 foregroundControlService = newService.get(TIMEOUT_MILLIS, MILLISECONDS) in <lambda>()
267 gotCallback.get(TIMEOUT_MILLIS, MILLISECONDS) in <lambda>()
287 gotCallback.get(TIMEOUT_MILLIS, MILLISECONDS) in <lambda>()
364 gotCallback.get(TIMEOUT_MILLIS, MILLISECONDS) in <lambda>()
389 gotCallback.get(TIMEOUT_MILLIS, MILLISECONDS) in <lambda>()
413 gotCallback.get(TIMEOUT_MILLIS, MILLISECONDS) in <lambda>()
440 gotCallback.get(TIMEOUT_MILLIS, MILLISECONDS) in <lambda>()
474 startCallback.get(TIMEOUT_MILLIS, MILLISECONDS) in <lambda>()
542 startCallback.get(TIMEOUT_MILLIS, MILLISECONDS) in <lambda>()
[all …]
DRuntimeMessageCollectionTest.kt35 private val TIMEOUT_MILLIS = 5000L constant in android.app.appops.cts.RuntimeMessageCollectionTest
64 while (System.currentTimeMillis() - start < TIMEOUT_MILLIS) { in collectAsyncStackTrace()
/cts/libs/deviceutillegacy/src/com/android/compatibility/common/util/
DSynchronousPixelCopy.java36 private static final long TIMEOUT_MILLIS = 1000; field in SynchronousPixelCopy
96 final long end = now + TIMEOUT_MILLIS; in getResultLocked()
104 fail("PixelCopy request didn't complete within " + TIMEOUT_MILLIS + "ms"); in getResultLocked()
123 final long end = now + TIMEOUT_MILLIS; in getResult()
131 fail("PixelCopy request didn't complete within " + TIMEOUT_MILLIS + "ms"); in getResult()
/cts/tests/tests/telecom/CallStreamingServiceTestApp/src/android/telecom/cts/streamingtestapp/
DCtsCallStreamingServiceControl.java35 private static final long TIMEOUT_MILLIS = 5000L; field in CtsCallStreamingServiceControl
44 CtsCallStreamingService.sCallStreamingStartedLatch.await(TIMEOUT_MILLIS,
/cts/apps/CtsVerifier/src/com/android/cts/verifier/telecom/
DCtsSelfManagedConnectionService.java19 static final int TIMEOUT_MILLIS = 10000; field in CtsSelfManagedConnectionService
45 sBindingLatch.await(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in waitForAndGetConnectionService()
69 mConnectionLatch.await(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in waitForAndGetConnection()
DCtsConnectionService.java39 static final int TIMEOUT_MILLIS = 10000; field in CtsConnectionService
65 sBindingLatch.await(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in waitForAndGetConnectionService()
89 mConnectionLatch.await(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in waitForAndGetConnection()
/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/targetprep/
DCecPortDiscoverer.java50 private static final int TIMEOUT_MILLIS = 15000; field in CecPortDiscoverer
180 TIMEOUT_MILLIS, inputConsole)) { in initValidClient()
184 serialNoParam, TIMEOUT_MILLIS, inputConsole)) { in initValidClient()
222 TimeUnit.MILLISECONDS.sleep(TIMEOUT_MILLIS); in initValidClient()
231 TIMEOUT_MILLIS, inputConsole)) { in initValidClient()
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DVoiceInteractionRoleTest.java61 private static final long TIMEOUT_MILLIS = 15 * 1000; field in VoiceInteractionRoleTest
152 assertThat(future.get(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS)).isTrue(); in addAssistRoleHolder()
162 future.get(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in removeAssistRoleHolder()
/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/appop/appopsTestUtilLib/src/android/app/appops/cts/
DAppOpsUtils.kt30 private const val TIMEOUT_MILLIS = 10000L constant
144 fun <T> eventually(timeout: Long = TIMEOUT_MILLIS, r: () -> T): T { in eventually()
/cts/tests/tests/security/src/android/security/cts/
DRolePermissionOverrideTest.kt124 assertThat(future.get(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS)).isEqualTo(true) in addRoleHolder()
146 private const val TIMEOUT_MILLIS = 15_000L constant
DBasePermissionUiTest.kt73 const val TIMEOUT_MILLIS: Long = 120000 in <lambda>() constant
110 protected fun waitForIdle() = uiAutomation.waitForIdle(IDLE_TIMEOUT_MILLIS, TIMEOUT_MILLIS) in <lambda>()
222 return future.get(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS) in <lambda>()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DSystemUtil.java46 private static final long TIMEOUT_MILLIS = 10000; field in SystemUtil
332 eventually(r, TIMEOUT_MILLIS); in eventually()
374 return getEventually(c, TIMEOUT_MILLIS); in getEventually()
/cts/tests/tests/virtualdevice/core/src/android/virtualdevice/cts/core/
DVirtualDeviceManagerBasicTest.java94 private static final long TIMEOUT_MILLIS = TimeUnit.SECONDS.toMillis(3); field in VirtualDeviceManagerBasicTest
655 verify(mSoundEffectListener, timeout(TIMEOUT_MILLIS)).onPlaySoundEffect(FX_KEY_CLICK); in playSoundEffect_callsListener()
656 verify(mSoundEffectListener, timeout(TIMEOUT_MILLIS)).onPlaySoundEffect(FX_BACK); in playSoundEffect_callsListener()
668 verify(mSoundEffectListener, timeout(TIMEOUT_MILLIS)).onPlaySoundEffect(FX_KEY_CLICK); in playSoundEffect_unregistersListener()
732 verify(mVirtualDeviceListener, timeout(TIMEOUT_MILLIS).times(1)) in assertDeviceCreated()
737 verify(mVirtualDeviceListener, timeout(TIMEOUT_MILLIS).times(1)) in assertDeviceClosed()

12