Home
last modified time | relevance | path

Searched refs:TIMEOUT_MS (Results 1 – 25 of 34) 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
79 if (!mLatchStart.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in testLifecycle()
80 fail("Failed to start voice interaction in " + TIMEOUT_MS + "msec"); in testLifecycle()
84 if (!mLatchStop.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in testLifecycle()
85 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/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/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.java43 private static final int TIMEOUT_MS = 3000; field in MediaSessionManagerTest
121 assertTrue(listener.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetOnVolumeKeyLongPressListener()
168 assertTrue(listener.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetOnMediaKeyListener()
182 assertTrue(listener.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetOnMediaKeyListener()
188 assertTrue(callback.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSetOnMediaKeyListener()
/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/net/src/android/net/cts/
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()
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()
/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()
137 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/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/tests/app/src/android/app/cts/
DNewDocumentTest.java32 private static long TIMEOUT_MS = 3000; field in NewDocumentTest
60 latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in await()
/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()
DTvInputDiscoveryTestActivity.java43 private static final long TIMEOUT_MS = 5l * 60l * 1000l; // 5 mins. field in TvInputDiscoveryTestActivity
84 postTarget.postDelayed(failCallback, TIMEOUT_MS); in onClick()
102 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
124 if (!mLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in runTest()
125 fail("Failed to receive broadcast in " + TIMEOUT_MS + "msec"); in runTest()
/cts/tests/camera/src/android/hardware/camera2/cts/rs/
DBlockingInputAllocation.java167 private static final int TIMEOUT_MS = 5000; field in BlockingInputAllocation.OnBufferAvailableListener
185 mBufferSyncObject.wait(TIMEOUT_MS); in waitForBuffer()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DIconTest.java56 private static final long TIMEOUT_MS = 1000; field in IconTest
117 Thread.sleep(TIMEOUT_MS); in testLoadDrawableAsync()
131 Thread.sleep(TIMEOUT_MS); in testLoadDrawableAsyncWithMessage()
/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/DeviceOwner/src/com/android/cts/deviceowner/
DSystemUpdatePolicyTest.java37 private static final int TIMEOUT_MS = 20_000; field in SystemUpdatePolicyTest
138 mPolicyChangedSemaphore.tryAcquire(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in waitForBroadcast()
/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