/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/ |
D | LocalVoiceInteractionTest.java | 42 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()
|
D | VoiceInteractionTest.java | 48 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/ |
D | ViewTreeObserverTest.java | 56 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/ |
D | FocusChangeTest.java | 46 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()
|
D | AssistantContentViewTest.java | 48 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/ |
D | BlockingInputAllocation.java | 190 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/ |
D | DnsResolverTest.java | 80 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 …]
|
D | TheaterModeTest.java | 30 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()
|
D | AirplaneModeTest.java | 33 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/ |
D | ProfileTimeoutTestHelper.java | 33 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/ |
D | ScannerNotificationReceiver.java | 30 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()
|
D | MediaSessionManagerTest.java | 50 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 …]
|
D | MediaSession2ServiceTest.java | 63 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/ |
D | PreferenceRecycleTest.java | 47 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/ |
D | RemoteSocketFactoryClient.java | 36 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()
|
D | MyServiceClient.java | 30 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()
|
D | VpnTest.java | 99 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/ |
D | BroadcastTestBase.java | 35 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/ |
D | BroadcastTestBase.java | 35 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/ |
D | UninstallTest.java | 55 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/ |
D | ParentalControlTestActivity.java | 38 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()
|
D | TimeShiftTestActivity.java | 34 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()
|
D | MultipleTracksTestActivity.java | 37 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/ |
D | NewDocumentTest.java | 32 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/ |
D | Utils.java | 81 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()
|