Home
last modified time | relevance | path

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

/external/grpc-grpc-java/testing/src/main/java/io/grpc/internal/testing/
DAbstractTransportTest.java99 private static final int TIMEOUT_MS = 1000; field in AbstractTransportTest
204 assertTrue(serverListener.waitForShutdown(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in tearDown()
245 = serverListener.takeListenerOrFail(TIMEOUT_MS, TimeUnit.MILLISECONDS); in frameAfterRstStreamShouldNotBreakClientChannel()
256 = serverTransportListener.takeStreamOrFail(TIMEOUT_MS, TimeUnit.MILLISECONDS); in frameAfterRstStreamShouldNotBreakClientChannel()
268 Status.CANCELLED, clientStreamListener.status.get(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in frameAfterRstStreamShouldNotBreakClientChannel()
269 assertNotNull(clientStreamListener.trailers.get(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in frameAfterRstStreamShouldNotBreakClientChannel()
278 = serverTransportListener.takeStreamOrFail(TIMEOUT_MS, TimeUnit.MILLISECONDS); in frameAfterRstStreamShouldNotBreakClientChannel()
291 assertTrue(serverListener.waitForShutdown(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in serverNotListening()
296 verify(mockClientTransportListener, timeout(TIMEOUT_MS)).transportTerminated(); in serverNotListening()
313 verify(mockClientTransportListener, timeout(TIMEOUT_MS)).transportTerminated(); in clientStartStop()
[all …]
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/
DExoPlayerTest.java115 private static final int TIMEOUT_MS = 10000; field in ExoPlayerTest
141 .blockUntilEnded(TIMEOUT_MS); in playEmptyTimeline()
165 .blockUntilEnded(TIMEOUT_MS); in playSinglePeriodTimeline()
189 .blockUntilEnded(TIMEOUT_MS); in playMultiPeriodTimeline()
219 .blockUntilEnded(TIMEOUT_MS); in playShortDurationPeriods()
294 .blockUntilEnded(TIMEOUT_MS); in readAheadToEndDoesNotResetRenderer()
367 .blockUntilActionScheduleFinished(TIMEOUT_MS) in resettingMediaSourcesGivesFreshSourceInfo()
368 .blockUntilEnded(TIMEOUT_MS); in resettingMediaSourcesGivesFreshSourceInfo()
418 .blockUntilEnded(TIMEOUT_MS); in repeatModeChanges()
467 .blockUntilEnded(TIMEOUT_MS); in shuffleModeEnabledChanges()
[all …]
DPlayerMessageTest.java45 private static final long TIMEOUT_MS = 10; field in PlayerMessageTest
70 when(clock.elapsedRealtime()).thenReturn(0L).thenReturn(TIMEOUT_MS * 2); in experimental_blockUntilDelivered_timesOut()
73 message.send().experimental_blockUntilDelivered(TIMEOUT_MS, clock); in experimental_blockUntilDelivered_timesOut()
88 assertThat(message.experimental_blockUntilDelivered(TIMEOUT_MS, clock)).isTrue(); in experimental_blockUntilDelivered_onAlreadyProcessed_succeeds()
113 return TIMEOUT_MS - 1; in experimental_blockUntilDelivered_markAsProcessedWhileBlocked_succeeds()
117 assertThat(message.experimental_blockUntilDelivered(TIMEOUT_MS, clock)).isTrue(); in experimental_blockUntilDelivered_markAsProcessedWhileBlocked_succeeds()
/external/exoplayer/tree/testutils/src/test/java/com/google/android/exoplayer2/testutil/
DFakeClockTest.java36 private static final long TIMEOUT_MS = 10000; field in FakeClockTest
72 assertThat(sleeperThread.waitUntilAsleep(TIMEOUT_MS)).isTrue(); in testSleep()
75 sleeperThread.join(TIMEOUT_MS); in testSleep()
91 assertThat(thread.waitUntilAsleep(TIMEOUT_MS)).isTrue(); in testSleep()
95 assertThat(sleeperThreads[0].waitUntilAwake(TIMEOUT_MS)).isTrue(); in testSleep()
96 assertThat(sleeperThreads[1].waitUntilAwake(TIMEOUT_MS)).isTrue(); in testSleep()
99 assertThat(sleeperThreads[2].waitUntilAwake(TIMEOUT_MS)).isTrue(); in testSleep()
100 assertThat(sleeperThreads[3].waitUntilAwake(TIMEOUT_MS)).isTrue(); in testSleep()
104 thread.join(TIMEOUT_MS); in testSleep()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cancel/
D3-1.c22 #define TIMEOUT_MS 5000 macro
35 } while (after_cancel == 0 && thread_sleep_time < TIMEOUT_MS); in cleanup_func()
47 while (waited_for_cancel_ms < TIMEOUT_MS) { in thread_func()
79 if (thread_sleep_time >= TIMEOUT_MS) { in main()
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DDummyMainThread.java37 public static final int TIMEOUT_MS = 10000; field in DummyMainThread
55 runOnMainThread(TIMEOUT_MS, runnable); in runOnMainThread()
76 runTestOnMainThread(TIMEOUT_MS, runnable); in runTestOnMainThread()
DMediaSourceTestRunner.java52 public static final int TIMEOUT_MS = 10000; field in MediaSourceTestRunner
105 assertThat(finishedLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)).isTrue(); in runOnPlaybackThread()
240 timeline = timelines.poll(TIMEOUT_MS, TimeUnit.MILLISECONDS); in assertTimelineChangeBlocking()
275 assertThat(preparedLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)).isTrue(); in assertPrepareAndReleasePeriod()
288 assertThat(secondPreparedLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)).isTrue(); in assertPrepareAndReleasePeriod()
DTestDownloadManagerListener.java35 private static final int TIMEOUT_MS = 1000; field in TestDownloadManagerListener
50 this(downloadManager, dummyMainThread, TIMEOUT_MS); in TestDownloadManagerListener()
/external/rust/crates/crossbeam-channel/tests/
Dafter.rs187 const TIMEOUT_MS: u64 = 100; in select() constant
190 .map(|i| after(ms(i as u64 / TIMEOUT_MS / 2))) in select()
200 let timeout = after(ms(TIMEOUT_MS)); in select()
231 const TIMEOUT_MS: u64 = 100; in ready() constant
234 .map(|i| after(ms(i as u64 / TIMEOUT_MS / 2))) in ready()
244 let timeout = after(ms(TIMEOUT_MS)); in ready()
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DAbstractServerStreamTest.java55 private static final int TIMEOUT_MS = 1000; field in AbstractServerStreamTest
126 assertEquals(Status.OK, closedFuture.get(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in queuedBytesInDeframerShouldNotBlockComplete()
146 assertEquals(Status.CANCELLED, closedFuture.get(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in queuedBytesInDeframerShouldNotBlockTransportReportStatus()
166 Status status = closedFuture.get(TIMEOUT_MS, TimeUnit.MILLISECONDS); in partialMessageAtEndOfStreamShouldFail()
/external/exoplayer/tree/extensions/ima/src/androidTest/java/com/google/android/exoplayer2/ext/ima/
DImaPlaybackTest.java63 private static final long TIMEOUT_MS = 5 * 60 * C.MILLIS_PER_SECOND; field in ImaPlaybackTest
82 testRule.getActivity().runTest(hostedTest, TIMEOUT_MS); in playbackWithPrerollAdTag_playsAdAndContent()
93 testRule.getActivity().runTest(hostedTest, TIMEOUT_MS); in playbackWithMidrolls_playsAdAndContent()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/source/
DConcatenatingMediaSourceTest.java416 runnableInvoked.await(MediaSourceTestRunner.TIMEOUT_MS, TimeUnit.MILLISECONDS); in customCallbackBeforePreparationAddSingle()
433 runnableInvoked.await(MediaSourceTestRunner.TIMEOUT_MS, TimeUnit.MILLISECONDS); in customCallbackBeforePreparationAddMultiple()
451 runnableInvoked.await(MediaSourceTestRunner.TIMEOUT_MS, TimeUnit.MILLISECONDS); in customCallbackBeforePreparationAddSingleWithIndex()
469 runnableInvoked.await(MediaSourceTestRunner.TIMEOUT_MS, TimeUnit.MILLISECONDS); in customCallbackBeforePreparationAddMultipleWithIndex()
486 runnableInvoked.await(MediaSourceTestRunner.TIMEOUT_MS, TimeUnit.MILLISECONDS); in customCallbackBeforePreparationRemove()
504 runnableInvoked.await(MediaSourceTestRunner.TIMEOUT_MS, TimeUnit.MILLISECONDS); in customCallbackBeforePreparationMove()
647 MediaSourceTestRunner.TIMEOUT_MS, TimeUnit.MILLISECONDS)) in customCallbackIsCalledAfterRelease()
1047 runnableInvoked.await(MediaSourceTestRunner.TIMEOUT_MS, TimeUnit.MILLISECONDS); in customCallbackBeforePreparationSetShuffleOrder()
1138 assertThat(finishedLatch.await(MediaSourceTestRunner.TIMEOUT_MS, TimeUnit.MILLISECONDS)) in assertTimelineChangeBlocking()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/util/
DSntpClient.java55 private static final int TIMEOUT_MS = 10_000; field in SntpClient
134 socket.setSoTimeout(TIMEOUT_MS); in loadNtpTimeOffsetMs()
/external/exoplayer/tree/library/core/src/androidTest/java/com/google/android/exoplayer2/
DStreamVolumeManagerTest.java40 private static final long TIMEOUT_MS = 1_000; field in StreamVolumeManagerTest
269 testListener.onStreamVolumeChangedLatch.await(TIMEOUT_MS, MILLISECONDS); in onStreamVolumeChanged_isCalled_whenAudioManagerChangesIt()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/analytics/
DAnalyticsCollectorTest.java110 private static final int TIMEOUT_MS = 10000; field in AnalyticsCollectorTest
1228 .blockUntilActionScheduleFinished(TIMEOUT_MS) in runAnalyticsTest()
1229 .blockUntilEnded(TIMEOUT_MS); in runAnalyticsTest()
/external/google-breakpad/src/third_party/curl/
Dcurl.h1184 CINIT(TIMEOUT_MS, LONG, 155),