Home
last modified time | relevance | path

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

12

/external/guava/guava-tests/test/com/google/common/util/concurrent/
DMoreExecutorsTest.java223 assertFalse(executor.awaitTermination(20, TimeUnit.MILLISECONDS)); in testSameThreadExecutorServiceTermination()
227 assertTrue(executor.awaitTermination(1, TimeUnit.SECONDS)); in testSameThreadExecutorServiceTermination()
228 assertTrue(executor.awaitTermination(0, TimeUnit.SECONDS)); in testSameThreadExecutorServiceTermination()
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.java53 assertFalse(testExecutor.awaitTermination(10, TimeUnit.MILLISECONDS)); in testDelegations()
210 public boolean awaitTermination(long timeout, TimeUnit unit) { in awaitTermination() method in WrappingExecutorServiceTest.MockExecutor
DAbstractScheduledServiceTest.java180 assertTrue(service.executor().awaitTermination(100, TimeUnit.MILLISECONDS)); in testDefaultExecutorIsShutdownWhenServiceIsStopped()
216 assertTrue(service.executor().awaitTermination(100, TimeUnit.MILLISECONDS)); in testDefaultExecutorIsShutdownWhenServiceFails()
DWrappingScheduledExecutorServiceTest.java164 public boolean awaitTermination(long timeout, TimeUnit unit) { in awaitTermination() method in WrappingScheduledExecutorServiceTest.MockExecutor
DAtomicDoubleTest.java128 awaitTermination(t); in testCompareAndSetInMultipleThreads()
/external/guava/guava/src/com/google/common/util/concurrent/
DForwardingExecutorService.java48 public boolean awaitTermination(long timeout, TimeUnit unit) in awaitTermination() method in ForwardingExecutorService
50 return delegate().awaitTermination(timeout, unit); in awaitTermination()
DMoreExecutors.java205 service.awaitTermination(terminationTimeout, timeUnit); in addDelayedShutdownHook()
341 public boolean awaitTermination(long timeout, TimeUnit unit) in awaitTermination() method in MoreExecutors.SameThreadExecutorService
457 public boolean awaitTermination(long timeout, TimeUnit unit) in awaitTermination() method in MoreExecutors.ListeningDecorator
459 return delegate.awaitTermination(timeout, unit); in awaitTermination()
881 if (!service.awaitTermination(halfTimeoutNanos, TimeUnit.NANOSECONDS)) {
885 service.awaitTermination(halfTimeoutNanos, TimeUnit.NANOSECONDS);
DWrappingExecutorService.java162 public final boolean awaitTermination(long timeout, TimeUnit unit)
164 return delegate.awaitTermination(timeout, unit);
/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/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/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/vogar/src/vogar/tasks/
DTaskQueue.java79 runners.awaitTermination(FOREVER, TimeUnit.SECONDS); in runTasks()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DSocksProxy.java91 if (!executor.awaitTermination(5, TimeUnit.SECONDS)) { in shutdown()
DDispatcherTest.java168 @Override public boolean awaitTermination(long timeout, TimeUnit unit) in awaitTermination() method in DispatcherTest.RecordingExecutor
/external/guava/guava-tests/test/com/google/common/collect/
DQueuesTest.java68 threadPool.awaitTermination(1, TimeUnit.SECONDS)); in tearDown()
/external/guava/guava-tests/test/com/google/common/cache/
DCacheBuilderTest.java580 threadPool.awaitTermination(300, TimeUnit.SECONDS); in testRemovalNotification_get_basher()

12