Home
last modified time | relevance | path

Searched defs:future (Results 1 – 25 of 82) sorted by relevance

1234

/external/dagger2/producers/src/test/java/dagger/producers/internal/
DProducersTest.java40 ListenableFuture<String> future = Futures.immediateFuture("monkey"); in createFutureProduced_success() local
47 ListenableFuture<String> future = Futures.immediateFailedFuture(new RuntimeException("monkey")); in createFutureProduced_failure() local
54 ListenableFuture<String> future = SettableFuture.create(); in createFutureProduced_cancelPropagatesBackwards() local
62 ListenableFuture<String> future = SettableFuture.create(); in createFutureProduced_cancelDoesNotPropagateForwards() local
81 ListenableFuture<String> future = Futures.immediateFuture("monkey"); in createFutureSingletonSet_success() local
88 ListenableFuture<String> future = Futures.immediateFailedFuture(new RuntimeException("monkey")); in createFutureSingletonSet_failure() local
DSetProducerTest.java49 ListenableFuture<Set<Integer>> future = producer.get(); in delegateSetNpe() local
63 ListenableFuture<Set<Integer>> future = producer.get(); in delegateElementNpe() local
DAbstractProducerTest.java95 ListenableFuture<Integer> future = producer.get(); in monitor_success() local
109 ListenableFuture<Integer> future = producer.get(); in monitor_failure() local
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DAbstractFutureTest.java48 AbstractFuture<String> future = new AbstractFuture<String>() { in testException() local
68 InterruptibleFuture future = new InterruptibleFuture(); in testCancel_notDoneNoInterrupt() local
83 InterruptibleFuture future = new InterruptibleFuture(); in testCancel_notDoneInterrupt() local
98 AbstractFuture<String> future = new AbstractFuture<String>() { in testCancel_done() local
111 final AbstractFuture<String> future = new AbstractFuture<String>() {}; in testCompletionFinishesWithDone() local
181 AbstractFuture<String> future) throws InterruptedException { in getExpectingExecutionException()
DAsyncSettableFutureTest.java38 AsyncSettableFuture<Integer> future = AsyncSettableFuture.create(); in testCreate() local
45 AsyncSettableFuture<Integer> future = AsyncSettableFuture.create(); in testSetValue() local
59 AsyncSettableFuture<Object> future = AsyncSettableFuture.create(); in testSetException() local
79 AsyncSettableFuture<String> future = AsyncSettableFuture.create(); in testSetFuture() local
101 AsyncSettableFuture<Foo> future = AsyncSettableFuture.create(); in testSetFuture_genericsHierarchy() local
DFuturesTest.java110 ListenableFuture<String> future = Futures.immediateFuture(DATA1); in testImmediateFuture() local
127 ListenableFuture<String> future = in testImmediateFailedFuture() local
141 ListenableFuture<String> future = in testImmediateFailedFuture_cancellationException() local
155 ListenableFuture<String> future = in testImmediateCancelledFuture() local
163 CheckedFuture<String, MyException> future = Futures.immediateCheckedFuture( in testImmediateCheckedFuture() local
186 CheckedFuture<String, MyException> future = in testImmediateFailedCheckedFuture() local
220 ListenableFuture<FooChild> future = Futures.immediateFuture(null); in testTransform_genericsHierarchy() local
DMoreExecutorsTest.java124 ListenableFuture<?> future = executor.submit(incrementTask); in testDirectExecutorServiceServiceInThreadExecution() local
158 Future<Integer> future = futures.get(i); in testDirectExecutorServiceInvokeAll() local
309 ListenableFuture<?> future = in testListeningDecorator_scheduleSuccess() local
327 ListenableFuture<?> future = in testListeningDecorator_scheduleFailure() local
338 ListenableFuture<?> future; in testListeningDecorator_schedulePeriodic() local
357 ListenableFuture<?> future; in testListeningDecorator_cancelled() local
405 private static void assertExecutionException(Future<?> future, Exception expectedCause) in assertExecutionException()
497 private static void assertListenerRunImmediately(ListenableFuture<?> future) { in assertListenerRunImmediately()
DListenableFutureTester.java42 private final ListenableFuture<?> future; field in ListenableFutureTester
45 public ListenableFutureTester(ListenableFuture<?> future) { in ListenableFutureTester()
DSettableFutureTest.java31 private SettableFuture<String> future; field in SettableFutureTest
/external/guava/guava-testlib/test/com/google/common/util/concurrent/testing/
DTestingExecutorsTest.java48 ScheduledFuture<?> future = TestingExecutors.noOpScheduledExecutor().schedule( in testNoOpScheduledExecutor() local
75 Future<Boolean> future = futureList.get(0); in testNoOpScheduledExecutorInvokeAll() local
94 Future<Integer> future = TestingExecutors.sameThreadScheduledExecutor().schedule( in testSameThreadScheduledExecutor() local
107 Future<?> future = TestingExecutors.sameThreadScheduledExecutor().submit(runnable); in testSameThreadScheduledExecutorWithException() local
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DAccountManagerTest.java45 AccountManagerFuture<Bundle> future = in testGetAuthTokenByFeatures_isCancelled() local
55 AccountManagerFuture<Bundle> future = in testGetAuthTokenByFeatures_isDoneWithCancel() local
65 AccountManagerFuture<Bundle> future = in testGetAuthTokenByFeatures_isDoneWithGetResult() local
81 AccountManagerFuture<Bundle> future = in testGetAuthTokenByFeatures_getResult() local
92 AccountManagerFuture<Bundle> future = in testGetAuthToken_getResult() local
/external/guava/guava-testlib/src/com/google/common/util/concurrent/testing/
DAbstractCheckedFutureTest.java70 final CheckedFuture<Boolean, ?> future = in testCheckedGetThrowsApplicationExceptionOnCancellation() local
97 final CheckedFuture<Boolean, ?> future = in testCheckedGetThrowsApplicationExceptionOnInterruption() local
134 final CheckedFuture<Boolean, ?> future = in testCheckedGetThrowsApplicationExceptionOnError() local
DMockFutureListener.java40 private final ListenableFuture<?> future; field in MockFutureListener
42 public MockFutureListener(ListenableFuture<?> future) { in MockFutureListener()
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/util/
DRobolectricBackgroundExecutorServiceTest.java47 Future<String> future = executorService.submit(runnable, "foo"); in submitRunnable_shouldRunStuffOnBackgroundThread() local
61 Future<String> future = executorService.submit(new Callable<String>() { in submitCallable_shouldRunStuffOnBackgroundThread() local
/external/guava/guava-testlib/test/com/google/common/testing/
DGcFinalizationTest.java53 final SettableFuture<Void> future = SettableFuture.create(); in testAwaitDone_Future() local
64 final SettableFuture<Void> future = SettableFuture.create(); in testAwaitDone_Future_Cancel() local
144 final SettableFuture<Void> future = SettableFuture.create(); in testAwaitDone_Future_Interrupted_Interrupted() local
/external/guava/guava/src/com/google/common/util/concurrent/
DJdkFutureAdapters.java59 Future<V> future) { in listenInPoolThread()
91 Future<V> future, Executor executor) { in listenInPoolThread()
DUninterruptibles.java131 public static <V> V getUninterruptibly(Future<V> future) in getUninterruptibly()
163 Future<V> future, long timeout, TimeUnit unit) in getUninterruptibly()
DAsyncSettableFuture.java57 public boolean setFuture(ListenableFuture<? extends V> future) { in setFuture()
/external/icu/android_icu4j/src/main/java/android/icu/impl/duration/
DPeriod.java150 public Period inFuture(boolean future) { in inFuture()
297 private Period(int limit, boolean future, float count, TimeUnit unit) { in Period()
349 private Period setFuture(boolean future) { in setFuture()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/
DPeriod.java148 public Period inFuture(boolean future) { in inFuture()
295 private Period(int limit, boolean future, float count, TimeUnit unit) { in Period()
347 private Period setFuture(boolean future) { in setFuture()
/external/dagger2/producers/src/main/java/dagger/producers/internal/
DProducers.java50 public static <T> ListenableFuture<Produced<T>> createFutureProduced(ListenableFuture<T> future) { in createFutureProduced()
/external/testng/src/main/java/org/testng/internal/thread/
DFutureResultAdapter.java15 public FutureResultAdapter(Future<?> future) { in FutureResultAdapter()
/external/jacoco/org.jacoco.agent.rt.test/src/org/jacoco/agent/rt/internal/output/
DExecutorTestBase.java51 protected void assertBlocks(final Future<?> future) throws Exception { in assertBlocks()
/external/dagger2/producers/src/main/java/dagger/producers/monitoring/
DProducerMonitor.java91 public <T> void addCallbackTo(ListenableFuture<T> future) { in addCallbackTo()
/external/guice/extensions/service/test/com/google/inject/service/
DSingleServiceIntegrationTest.java42 Future<?> future = service.start(); in testAsyncServiceLifecycle() local

1234