Home
last modified time | relevance | path

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

123

/external/guava/guava-tests/test/com/google/common/util/concurrent/
DMoreExecutorsTest.java223 assertFalse(executor.awaitTermination(20, TimeUnit.MILLISECONDS)); in testDirectExecutorServiceServiceTermination()
227 assertTrue(executor.awaitTermination(1, TimeUnit.SECONDS)); in testDirectExecutorServiceServiceTermination()
228 assertTrue(executor.awaitTermination(0, TimeUnit.SECONDS)); in testDirectExecutorServiceServiceTermination()
520 shutdownFirst.verify(service).awaitTermination(2, TimeUnit.SECONDS); in testAddDelayedShutdownHook_success()
527 when(service.awaitTermination(2, TimeUnit.SECONDS)).thenThrow(new InterruptedException()); in testAddDelayedShutdownHook_interrupted()
640 when(service.awaitTermination(HALF_SECOND_NANOS, NANOSECONDS)).thenReturn(true); in testShutdownAndAwaitTermination_immediateShutdownInternal()
644 verify(service).awaitTermination(HALF_SECOND_NANOS, NANOSECONDS); in testShutdownAndAwaitTermination_immediateShutdownInternal()
649 when(service.awaitTermination(HALF_SECOND_NANOS, NANOSECONDS)) in testShutdownAndAwaitTermination_forcedShutDownInternal()
654 verify(service, times(2)).awaitTermination(HALF_SECOND_NANOS, NANOSECONDS); in testShutdownAndAwaitTermination_forcedShutDownInternal()
660 when(service.awaitTermination(HALF_SECOND_NANOS, NANOSECONDS)) in testShutdownAndAwaitTermination_nonTerminationInternal()
[all …]
DAtomicDoubleArrayTest.java212 awaitTermination(t); in testCompareAndSetInMultipleThreads()
326 awaitTermination(t1); in testCountingInMultipleThreads()
327 awaitTermination(t2); in testCountingInMultipleThreads()
DJSR166TestCase.java510 exec.awaitTermination(2 * LONG_DELAY_MS, MILLISECONDS)); in joinPool()
776 void awaitTermination(Thread t, long timeoutMillis) { in awaitTermination() method in JSR166TestCase
794 void awaitTermination(Thread t) { in awaitTermination() method in JSR166TestCase
795 awaitTermination(t, LONG_DELAY_MS); in awaitTermination()
DAbstractListeningExecutorServiceTest.java108 public boolean awaitTermination(long timeout, TimeUnit unit) { in awaitTermination() method in AbstractListeningExecutorServiceTest.TestListeningExecutorService
DWrappingExecutorServiceTest.java50 assertFalse(testExecutor.awaitTermination(10, TimeUnit.MILLISECONDS)); in testDelegations()
207 public boolean awaitTermination(long timeout, TimeUnit unit) { in awaitTermination() method in WrappingExecutorServiceTest.MockExecutor
DAbstractScheduledServiceTest.java171 assertTrue(executor.get().awaitTermination(100, TimeUnit.MILLISECONDS)); in testDefaultExecutorIsShutdownWhenServiceIsStopped()
198 assertTrue(executor.get().awaitTermination(100, TimeUnit.MILLISECONDS)); in testDefaultExecutorIsShutdownWhenServiceFails()
/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/guava/guava/src/com/google/common/util/concurrent/
DMoreExecutors.java205 service.awaitTermination(terminationTimeout, timeUnit); in addDelayedShutdownHook()
343 public boolean awaitTermination(long timeout, TimeUnit unit) in awaitTermination() method in MoreExecutors.DirectExecutorService
523 public boolean awaitTermination(long timeout, TimeUnit unit) in awaitTermination() method in MoreExecutors.ListeningDecorator
525 return delegate.awaitTermination(timeout, unit); in awaitTermination()
948 if (!service.awaitTermination(halfTimeoutNanos, TimeUnit.NANOSECONDS)) {
952 service.awaitTermination(halfTimeoutNanos, TimeUnit.NANOSECONDS);
DForwardingExecutorService.java48 public boolean awaitTermination(long timeout, TimeUnit unit) in awaitTermination() method in ForwardingExecutorService
50 return delegate().awaitTermination(timeout, unit); in awaitTermination()
DWrappingExecutorService.java162 public final boolean awaitTermination(long timeout, TimeUnit unit)
164 return delegate.awaitTermination(timeout, unit);
/external/guice/extensions/servlet/test/com/google/inject/servlet/
DContinuingRequestIntegrationTest.java79 public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException {
144 executor.awaitTermination(10, TimeUnit.SECONDS); in testRequestContinuesInOtherThread()
186 executor.awaitTermination(10, TimeUnit.SECONDS); in testRequestContinuationDiesInHttpRequestThread()
/external/guava/guava-testlib/src/com/google/common/util/concurrent/testing/
DAbstractListenableFutureTest.java200 exec.awaitTermination(100, TimeUnit.MILLISECONDS); in testListenersNotifiedOnError()
244 exec.awaitTermination(500, TimeUnit.MILLISECONDS); in testAllListenersCompleteSuccessfully()
DSameThreadScheduledExecutorService.java74 public boolean awaitTermination(long timeout, TimeUnit unit) in awaitTermination() method in SameThreadScheduledExecutorService
77 return delegate.awaitTermination(timeout, unit); in awaitTermination()
DTestingExecutors.java124 @Override public boolean awaitTermination(long timeout, TimeUnit unit) { in awaitTermination() method in TestingExecutors.NoOpScheduledExecutorService
/external/testng/src/main/java/org/testng/remote/adapter/
DIMasterAdapter.java39 public void awaitTermination(long timeout) throws InterruptedException; in awaitTermination() method
DDefaultMastertAdapter.java80 public void awaitTermination(long timeout) throws InterruptedException in awaitTermination() method in DefaultMastertAdapter
/external/guava/guava-bootstrap/src/java/util/concurrent/
DExecutorService.java25 boolean awaitTermination(long timeout, TimeUnit unit) in awaitTermination() method
/external/jmdns/src/javax/jmdns/impl/
DJmmDNSImpl.java106 executor.awaitTermination(DNSConstants.CLOSE_TIMEOUT, TimeUnit.MILLISECONDS); in close()
215 executor.awaitTermination(timeout, TimeUnit.MILLISECONDS); in getServiceInfos()
418 executor.awaitTermination(timeout, TimeUnit.MILLISECONDS); in list()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/util/
DRobolectricBackgroundExecutorService.java37 public boolean awaitTermination(long l, TimeUnit timeUnit) throws InterruptedException { in awaitTermination() method in RobolectricBackgroundExecutorService
/external/jetty/src/java/org/eclipse/jetty/util/thread/
DExecutorThreadPool.java174 _executor.awaitTermination(Long.MAX_VALUE, TimeUnit.MILLISECONDS);
/external/junit/src/org/junit/internal/runners/
DMethodRoadie.java69 boolean terminated= service.awaitTermination(timeout, in runWithTimeout()
/external/owasp/sanitizer/src/tests/org/owasp/html/
DHtmlSanitizerFuzzerTest.java142 executor.awaitTermination(runCount * 4, TimeUnit.SECONDS); in testFuzzHtmlParser()
/external/testng/src/main/java/org/testng/remote/
DSuiteDispatcher.java140 m_masterAdpter.awaitTermination(100000); in dispatch()
/external/vogar/src/vogar/tasks/
DTaskQueue.java79 runners.awaitTermination(FOREVER, TimeUnit.SECONDS); in runTasks()

123