Home
last modified time | relevance | path

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

12

/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DLocalVoiceInteractionTest.java40 private static final int TIMEOUT_MS = 20 * 1000; field in LocalVoiceInteractionTest
78 if (!mLatchStart.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in testLifecycle()
79 fail("Failed to start voice interaction in " + TIMEOUT_MS + "msec"); in testLifecycle()
83 if (!mLatchStop.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in testLifecycle()
84 fail("Failed to stop voice interaction in " + TIMEOUT_MS + "msec"); in testLifecycle()
DVoiceInteractionTest.java39 private static final int TIMEOUT_MS = 20 * 1000; field in VoiceInteractionTest
96 if (!mLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in testAll()
97 fail("Failed to receive broadcast in " + TIMEOUT_MS + "msec"); in testAll()
/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/view/src/android/view/cts/
DViewTreeObserverTest.java54 private static int TIMEOUT_MS = 2000; field in ViewTreeObserverTest
97 verify(listener, within(TIMEOUT_MS)).onGlobalFocusChanged(view1, view2); in testAddOnGlobalFocusChangeListener()
163 verify(listener, within(TIMEOUT_MS)).onTouchModeChanged(anyBoolean()); in testAddOnTouchModeChangeListener()
188 SystemClock.sleep(TIMEOUT_MS); in testRemoveGlobalOnLayoutListener()
208 SystemClock.sleep(TIMEOUT_MS); in testRemoveOnGlobalLayoutListener()
226 verify(listener, within(TIMEOUT_MS)).onGlobalFocusChanged(view1, view2); in testRemoveOnGlobalFocusChangeListener()
234 SystemClock.sleep(TIMEOUT_MS); in testRemoveOnGlobalFocusChangeListener()
254 SystemClock.sleep(TIMEOUT_MS); in testRemoveOnPreDrawListener()
272 verify(listener, within(TIMEOUT_MS)).onTouchModeChanged(anyBoolean()); in testRemoveOnTouchModeChangeListener()
281 SystemClock.sleep(TIMEOUT_MS); in testRemoveOnTouchModeChangeListener()
[all …]
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DProfileTimeoutTestHelper.java32 private static final int TIMEOUT_MS = 5_000; field in ProfileTimeoutTestHelper
49 mDpm.setMaximumTimeToLock(ADMIN_COMPONENT, TIMEOUT_MS); in testSetWorkProfileTimeout()
51 TIMEOUT_MS, mDpm.getMaximumTimeToLock(ADMIN_COMPONENT)); in testSetWorkProfileTimeout()
/cts/tests/tests/media/src/android/media/cts/
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()
DMediaController2Test.java251 assertTrue(mMockAgent.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetPlaylist()
301 assertTrue(latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testGetPlaylist()
310 assertTrue(mMockAgent.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testUpdatePlaylistMetadata()
346 assertTrue(latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testGetPlaylistMetadata()
407 assertTrue(latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testControllerCallback_onPlaylistMetadataChanged()
416 assertTrue(mMockAgent.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testAddPlaylistItem()
434 assertTrue(mMockAgent.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testRemovePlaylistItem()
445 assertTrue(mMockAgent.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testReplacePlaylistItem()
455 assertTrue(mMockAgent.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSkipToPreviousItem()
462 assertTrue(mMockAgent.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSkipToNextItem()
[all …]
DMediaSessionManagerTest.java45 private static final int TIMEOUT_MS = 3000; field in MediaSessionManagerTest
126 assertTrue(listener.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetOnVolumeKeyLongPressListener()
175 assertTrue(listener.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetOnMediaKeyListener()
189 assertTrue(listener.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetOnMediaKeyListener()
195 assertTrue(callback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetOnMediaKeyListener()
248 assertTrue(callback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testRemoteUserInfo()
DMediaSession2_PermissionTest.java142 assertTrue(mCallback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testOnCommandRequest()
271 assertTrue(mCallback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testPlayFromMediaId()
290 assertTrue(mCallback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testPlayFromUri()
309 assertTrue(mCallback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testPlayFromSearch()
328 assertTrue(mCallback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testPrepareFromMediaId()
347 assertTrue(mCallback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testPrepareFromUri()
366 assertTrue(mCallback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testPrepareFromSearch()
390 assertTrue(mCallback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testChangingPermissionWithSetAllowedCommands()
399 assertTrue(controllerCallback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testChangingPermissionWithSetAllowedCommands()
/cts/tests/tests/net/src/android/net/cts/
DAirplaneModeTest.java32 private static final int TIMEOUT_MS = 10 * 1000; field in AirplaneModeTest
53 fail("Airplane mode failed to change in " + TIMEOUT_MS + "msec"); in testAirplaneMode()
64 Thread.sleep(TIMEOUT_MS); in doOneTest()
DTheaterModeTest.java31 private static final int TIMEOUT_MS = 10 * 1000; field in TheaterModeTest
52 fail("Theater mode failed to change in " + TIMEOUT_MS + "msec"); in testTheaterMode()
63 Thread.sleep(TIMEOUT_MS); in doOneTest()
/cts/tests/tests/assist/src/android/assist/cts/
DFocusChangeTest.java70 if (!mHasGainedFocusLatch.await(Utils.TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in waitToGainFocus()
71 fail("Activity failed to gain focus in " + Utils.TIMEOUT_MS + "msec."); in waitToGainFocus()
77 if (!mHasLostFocusLatch.await(Utils.TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in waitToLoseFocus()
79 + Utils.TIMEOUT_MS + "msec."); in waitToLoseFocus()
DAssistantContentViewTest.java69 if (!mContentViewLatch.await(Utils.TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in waitForContentView()
70 fail("failed to receive content view in " + Utils.TIMEOUT_MS + "msec"); in waitForContentView()
/cts/tests/tests/preference2/src/android/preference2/cts/
DPreferenceRecycleTest.java46 private static int TIMEOUT_MS = 5000; field in PreferenceRecycleTest
99 PollingCheck.waitFor(TIMEOUT_MS, in recycleSetViaXmlTest()
144 PollingCheck.waitFor(TIMEOUT_MS, in recycleSetViaCodeTest()
151 PollingCheck.waitFor(TIMEOUT_MS, in recycleSetViaCodeTest()
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DMyServiceClient.java32 private static final int TIMEOUT_MS = 5000; field in MyServiceClient
69 cv.block(TIMEOUT_MS); in bind()
72 "Could not bind to MyService service after " + TIMEOUT_MS + "ms"); in bind()
DRemoteSocketFactoryClient.java36 private static final int TIMEOUT_MS = 5000; field in RemoteSocketFactoryClient
70 cv.block(TIMEOUT_MS); in bind()
73 "Could not bind to RemoteSocketFactory service after " + TIMEOUT_MS + "ms"); in bind()
DVpnTest.java96 public static int TIMEOUT_MS = 3 * 1000; field in VpnTest
163 if (okButton.waitForExists(TIMEOUT_MS) == false) { in prepareVpn()
175 int result = mActivity.getResult(TIMEOUT_MS); in prepareVpn()
184 fail("VPN confirmation dialog did not return after " + TIMEOUT_MS + "ms"); in prepareVpn()
230 mLock.wait(TIMEOUT_MS); in startVpn()
236 fail("VPN did not become available after " + TIMEOUT_MS + "ms"); in startVpn()
272 mLockShutdown.wait(TIMEOUT_MS); in stopVpn()
494 FileDescriptor fd = mRemoteSocketFactoryClient.openSocketFd(host, port, TIMEOUT_MS); in openSocketFdInOtherApp()
541 FileDescriptor fd = openSocketFdInOtherApp(TEST_HOST, 80, TIMEOUT_MS); in testDefault()
555 FileDescriptor fd = openSocketFdInOtherApp(TEST_HOST, 80, TIMEOUT_MS); in testAppAllowed()
[all …]
/cts/tests/app/src/android/app/cts/
DNewDocumentTest.java32 private static long TIMEOUT_MS = 3000; field in NewDocumentTest
61 latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in await()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DBroadcastTestBase.java35 protected static final int TIMEOUT_MS = 20 * 1000; field in BroadcastTestBase
103 if (!mLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in startTestAndWaitForBroadcast()
104 fail("Failed to receive broadcast in " + TIMEOUT_MS + "msec"); in startTestAndWaitForBroadcast()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/
DParentalControlTestActivity.java38 private static final long TIMEOUT_MS = 5l * 60l * 1000l; // 5 mins. field in ParentalControlTestActivity
92 postTarget.postDelayed(failCallback, TIMEOUT_MS); in onClick()
110 postTarget.postDelayed(failCallback, TIMEOUT_MS); in onClick()
128 postTarget.postDelayed(failCallback, TIMEOUT_MS); in onClick()
DMultipleTracksTestActivity.java37 private static final long TIMEOUT_MS = 5l * 60l * 1000l; // 5 mins. field in MultipleTracksTestActivity
71 postTarget.postDelayed(failCallback, TIMEOUT_MS); in onClick()
108 postTarget.postDelayed(failCallback, TIMEOUT_MS); in onClick()
DTimeShiftTestActivity.java34 private static final long TIMEOUT_MS = TimeUnit.MINUTES.toMillis(5); field in TimeShiftTestActivity
80 postTarget.postDelayed(failCallback, TIMEOUT_MS); in onClick()
118 postTarget.postDelayed(failCallback, TIMEOUT_MS); in onClick()
154 postTarget.postDelayed(failCallback, TIMEOUT_MS); in onClick()
/cts/tests/tests/alarmclock/src/android/alarmclock/cts/
DAlarmClockTestBase.java37 protected static final int TIMEOUT_MS = 20 * 1000; field in AlarmClockTestBase
132 if (!mLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in runTest()
133 fail("Failed to receive broadcast in " + TIMEOUT_MS + "msec"); in runTest()
/cts/tests/tests/assist/common/src/android/assist/common/
DUtils.java74 public static final int TIMEOUT_MS = 2 * 1000; field in Utils
223 return TIMEOUT_MS + ACTIVITY_ONRESUME_TIMEOUT_MS; in getAssistDataTimeout()
225 return TIMEOUT_MS; in getAssistDataTimeout()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DAudioRestrictionTest.java155 final int TIMEOUT_MS = 5 * 1000; in waitUntil() local
159 if ((SystemClock.elapsedRealtime() - start) >= TIMEOUT_MS) { in waitUntil()

12