Home
last modified time | relevance | path

Searched refs:TIMEOUT_MS (Results 1 – 25 of 65) sorted by relevance

123

/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DLocalVoiceInteractionTest.java42 private static final int TIMEOUT_MS = 20 * 1000; field in LocalVoiceInteractionTest
70 if (!mLatchStart.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in testLifecycle()
71 fail("Failed to start voice interaction in " + TIMEOUT_MS + "msec"); in testLifecycle()
75 if (!mLatchStop.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in testLifecycle()
76 fail("Failed to stop voice interaction in " + TIMEOUT_MS + "msec"); in testLifecycle()
/cts/tests/tests/assist/src/android/assist/cts/
DFocusChangeTest.java49 if (!mHasGainedFocusLatch.await(Utils.TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in waitToGainFocus()
50 fail("Activity failed to gain focus in " + Utils.TIMEOUT_MS + "msec."); in waitToGainFocus()
56 if (!mHasLostFocusLatch.await(Utils.TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in waitToLoseFocus()
58 + Utils.TIMEOUT_MS + "msec."); in waitToLoseFocus()
/cts/tests/tests/view/src/android/view/cts/
DViewTreeObserverTest.java56 private static int TIMEOUT_MS = 2000; field in ViewTreeObserverTest
99 verify(listener, within(TIMEOUT_MS)).onGlobalFocusChanged(view1, view2); in testAddOnGlobalFocusChangeListener()
146 verify(activeListener, within(TIMEOUT_MS)).run(); in testFrameCommitListener()
180 verify(listener, within(TIMEOUT_MS)).onTouchModeChanged(anyBoolean()); in testAddOnTouchModeChangeListener()
205 SystemClock.sleep(TIMEOUT_MS); in testRemoveGlobalOnLayoutListener()
225 SystemClock.sleep(TIMEOUT_MS); in testRemoveOnGlobalLayoutListener()
243 verify(listener, within(TIMEOUT_MS)).onGlobalFocusChanged(view1, view2); in testRemoveOnGlobalFocusChangeListener()
251 SystemClock.sleep(TIMEOUT_MS); in testRemoveOnGlobalFocusChangeListener()
271 SystemClock.sleep(TIMEOUT_MS); in testRemoveOnPreDrawListener()
289 verify(listener, within(TIMEOUT_MS)).onTouchModeChanged(anyBoolean()); in testRemoveOnTouchModeChangeListener()
[all …]
/cts/tests/camera/src/android/hardware/camera2/cts/rs/
DBlockingInputAllocation.java190 private static final int TIMEOUT_MS = 20000; field in BlockingInputAllocation.OnBufferAvailableListener
230 if (timeoutMs <= TIMEOUT_MS) { in waitForBuffer()
231 waitForBufferWithTimeout(TIMEOUT_MS); in waitForBuffer()
233 waitForBufferWithTimeout(timeoutMs + TIMEOUT_MS); in waitForBuffer()
243 waitForBufferWithTimeout(TIMEOUT_MS); in waitForBuffer()
/cts/tests/tests/media/src/android/media/cts/
DMediaCommunicationManagerTest.java54 private static final int TIMEOUT_MS = 5000; field in MediaCommunicationManagerTest
84 assertTrue(managerCallback.mCreatedLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testGetSession2Tokens()
106 assertTrue(managerCallback.mCreatedLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testManagerSessionCallback()
107 assertTrue(managerCallback.mChangedLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testManagerSessionCallback()
118 assertTrue(managerCallback.mCreatedLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testManagerSessionCallback()
119 assertTrue(managerCallback.mChangedLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testManagerSessionCallback()
128 assertTrue(managerCallback.mChangedLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testManagerSessionCallback()
DScannerNotificationReceiver.java30 private static final int TIMEOUT_MS = 4 * 60 * 1000; field in ScannerNotificationReceiver
47 if (!mLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in waitForBroadcast()
49 MediaScannerTest.fail("Failed to receive broadcast in " + TIMEOUT_MS + "ms for " in waitForBroadcast()
DMediaRoute2ProviderServiceTest.java80 private static final int TIMEOUT_MS = 5000; field in MediaRoute2ProviderServiceTest
105 new PollingCheck(TIMEOUT_MS) { in setUp() argument
263 assertTrue(onRoutesAddedLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testNotifyRoutesInvokesMediaRouter2RouteCallback()
271 assertTrue(onRoutesChangedLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testNotifyRoutesInvokesMediaRouter2RouteCallback()
276 assertTrue(onRoutesRemovedLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testNotifyRoutesInvokesMediaRouter2RouteCallback()
429 assertTrue(onCreateSessionLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSessionRelatedCallbacks()
430 assertTrue(onTransferredLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSessionRelatedCallbacks()
436 assertTrue(onSelectRouteLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSessionRelatedCallbacks()
437 assertTrue(onControllerUpdatedForSelectLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSessionRelatedCallbacks()
440 assertTrue(onDeselectRouteLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSessionRelatedCallbacks()
[all …]
DSystemMediaRouter2Test.java92 private static final int TIMEOUT_MS = 5000; field in SystemMediaRouter2Test
134 new PollingCheck(TIMEOUT_MS) { in setUp() argument
265 assertTrue(addedLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testRouteCallbackOnRoutesAdded()
293 assertTrue(removedLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testRouteCallbackOnRoutesRemoved()
331 assertTrue(changedLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testRouteCallbackOnRoutesChanged()
375 assertTrue(latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testRouteCallbackOnRoutesChanged_whenLocalVolumeChanged()
403 assertTrue(featuresChangedLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testRouteCallbackOnPreferredFeaturesChanged()
437 assertTrue(successLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testTransferTo_succeeds_onTransferCalled()
482 assertTrue(failureLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testTransferTo_fails_onTransferFailureCalled()
545 assertTrue(successLatch1.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testTransferToTwice()
[all …]
DMediaSessionManagerTest.java62 private static final int TIMEOUT_MS = 3000; field in MediaSessionManagerTest
131 .await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testOnMediaKeyEventSessionChangedListener()
169 .await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testOnMediaKeyEventDispatchedListener()
241 assertTrue(listener.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetOnVolumeKeyLongPressListener()
289 assertTrue(listener.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetOnMediaKeyListener()
303 assertTrue(listener.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetOnMediaKeyListener()
309 assertTrue(callback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetOnMediaKeyListener()
366 assertTrue(callback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testRemoteUserInfo()
396 assertTrue(sessionCallback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testGetSession2Tokens()
397 assertTrue(listener.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testGetSession2Tokens()
[all …]
DMediaRouter2Test.java90 private static final int TIMEOUT_MS = 5000; field in MediaRouter2Test
118 new PollingCheck(TIMEOUT_MS) { in setUp() argument
236 assertTrue(successLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testTransferToSuccess()
283 assertTrue(failureLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testTransferToFailure()
354 assertTrue(successLatch1.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testTransferToTwice()
356 assertTrue(successLatch2.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testTransferToTwice()
379 assertTrue(onReleaseSessionLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testTransferToTwice()
440 assertTrue(successLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetOnGetControllerHintsListener()
483 assertTrue(successLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetSessionVolume()
514 assertTrue(volumeChangedLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetSessionVolume()
[all …]
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DProfileTimeoutTestHelper.java33 private static final int TIMEOUT_MS = 30_000; field in ProfileTimeoutTestHelper
50 mDpm.setMaximumTimeToLock(ADMIN_COMPONENT, TIMEOUT_MS); in testSetWorkProfileTimeout()
52 TIMEOUT_MS, mDpm.getMaximumTimeToLock(ADMIN_COMPONENT)); in testSetWorkProfileTimeout()
/cts/tests/location/location_fine/src/android/location/cts/fine/
DLocationManagerFineTest.java116 private static final long TIMEOUT_MS = 5000; field in LocationManagerFineTest
253 assertThat(capture.getLocation(TIMEOUT_MS)).isEqualTo(loc); in testGetCurrentLocation()
294 assertThat(capture.getLocation(TIMEOUT_MS)).isEqualTo(loc); in testGetCurrentLocation_FreshOldLocation()
306 assertThat(capture.getLocation(TIMEOUT_MS)).isEqualTo(loc); in testGetCurrentLocation_DirectExecutor()
350 assertThat(capture.getNextLocation(TIMEOUT_MS)).isEqualTo(loc1); in testRequestLocationUpdates()
352 assertThat(capture.getNextLocation(TIMEOUT_MS)).isEqualTo(loc2); in testRequestLocationUpdates()
354 assertThat(capture.getNextProviderChange(TIMEOUT_MS)).isEqualTo(Boolean.FALSE); in testRequestLocationUpdates()
356 assertThat(capture.getNextProviderChange(TIMEOUT_MS)).isEqualTo(Boolean.TRUE); in testRequestLocationUpdates()
410 assertThat(capture.getNextLocation(TIMEOUT_MS)).isEqualTo(loc); in testRequestLocationUpdates_Passive()
423 assertThat(capture.getNextLocation(TIMEOUT_MS)).isEqualTo(loc1); in testRequestLocationUpdates_PendingIntent()
[all …]
DSettingInjectorServiceTest.java50 private static final long TIMEOUT_MS = 5000; field in SettingInjectorServiceTest
74 Message message = messageCapture.getNextMessage(TIMEOUT_MS); in testSettingInjectorService()
80 message = messageCapture.getNextMessage(TIMEOUT_MS); in testSettingInjectorService()
86 message = messageCapture.getNextMessage(TIMEOUT_MS); in testSettingInjectorService()
106 Message message = messageCapture.getNextMessage(TIMEOUT_MS); in testSettingInjectorService_Exception()
DGeofencingTest.java54 private static final long TIMEOUT_MS = 5000; field in GeofencingTest
127 assertThat(capture.getNextProximityChange(TIMEOUT_MS)).isEqualTo(Boolean.TRUE); in testAddProximityAlert()
131 assertThat(capture.getNextProximityChange(TIMEOUT_MS)).isEqualTo(Boolean.FALSE); in testAddProximityAlert()
239 assertThat(capture.getNextProximityChange(TIMEOUT_MS)).isEqualTo(Boolean.TRUE); in testAddProximityAlert_StartProximate()
269 assertThat(capture.getNextProximityChange(TIMEOUT_MS)).isEqualTo(Boolean.TRUE); in testAddProximityAlert_Multiple()
273 Boolean first = capture.getNextProximityChange(TIMEOUT_MS); in testAddProximityAlert_Multiple()
275 Boolean second = capture.getNextProximityChange(TIMEOUT_MS); in testAddProximityAlert_Multiple()
/cts/tests/app/src/android/app/cts/
DCloseSystemDialogsTest.java79 private static final long TIMEOUT_MS = 3000; field in CloseSystemDialogsTest
274 assertTrue(mService.waitForAccessibilityServiceWindow(TIMEOUT_MS)); in testCloseSystemDialogs_withWindowAboveShadeAndTargetSdk30_isSent()
290 assertThat(mFakeView.getNextCloseSystemDialogsCallReason(TIMEOUT_MS)).isEqualTo(REASON); in testCloseSystemDialogsViaWindowManager_whenTestInstrumentedViaShell_isSent()
301 assertThat(mFakeView.getNextCloseSystemDialogsCallReason(TIMEOUT_MS)).isEqualTo(REASON); in testCloseSystemDialogsViaWindowManager_whenRunningAsShell_isSent()
313 assertThat(mFakeView.getNextCloseSystemDialogsCallReason(TIMEOUT_MS)).isEqualTo(null); in testCloseSystemDialogsViaWindowManager_whenTargetSdkCurrent_isBlockedAndThrows()
324 assertThat(mFakeView.getNextCloseSystemDialogsCallReason(TIMEOUT_MS)).isEqualTo(null); in testCloseSystemDialogsViaWindowManager_whenTargetSdk30_isBlockedButDoesNotThrow()
336 assertThat(mFakeView.getNextCloseSystemDialogsCallReason(TIMEOUT_MS)).isEqualTo(REASON); in testCloseSystemDialogsViaActivityManager_whenTestInstrumentedViaShell_isSent()
348 assertThat(mFakeView.getNextCloseSystemDialogsCallReason(TIMEOUT_MS)).isEqualTo(REASON); in testCloseSystemDialogsViaActivityManager_whenRunningAsShell_isSent()
361 assertThat(mFakeView.getNextCloseSystemDialogsCallReason(TIMEOUT_MS)).isEqualTo(null); in testCloseSystemDialogsViaActivityManager_whenTargetSdkCurrent_isBlockedAndThrows()
372 assertThat(mFakeView.getNextCloseSystemDialogsCallReason(TIMEOUT_MS)).isEqualTo(null); in testCloseSystemDialogsViaActivityManager_whenTargetSdk30_isBlockedButDoesNotThrow()
[all …]
DNewDocumentTest.java32 private static long TIMEOUT_MS = 3000; field in NewDocumentTest
61 latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in await()
/cts/tests/tests/voicesettings/src/android/voicesettings/cts/
DBroadcastTestBase.java58 protected static final int TIMEOUT_MS = 20 * 1000; field in BroadcastTestBase
141 if (!mLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in startTestAndWaitForBroadcast()
142 fail("Failed to receive broadcast in " + TIMEOUT_MS + "msec"); in startTestAndWaitForBroadcast()
189 if (!mLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS) in startTestAndWaitForChange()
190 || !latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in startTestAndWaitForChange()
191 fail("Failed to change in " + TIMEOUT_MS + "msec"); in startTestAndWaitForChange()
/cts/tests/framework/base/windowmanager/appProfileable/src/android/server/wm/profileable/
DProfileableAppActivity.java71 private static final long TIMEOUT_MS = TimeUnit.SECONDS.toMillis(3); field in ProfileableAppActivity.TraceFileObserver
92 wait(TIMEOUT_MS); in waitForComplete()
93 if (SystemClock.elapsedRealtime() - startTimeMs > TIMEOUT_MS) { in waitForComplete()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0706/src/android/security/cts/CVE_2021_0706/
DDeviceTest.java42 final int TIMEOUT_MS = 10000; in testDisablePlugin() local
52 assumeNotNull(mDevice.wait(Until.hasObject(By.pkg(TEST_PACKAGE).depth(0)), TIMEOUT_MS)); in testDisablePlugin()
57 assumeNotNull(mDevice.wait(Until.gone(By.pkg(TEST_PACKAGE).depth(0)), TIMEOUT_MS)); in testDisablePlugin()
/cts/tests/tests/preference/src/android/preference/cts/
DPreferenceRecycleTest.java47 private static final int TIMEOUT_MS = 5000; field in PreferenceRecycleTest
100 PollingCheck.waitFor(TIMEOUT_MS, in recycleSetViaXmlTest()
145 PollingCheck.waitFor(TIMEOUT_MS, in recycleSetViaCodeTest()
152 PollingCheck.waitFor(TIMEOUT_MS, in recycleSetViaCodeTest()
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/utils/
DTestValueCountConsumer.java31 private static final long TIMEOUT_MS = 3000; field in TestValueCountConsumer
55 value = mLinkedBlockingQueue.poll(TIMEOUT_MS, TimeUnit.MILLISECONDS); in waitAndGet()
/cts/hostsidetests/settings/app/DeviceOwnerApp/src/com/google/android/cts/deviceowner/
DDeviceOwnerTest.java57 public static final int TIMEOUT_MS = 2_000; field in DeviceOwnerTest
133 mDevice.waitForIdle(TIMEOUT_MS); // give UI time to finish animating in tearDown()
141 mDevice.waitForIdle(TIMEOUT_MS); in launchPrivacyAndCheckWorkPolicyInfo()
143 Log.d(TAG, "Waiting " + TIMEOUT_MS + "ms for the '" + mWorkPolicyInfoText + "' message"); in launchPrivacyAndCheckWorkPolicyInfo()
146 TIMEOUT_MS); in launchPrivacyAndCheckWorkPolicyInfo()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DSetLocationEnabledTest.java38 private static final long TIMEOUT_MS = 5000; field in SetLocationEnabledTest
117 TIMEOUT_MS).that(latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)).isTrue(); in setLocationEnabledAndWaitIfNecessary()
/cts/tests/tests/packageinstaller/uninstall/src/android/packageinstaller/uninstall/cts/
DUninstallTest.java71 private static final long TIMEOUT_MS = 30000; field in UninstallTest
129 "overlay_description")), TIMEOUT_MS); in overlaysAreSuppressedWhenConfirmingUninstall() local
134 while (System.currentTimeMillis() - start < TIMEOUT_MS) { in overlaysAreSuppressedWhenConfirmingUninstall()
157 TIMEOUT_MS) == null) { in testUninstall()
162 TIMEOUT_MS)); in testUninstall()
/cts/hostsidetests/devicepolicy/app/common/src/com/android/cts/devicepolicy/
DOperationSafetyChangedCallback.java46 private static final long TIMEOUT_MS = 50_000; field in OperationSafetyChangedCallback
117 event = mEvents.poll(TIMEOUT_MS, TimeUnit.MILLISECONDS); in getNextEvent()
126 + operationToString(operation) + " in " + TIMEOUT_MS + "ms on " + this; in getNextEvent()

123