Home
last modified time | relevance | path

Searched refs:awaitTermination (Results 1 – 25 of 153) sorted by relevance

1234567

/external/guava/android/guava-tests/test/com/google/common/util/concurrent/
DMoreExecutorsTest.java232 assertFalse(executor.awaitTermination(20, TimeUnit.MILLISECONDS)); in testDirectExecutorServiceServiceTermination()
236 assertTrue(executor.awaitTermination(1, TimeUnit.SECONDS)); in testDirectExecutorServiceServiceTermination()
237 assertTrue(executor.awaitTermination(0, TimeUnit.SECONDS)); in testDirectExecutorServiceServiceTermination()
268 service.awaitTermination(1, TimeUnit.DAYS); in testDirectExecutorService_awaitTermination_missedSignal()
571 shutdownFirst.verify(service).awaitTermination(2, TimeUnit.SECONDS); in testAddDelayedShutdownHook_success()
578 when(service.awaitTermination(2, TimeUnit.SECONDS)).thenThrow(new InterruptedException()); in testAddDelayedShutdownHook_interrupted()
695 when(service.awaitTermination(HALF_SECOND_NANOS, NANOSECONDS)).thenReturn(true); in testShutdownAndAwaitTermination_immediateShutdownInternal()
699 verify(service).awaitTermination(HALF_SECOND_NANOS, NANOSECONDS); in testShutdownAndAwaitTermination_immediateShutdownInternal()
704 when(service.awaitTermination(HALF_SECOND_NANOS, NANOSECONDS)) in testShutdownAndAwaitTermination_forcedShutDownInternal()
710 verify(service, times(2)).awaitTermination(HALF_SECOND_NANOS, NANOSECONDS); in testShutdownAndAwaitTermination_forcedShutDownInternal()
[all …]
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DMoreExecutorsTest.java232 assertFalse(executor.awaitTermination(20, TimeUnit.MILLISECONDS)); in testDirectExecutorServiceServiceTermination()
236 assertTrue(executor.awaitTermination(1, TimeUnit.SECONDS)); in testDirectExecutorServiceServiceTermination()
237 assertTrue(executor.awaitTermination(0, TimeUnit.SECONDS)); in testDirectExecutorServiceServiceTermination()
268 service.awaitTermination(1, TimeUnit.DAYS); in testDirectExecutorService_awaitTermination_missedSignal()
571 shutdownFirst.verify(service).awaitTermination(2, TimeUnit.SECONDS); in testAddDelayedShutdownHook_success()
578 when(service.awaitTermination(2, TimeUnit.SECONDS)).thenThrow(new InterruptedException()); in testAddDelayedShutdownHook_interrupted()
695 when(service.awaitTermination(HALF_SECOND_NANOS, NANOSECONDS)).thenReturn(true); in testShutdownAndAwaitTermination_immediateShutdownInternal()
699 verify(service).awaitTermination(HALF_SECOND_NANOS, NANOSECONDS); in testShutdownAndAwaitTermination_immediateShutdownInternal()
704 when(service.awaitTermination(HALF_SECOND_NANOS, NANOSECONDS)) in testShutdownAndAwaitTermination_forcedShutDownInternal()
710 verify(service, times(2)).awaitTermination(HALF_SECOND_NANOS, NANOSECONDS); in testShutdownAndAwaitTermination_forcedShutDownInternal()
[all …]
/external/grpc-grpc-java/core/src/main/java/io/grpc/
DServer.java129 public abstract boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException; in awaitTermination() method in Server
136 public abstract void awaitTermination() throws InterruptedException; in awaitTermination() method in Server
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DForwardingManagedChannelTest.java80 public void awaitTermination() throws Exception { in awaitTermination() method in ForwardingManagedChannelTest
83 forward.awaitTermination(timeout, unit); in awaitTermination()
84 verify(mock).awaitTermination(eq(timeout), eq(unit)); in awaitTermination()
/external/downloader/src/test/java/com/google/android/downloader/
DTestingExecutorService.java62 public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException { in awaitTermination() method in TestingExecutorService
63 return delegate.awaitTermination(timeout, unit); in awaitTermination()
/external/testng/src/main/java/org/testng/internal/thread/
DExecutorAdapter.java39 public boolean awaitTermination(long timeout) { in awaitTermination() method in ExecutorAdapter
42 result= super.awaitTermination(timeout, TimeUnit.MILLISECONDS); in awaitTermination()
DIExecutor.java13 boolean awaitTermination(long timeout); in awaitTermination() method
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DForwardingManagedChannel.java56 public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException { in awaitTermination() method in ForwardingManagedChannel
57 return delegate.awaitTermination(timeout, unit); in awaitTermination()
DManagedChannelOrphanWrapper.java69 public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException { in awaitTermination() method in ManagedChannelOrphanWrapper
70 boolean ret = super.awaitTermination(timeout, unit); in awaitTermination()
/external/mockito/src/test/java/org/mockitousage/bugs/
DShouldNotDeadlockAnswerExecutionTest.java41 if (!threads.awaitTermination(1000, TimeUnit.MILLISECONDS)) { in failIfMockIsSharedBetweenThreads()
68 if (!threads.awaitTermination(500, TimeUnit.MILLISECONDS)) { in successIfEveryThreadHasItsOwnMock()
/external/grpc-grpc-java/testing/src/main/java/io/grpc/testing/
DGrpcServerRule.java103 channel.awaitTermination(1, TimeUnit.MINUTES); in after()
104 server.awaitTermination(1, TimeUnit.MINUTES); in after()
DGrpcCleanupRule.java218 return channel.awaitTermination(duration, timeUnit);
246 return server.awaitTermination(duration, timeUnit);
/external/grpc-grpc-java/benchmarks/src/jmh/java/io/grpc/benchmarks/
DTransportBenchmark.java162 channel.awaitTermination(1, TimeUnit.SECONDS); in tearDown()
163 server.awaitTermination(1, TimeUnit.SECONDS); in tearDown()
172 groupToShutdown.awaitTermination(1, TimeUnit.SECONDS); in tearDown()
/external/guava/android/guava/src/com/google/common/util/concurrent/
DForwardingExecutorService.java48 public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException { in awaitTermination() method in ForwardingExecutorService
49 return delegate().awaitTermination(timeout, unit); in awaitTermination()
DMoreExecutors.java214 service.awaitTermination(terminationTimeout, timeUnit); in addDelayedShutdownHook()
298 public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException { in awaitTermination() method in MoreExecutors.DirectExecutorService
525 public final boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException { in awaitTermination() method in MoreExecutors.ListeningDecorator
526 return delegate.awaitTermination(timeout, unit); in awaitTermination()
972 if (!service.awaitTermination(halfTimeoutNanos, TimeUnit.NANOSECONDS)) {
976 service.awaitTermination(halfTimeoutNanos, TimeUnit.NANOSECONDS);
DWrappingExecutorService.java159 public final boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException {
160 return delegate.awaitTermination(timeout, unit);
/external/guava/guava/src/com/google/common/util/concurrent/
DForwardingExecutorService.java48 public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException { in awaitTermination() method in ForwardingExecutorService
49 return delegate().awaitTermination(timeout, unit); in awaitTermination()
DMoreExecutors.java275 service.awaitTermination(terminationTimeout, timeUnit); in addDelayedShutdownHook()
359 public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException { in awaitTermination() method in MoreExecutors.DirectExecutorService
586 public final boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException { in awaitTermination() method in MoreExecutors.ListeningDecorator
587 return delegate.awaitTermination(timeout, unit); in awaitTermination()
1077 if (!service.awaitTermination(halfTimeoutNanos, TimeUnit.NANOSECONDS)) {
1081 service.awaitTermination(halfTimeoutNanos, TimeUnit.NANOSECONDS);
DWrappingExecutorService.java159 public final boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException {
160 return delegate.awaitTermination(timeout, unit);
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-reactive/test/
DPublisherRequestStressTest.kt57 emitPool.awaitTermination(10, TimeUnit.SECONDS) in <lambda>()
58 reqPool.awaitTermination(10, TimeUnit.SECONDS) in <lambda>()
/external/guice/extensions/servlet/test/com/google/inject/servlet/
DContinuingRequestIntegrationTest.java79 public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException {
148 executor.awaitTermination(10, TimeUnit.SECONDS); in testRequestContinuesInOtherThread()
191 executor.awaitTermination(10, TimeUnit.SECONDS); in testRequestContinuationDiesInHttpRequestThread()
/external/grpc-grpc-java/netty/shaded/src/testShadow/java/io/grpc/netty/shaded/
DShadingTest.java53 channel.awaitTermination(1, TimeUnit.SECONDS); in tearDown()
57 server.awaitTermination(1, TimeUnit.SECONDS); in tearDown()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/util/concurrent/
DRoboExecutorServiceTest.java123 assertThat(executorService.awaitTermination(0, TimeUnit.MILLISECONDS)).isTrue(); in whenAwaitingTerminationAfterShutdown_TrueIsReturned()
130 assertThat(executorService.awaitTermination(500, TimeUnit.MILLISECONDS)).isFalse(); in whenAwaitingTermination_AllTasksAreRunByDefault()
/external/grpc-grpc-java/interop-testing/src/main/java/io/grpc/testing/integration/
DTestServiceServer.java162 if (!server.awaitTermination(5, TimeUnit.SECONDS)) { in stop()
176 server.awaitTermination(); in blockUntilShutdown()
/external/guava/android/guava-testlib/src/com/google/common/util/concurrent/testing/
DAbstractListenableFutureTest.java198 exec.awaitTermination(100, TimeUnit.MILLISECONDS); in testListenersNotifiedOnError()
245 exec.awaitTermination(500, TimeUnit.MILLISECONDS); in testAllListenersCompleteSuccessfully()

1234567