Home
last modified time | relevance | path

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

12

/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()
DVoiceInteractionTest.java48 private static final int TIMEOUT_MS = 20 * 1000; field in VoiceInteractionTest
92 if (!mLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in testAll()
93 fail("Failed to receive broadcast in " + TIMEOUT_MS + "msec"); in testAll()
/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/tests/assist/src/android/assist/cts/
DFocusChangeTest.java46 if (!mHasGainedFocusLatch.await(Utils.TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in waitToGainFocus()
47 fail("Activity failed to gain focus in " + Utils.TIMEOUT_MS + "msec."); in waitToGainFocus()
53 if (!mHasLostFocusLatch.await(Utils.TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in waitToLoseFocus()
55 + Utils.TIMEOUT_MS + "msec."); in waitToLoseFocus()
DAssistantContentViewTest.java48 if (!mContentViewLatch.await(Utils.TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in waitForContentView()
49 fail("failed to receive content view in " + Utils.TIMEOUT_MS + "msec"); in waitForContentView()
/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/net/src/android/net/cts/
DDnsResolverTest.java80 static final int TIMEOUT_MS = 12_000; field in DnsResolverTest
215 return waitForAnswer(TIMEOUT_MS); in waitForAnswer()
319 assertTrue(msg + " but no answer after " + TIMEOUT_MS + "ms.", in doTestRawQuery()
345 assertTrue(msg + " but no answer after " + TIMEOUT_MS + "ms.", in doTestRawQueryBlob()
359 assertTrue(msg + " but no answer after " + TIMEOUT_MS + "ms.", in doTestRawQueryRoot()
374 assertTrue(msg + " but no answer after " + TIMEOUT_MS + "ms.", in doTestRawQueryNXDomain()
404 latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testRawQueryCancel()
432 latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testRawQueryBlobCancel()
470 return mLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS); in waitForAnswer()
553 assertTrue(msg + " but no answer after " + TIMEOUT_MS + "ms.", in doTestQueryForInetAddress()
[all …]
DTheaterModeTest.java30 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()
DAirplaneModeTest.java33 private static final int TIMEOUT_MS = 10 * 1000; field in AirplaneModeTest
54 fail("Airplane mode failed to change in " + TIMEOUT_MS + "msec"); in testAirplaneMode()
65 Thread.sleep(TIMEOUT_MS); in doOneTest()
/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/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()
DMediaSessionManagerTest.java50 private static final int TIMEOUT_MS = 3000; field in MediaSessionManagerTest
133 assertTrue(listener.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetOnVolumeKeyLongPressListener()
181 assertTrue(listener.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetOnMediaKeyListener()
195 assertTrue(listener.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetOnMediaKeyListener()
201 assertTrue(callback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetOnMediaKeyListener()
258 assertTrue(callback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testRemoteUserInfo()
294 assertTrue(sessionCallback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testGetSession2Tokens()
295 assertTrue(listener.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testGetSession2Tokens()
322 assertTrue(listener.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testGetSession2TokensWithTwoSessions()
334 assertTrue(listener.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testGetSession2TokensWithTwoSessions()
[all …]
DMediaSession2ServiceTest.java63 private static final long TIMEOUT_MS = 3000L; field in MediaSession2ServiceTest
139 assertTrue(latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testOnGetSessionIsCalled()
189 assertTrue(latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testOnGetSession_returnsSession()
252 assertTrue(latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testOnGetSession_rejectsConnection()
281 assertTrue(latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testAllControllersDisconnected_oneSession()
308 assertTrue(latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testAllControllersDisconnected_multipleSessions()
375 assertTrue(latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testOnUpdateNotification()
423 assertTrue(latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in createConnectedController()
/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/hostsidetests/net/app/src/com/android/cts/net/hostside/
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()
DMyServiceClient.java30 private static final int TIMEOUT_MS = 5000; field in MyServiceClient
67 cv.block(TIMEOUT_MS); in bind()
70 "Could not bind to MyService service after " + TIMEOUT_MS + "ms"); in bind()
DVpnTest.java99 public static int TIMEOUT_MS = 3 * 1000; field in VpnTest
168 if (okButton.waitForExists(TIMEOUT_MS) == false) { in prepareVpn()
180 int result = mActivity.getResult(TIMEOUT_MS); in prepareVpn()
189 fail("VPN confirmation dialog did not return after " + TIMEOUT_MS + "ms"); in prepareVpn()
241 mLock.wait(TIMEOUT_MS); in startVpn()
247 fail("VPN did not become available after " + TIMEOUT_MS + "ms"); in startVpn()
284 mLockShutdown.wait(TIMEOUT_MS); in stopVpn()
526 FileDescriptor fd = mRemoteSocketFactoryClient.openSocketFd(host, port, TIMEOUT_MS); in openSocketFdInOtherApp()
585 FileDescriptor fd = openSocketFdInOtherApp(TEST_HOST, 80, TIMEOUT_MS); in testDefault()
607 FileDescriptor fd = openSocketFdInOtherApp(TEST_HOST, 80, TIMEOUT_MS); in testAppAllowed()
[all …]
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DBroadcastTestBase.java35 protected static final int TIMEOUT_MS = 20 * 1000; field in BroadcastTestBase
105 if (!mLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in startTestAndWaitForBroadcast()
106 fail("Failed to receive broadcast in " + TIMEOUT_MS + "msec"); in startTestAndWaitForBroadcast()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DBroadcastTestBase.java35 protected static final int TIMEOUT_MS = 20 * 1000; field in BroadcastTestBase
105 if (!mLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in startTestAndWaitForBroadcast()
106 fail("Failed to receive broadcast in " + TIMEOUT_MS + "msec"); in startTestAndWaitForBroadcast()
/cts/tests/tests/packageinstaller/uninstall/src/android/packageinstaller/uninstall/cts/
DUninstallTest.java55 private static final long TIMEOUT_MS = 30000; field in UninstallTest
96 TIMEOUT_MS) == null) { in testUninstall()
101 TIMEOUT_MS)); in testUninstall()
/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()
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()
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()
/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/tests/tests/assist/common/src/android/assist/common/
DUtils.java81 public static final int TIMEOUT_MS = 4 * 1_000; field in Utils
234 return TIMEOUT_MS + ACTIVITY_ONRESUME_TIMEOUT_MS; in getAssistDataTimeout()
236 return TIMEOUT_MS; in getAssistDataTimeout()

12