Home
last modified time | relevance | path

Searched refs:immediateFuture (Results 1 – 22 of 22) sorted by relevance

/external/dagger2/compiler/src/it/producers-functional-tests/src/main/java/producerstest/
DSimpleProducerModule.java67 return Futures.immediateFuture("future str"); in futureStr()
79 return Futures.immediateFuture("future str with arg"); in futureStrWithArg()
91 return Futures.immediateFuture("future str throwing exception"); in futureStrThrowingException()
103 return Futures.immediateFuture("future str with arg throwing exception"); in futureStrWithArgThrowingException()
123 return Futures.immediateFuture("future str with args"); in futureStrWithArgs()
130 return Futures.immediateFuture("str with args throwing exception"); in futureStrWithArgsThrowingException()
147 return Futures.immediateFuture("set of str element"); in setOfStrFutureElement()
152 return Futures.immediateFuture("set of str element throwing exception"); in setOfStrFutureElementThrowingException()
167 return Futures.immediateFuture("set of str element with arg"); in setOfStrFutureElementWithArg()
173 return Futures.immediateFuture("set of str element with arg throwing exception"); in setOfStrFutureElementWithArgThrowingException()
[all …]
DMultibindingProducerModule.java36 return Futures.immediateFuture("foo"); in futureStr()
46 return Futures.<Set<String>>immediateFuture(ImmutableSet.of("foo1", "foo2")); in futureStrs()
DResponseProducerModule.java27 return Futures.immediateFuture("Hello"); in greeting()
DDependentProducerModule.java33 return Futures.immediateFuture(greetings); in greetings()
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DFuturesTest.java25 import static com.google.common.util.concurrent.Futures.immediateFuture;
110 ListenableFuture<String> future = Futures.immediateFuture(DATA1); in testImmediateFuture()
117 ListenableFuture<String> future1 = Futures.immediateFuture(DATA1); in testMultipleImmediateFutures()
118 ListenableFuture<String> future2 = Futures.immediateFuture(DATA2); in testMultipleImmediateFutures()
213 ListenableFuture<?> nullFuture = Futures.immediateFuture(null); in testTransform_genericsNull()
220 ListenableFuture<FooChild> future = Futures.immediateFuture(null); in testTransform_genericsHierarchy()
256 ListenableFuture<Foo> immediate = Futures.immediateFuture(new Foo()); in testTransform_cancelPropagatesToAsyncOutput()
270 ListenableFuture<Foo> immediate = Futures.immediateFuture(new Foo()); in testTransform_interruptPropagatesToAsyncOutput()
318 ListenableFuture<Integer> immediateFuture = Futures.immediateFuture(4); in testTransformValueRemainsMemoized() local
319 Future<Integer> transformedFuture = Futures.transform(immediateFuture, adder); in testTransformValueRemainsMemoized()
[all …]
DJdkFutureAdaptersTest.java20 import static com.google.common.util.concurrent.Futures.immediateFuture;
50 ListenableFuture<String> listenableFuture = immediateFuture(DATA1); in testListenInPoolThreadReturnsSameFuture()
DFuturesTransformAsyncFunctionTest.java163 BadFuture badInput = new BadFuture(Futures.immediateFuture(20)); in testFutureGetThrowsRuntimeException()
/external/dagger2/producers/src/main/java/dagger/producers/internal/
DProducers.java69 return Futures.immediateFuture(produced);
99 return Futures.immediateFuture(provider.get());
109 return Futures.immediateFuture(value);
/external/dagger2/producers/src/test/java/dagger/producers/internal/
DProducersTest.java40 ListenableFuture<String> future = Futures.immediateFuture("monkey"); in createFutureProduced_success()
81 ListenableFuture<String> future = Futures.immediateFuture("monkey"); in createFutureSingletonSet_success()
DAbstractProducerTest.java82 return Futures.immediateFuture(i++); in get()
126 new DelegateProducer<>(null, Futures.immediateFuture(42)); in monitor_null()
/external/guava/guava-tests/benchmark/com/google/common/util/concurrent/
DFuturesCombineBenchmark.java47 return Futures.immediateFuture(combiner.call()); in combine()
82 futuresBuilder.add(Futures.immediateFuture(i));
/external/guava/guava/src/com/google/common/util/concurrent/
DAsyncSettableFuture.java67 return setFuture(Futures.immediateFuture(value)); in setValue()
DFutures.java246 public static <V> ListenableFuture<V> immediateFuture(@Nullable V value) { in immediateFuture() method in Futures
761 return immediateFuture(output);
/external/dagger2/compiler/src/it/producers-functional-tests/src/test/java/producerstest/
DDependentTest.java58 return Futures.immediateFuture(3); in reuseBuilderWithDependentComponent()
/external/dagger2/compiler/src/it/producers-functional-tests/src/test/java/producerstest/builder/
DProductionComponentBuilderTest.java74 return Futures.immediateFuture(value); in depComponent()
/external/dagger2/compiler/src/it/producers-functional-tests/src/test/java/producerstest/badexecutor/
DBadExecutorTest.java28 return Futures.immediateFuture(42.0); in setUpComponent()
/external/guava/guava-tests/test/com/google/common/cache/
DCacheLoaderTest.java67 return Futures.immediateFuture(new Object()); in testAsyncReload()
DTestingCacheLoaders.java159 return Futures.immediateFuture(oldValue + 1);
DCacheLoadingTest.java173 return Futures.immediateFuture(two); in testReload()
220 return Futures.immediateFuture(two); in testRefresh()
280 return Futures.immediateFuture(two); in testRefresh_getIfPresent()
708 return Futures.immediateFuture(null); in testReloadNullFuture()
754 return Futures.immediateFuture(null); in testRefreshNull()
/external/guava/guava/src/com/google/common/cache/
DCacheLoader.java97 return Futures.immediateFuture(load(key)); in reload()
DLocalCache.java3528 return set(newValue) ? futureValue : Futures.immediateFuture(newValue); in loadFuture()
3532 return Futures.immediateFuture(null); in loadFuture()
/external/caliper/caliper/src/main/java/com/google/caliper/runner/
DExperimentingCaliperRun.java62 final ListenableFuture<Object> nullFuture = Futures.immediateFuture(null);