Home
last modified time | relevance | path

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

12

/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/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/net/src/android/net/cts/
DDnsResolverTest.java85 static final int TIMEOUT_MS = 12_000; field in DnsResolverTest
210 return waitForAnswer(TIMEOUT_MS); in waitForAnswer()
328 assertTrue(msg + " but no answer after " + TIMEOUT_MS + "ms.", in doTestRawQuery()
354 assertTrue(msg + " but no answer after " + TIMEOUT_MS + "ms.", in doTestRawQueryBlob()
368 assertTrue(msg + " but no answer after " + TIMEOUT_MS + "ms.", in doTestRawQueryRoot()
391 assertTrue(msg + " but no answer after " + TIMEOUT_MS + "ms.", in doTestRawQueryNXDomain()
413 assertTrue(msg + " but no answer after " + TIMEOUT_MS + "ms.", in doTestRawQueryNXDomainWithPrivateDns()
443 latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testRawQueryCancel()
471 latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testRawQueryBlobCancel()
510 return mLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS); in waitForAnswer()
[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/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()
/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/
DMediaSessionManagerTest.java51 private static final int TIMEOUT_MS = 3000; field in MediaSessionManagerTest
134 assertTrue(listener.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetOnVolumeKeyLongPressListener()
182 assertTrue(listener.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetOnMediaKeyListener()
196 assertTrue(listener.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetOnMediaKeyListener()
202 assertTrue(callback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetOnMediaKeyListener()
259 assertTrue(callback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testRemoteUserInfo()
309 assertTrue(sessionCallback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testGetSession2Tokens()
310 assertTrue(listener.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testGetSession2Tokens()
337 assertTrue(listener.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testGetSession2TokensWithTwoSessions()
349 assertTrue(listener.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testGetSession2TokensWithTwoSessions()
[all …]
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()
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/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/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/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/tests/net/ipsec/src/android/net/ipsec/ike/cts/
DIkeSessionTestBase.java138 private static final int TIMEOUT_MS = 500; field in IkeSessionTestBase
381 return mFutureIkeConfig.get(TIMEOUT_MS, TimeUnit.MILLISECONDS); in awaitIkeConfig()
385 return mFutureOnClosedException.get(TIMEOUT_MS, TimeUnit.MILLISECONDS); in awaitOnClosedException()
390 (long) TIMEOUT_MS, in awaitNextOnErrorException()
398 mFutureOnClosedCall.get(TIMEOUT_MS, TimeUnit.MILLISECONDS); in awaitOnClosed()
445 return mFutureChildConfig.get(TIMEOUT_MS, TimeUnit.MILLISECONDS); in awaitChildConfig()
449 return mFutureOnClosedException.get(TIMEOUT_MS, TimeUnit.MILLISECONDS); in awaitOnClosedException()
454 (long) TIMEOUT_MS, in awaitNextCreatedIpSecTransform()
463 (long) TIMEOUT_MS, in awaitNextDeletedIpSecTransform()
471 mFutureOnClosedCall.get(TIMEOUT_MS, TimeUnit.MILLISECONDS);
DTestNetworkUtils.java35 private static final int TIMEOUT_MS = 500; field in TestNetworkUtils
47 return futureNetwork.get(TIMEOUT_MS, TimeUnit.MILLISECONDS); in getNetworkBlocking()
/cts/tests/tests/tethering/src/android/tethering/cts/
DTetheringManagerTest.java245 private static int TIMEOUT_MS = 30_000; field in TetheringManagerTest.StartTetheringCallback
281 final CallbackValue cv = mHistory.poll(TIMEOUT_MS, c -> true); in verifyTetheringStarted()
282 assertNotNull("No onTetheringStarted after " + TIMEOUT_MS + " ms", cv); in verifyTetheringStarted()
288 final CallbackValue cv = mHistory.poll(TIMEOUT_MS, c -> true); in expectTetheringFailed()
289 assertNotNull("No onTetheringFailed after " + TIMEOUT_MS + " ms", cv); in expectTetheringFailed()
363 private static final int TIMEOUT_MS = 30_000; field in TetheringManagerTest.TestTetheringEventCallback
442 assertNotNull("No expected tetherable ifaces callback", mCurrent.poll(TIMEOUT_MS, in expectTetherableInterfacesChanged()
451 assertNotNull("No expected tethered ifaces callback", mCurrent.poll(TIMEOUT_MS, in expectTetheredInterfacesChanged()
472 final CallbackValue cv = mCurrent.poll(TIMEOUT_MS, c -> true); in expectCallbackStarted()
483 assertNotNull("No offload status changed", mCurrent.poll(TIMEOUT_MS, (cv) -> { in expectOneOfOffloadStatusChanged()
[all …]
/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.java111 public static int TIMEOUT_MS = 3 * 1000; field in VpnTest
185 if (okButton.waitForExists(TIMEOUT_MS) == false) { in prepareVpn()
197 int result = mActivity.getResult(TIMEOUT_MS); in prepareVpn()
206 fail("VPN confirmation dialog did not return after " + TIMEOUT_MS + "ms"); in prepareVpn()
258 mLock.wait(TIMEOUT_MS); in startVpn()
264 fail("VPN did not become available after " + TIMEOUT_MS + "ms"); in startVpn()
301 mLockShutdown.wait(TIMEOUT_MS); in stopVpn()
543 FileDescriptor fd = mRemoteSocketFactoryClient.openSocketFd(host, port, TIMEOUT_MS); in openSocketFdInOtherApp()
629 assertTrue("Private DNS hostname was not " + hostname + " after " + TIMEOUT_MS + "ms", in expectPrivateDnsHostname()
630 latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in expectPrivateDnsHostname()
[all …]
/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()
/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/tests/tests/packageinstaller/uninstall/src/android/packageinstaller/uninstall/cts/
DUninstallTest.java57 private static final long TIMEOUT_MS = 30000; field in UninstallTest
98 TIMEOUT_MS) == null) { in testUninstall()
103 TIMEOUT_MS)); in testUninstall()
/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()

12