/external/dagger2/compiler/src/it/producers-functional-tests/src/main/java/producerstest/ |
D | SimpleProducerModule.java | 67 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 …]
|
D | MultibindingProducerModule.java | 36 return Futures.immediateFuture("foo"); in futureStr() 46 return Futures.<Set<String>>immediateFuture(ImmutableSet.of("foo1", "foo2")); in futureStrs()
|
D | ResponseProducerModule.java | 27 return Futures.immediateFuture("Hello"); in greeting()
|
D | DependentProducerModule.java | 33 return Futures.immediateFuture(greetings); in greetings()
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
D | FuturesTest.java | 25 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 …]
|
D | JdkFutureAdaptersTest.java | 20 import static com.google.common.util.concurrent.Futures.immediateFuture; 50 ListenableFuture<String> listenableFuture = immediateFuture(DATA1); in testListenInPoolThreadReturnsSameFuture()
|
D | FuturesTransformAsyncFunctionTest.java | 163 BadFuture badInput = new BadFuture(Futures.immediateFuture(20)); in testFutureGetThrowsRuntimeException()
|
/external/dagger2/producers/src/main/java/dagger/producers/internal/ |
D | Producers.java | 69 return Futures.immediateFuture(produced); 99 return Futures.immediateFuture(provider.get()); 109 return Futures.immediateFuture(value);
|
/external/dagger2/producers/src/test/java/dagger/producers/internal/ |
D | ProducersTest.java | 40 ListenableFuture<String> future = Futures.immediateFuture("monkey"); in createFutureProduced_success() 81 ListenableFuture<String> future = Futures.immediateFuture("monkey"); in createFutureSingletonSet_success()
|
D | AbstractProducerTest.java | 82 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/ |
D | FuturesCombineBenchmark.java | 47 return Futures.immediateFuture(combiner.call()); in combine() 82 futuresBuilder.add(Futures.immediateFuture(i));
|
/external/guava/guava/src/com/google/common/util/concurrent/ |
D | AsyncSettableFuture.java | 67 return setFuture(Futures.immediateFuture(value)); in setValue()
|
D | Futures.java | 246 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/ |
D | DependentTest.java | 58 return Futures.immediateFuture(3); in reuseBuilderWithDependentComponent()
|
/external/dagger2/compiler/src/it/producers-functional-tests/src/test/java/producerstest/builder/ |
D | ProductionComponentBuilderTest.java | 74 return Futures.immediateFuture(value); in depComponent()
|
/external/dagger2/compiler/src/it/producers-functional-tests/src/test/java/producerstest/badexecutor/ |
D | BadExecutorTest.java | 28 return Futures.immediateFuture(42.0); in setUpComponent()
|
/external/guava/guava-tests/test/com/google/common/cache/ |
D | CacheLoaderTest.java | 67 return Futures.immediateFuture(new Object()); in testAsyncReload()
|
D | TestingCacheLoaders.java | 159 return Futures.immediateFuture(oldValue + 1);
|
D | CacheLoadingTest.java | 173 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/ |
D | CacheLoader.java | 97 return Futures.immediateFuture(load(key)); in reload()
|
D | LocalCache.java | 3528 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/ |
D | ExperimentingCaliperRun.java | 62 final ListenableFuture<Object> nullFuture = Futures.immediateFuture(null);
|