Home
last modified time | relevance | path

Searched refs:Produced (Results 1 – 23 of 23) sorted by relevance

/external/dagger2/producers/src/main/java/dagger/producers/internal/
DSetOfProducedProducer.java22 import dagger.producers.Produced;
38 public final class SetOfProducedProducer<T> extends AbstractProducer<Set<Produced<T>>> {
44 public static <T> Producer<Set<Produced<T>>> create(Producer<Set<T>>... producers) { in create()
68 public ListenableFuture<Set<Produced<T>>> compute(ProducerMonitor unusedMonitor) { in compute()
69 List<ListenableFuture<Produced<Set<T>>>> futureProducedSets = in compute()
70 new ArrayList<ListenableFuture<Produced<Set<T>>>>(contributingProducers.size()); in compute()
80 new Function<List<Produced<Set<T>>>, Set<Produced<T>>>() { in compute()
82 public Set<Produced<T>> apply(List<Produced<Set<T>>> producedSets) { in compute()
83 ImmutableSet.Builder<Produced<T>> builder = ImmutableSet.builder(); in compute()
84 for (Produced<Set<T>> producedSet : producedSets) { in compute()
[all …]
DProducers.java23 import dagger.producers.Produced;
50 public static <T> ListenableFuture<Produced<T>> createFutureProduced(ListenableFuture<T> future) { in createFutureProduced()
55 new Function<T, Produced<T>>() { in createFutureProduced()
57 public Produced<T> apply(final T value) { in createFutureProduced()
58 return Produced.successful(value); in createFutureProduced()
65 private static final FutureFallback<Produced<Object>> FUTURE_FALLBACK_FOR_PRODUCED =
66 new FutureFallback<Produced<Object>>() {
67 @Override public ListenableFuture<Produced<Object>> create(final Throwable t) {
68 Produced<Object> produced = Produced.failed(t);
74 private static <T> FutureFallback<Produced<T>> futureFallbackForProduced() {
/external/dagger2/producers/src/test/java/dagger/producers/
DProducedTest.java35 assertThat(Produced.successful(5).get()).isEqualTo(5); in successfulProduced()
36 assertThat(Produced.successful("monkey").get()).isEqualTo("monkey"); in successfulProduced()
37 assertThat(Produced.successful(o).get()).isSameAs(o); in successfulProduced()
43 Produced.failed(cause).get(); in failedProduced()
54 .addEqualityGroup(Produced.successful(132435), Produced.successful(132435)) in producedEquivalence()
55 .addEqualityGroup(Produced.successful("hi"), Produced.successful("hi")) in producedEquivalence()
56 .addEqualityGroup(Produced.failed(e1), Produced.failed(e1)) in producedEquivalence()
57 .addEqualityGroup(Produced.failed(e2), Produced.failed(e2)) in producedEquivalence()
/external/dagger2/producers/src/test/java/dagger/producers/internal/
DSetOfProducedProducerTest.java21 import dagger.producers.Produced;
40 Producer<Set<Produced<Integer>>> producer = in success()
46 Produced.successful(1), in success()
47 Produced.successful(2), in success()
48 Produced.successful(5), in success()
49 Produced.successful(7)); in success()
55 Producer<Set<Produced<Integer>>> producer = in failure()
61 Produced.successful(1), Produced.successful(2), Produced.<Integer>failed(e)); in failure()
66 Producer<Set<Produced<Integer>>> producer = in delegateSetNpe()
77 Producer<Set<Produced<Integer>>> producer = in oneOfDelegateSetNpe()
[all …]
DProducersTest.java21 import dagger.producers.Produced;
41 ListenableFuture<Produced<String>> producedFuture = Producers.createFutureProduced(future); in createFutureProduced_success()
48 ListenableFuture<Produced<String>> producedFuture = Producers.createFutureProduced(future); in createFutureProduced_failure()
55 ListenableFuture<Produced<String>> producedFuture = Producers.createFutureProduced(future); in createFutureProduced_cancelPropagatesBackwards()
63 ListenableFuture<Produced<String>> producedFuture = Producers.createFutureProduced(future); in createFutureProduced_cancelDoesNotPropagateForwards()
71 private <T> ExecutionException getProducedException(Produced<T> produced) { in getProducedException()
/external/dagger2/compiler/src/it/producers-functional-tests/src/test/java/producerstest/
DMultibindingTest.java20 import dagger.producers.Produced;
47 Produced.successful("foo"), in setBindingOfProduced()
48 Produced.successful("foo1"), in setBindingOfProduced()
49 Produced.successful("foo2"), in setBindingOfProduced()
50 Produced.successful("bar"), in setBindingOfProduced()
51 Produced.successful("bar1"), in setBindingOfProduced()
52 Produced.successful("bar2")); in setBindingOfProduced()
59 Set<Produced<String>> possiblyThrowingSet = multibindingComponent.possiblyThrowingSet().get(); in setBindingOfProducedWithFailures()
62 for (Produced<String> str : possiblyThrowingSet) { in setBindingOfProducedWithFailures()
/external/dagger2/producers/src/main/java/dagger/producers/
DProduced.java46 public abstract class Produced<T> { class
66 public static <T> Produced<T> successful(@Nullable T value) { in successful()
74 public static <T> Produced<T> failed(Throwable throwable) { in failed()
78 private static final class Successful<T> extends Produced<T> {
105 private static final class Failed<T> extends Produced<T> {
132 private Produced() {} in Produced() method in Produced
/external/dagger2/compiler/src/it/producers-functional-tests/src/main/java/producerstest/
DMultibindingComponent.java19 import dagger.producers.Produced;
29 ListenableFuture<Set<Produced<String>>> successfulSet(); in successfulSet()
32 ListenableFuture<Set<Produced<String>>> possiblyThrowingSet(); in possiblyThrowingSet()
DSimpleProducerModule.java22 import dagger.producers.Produced;
108 static String strWithArgs(int i, Produced<Double> b, Producer<Object> c, Provider<Boolean> d) { in strWithArgs()
115 int i, Produced<Double> b, Producer<Object> c, Provider<Boolean> d) throws IOException { in strWithArgsThrowingException()
122 int i, Produced<Double> b, Producer<Object> c, Provider<Boolean> d) { in futureStrWithArgs()
129 int i, Produced<Double> b, Producer<Object> c, Provider<Boolean> d) throws IOException { in futureStrWithArgsThrowingException()
/external/dagger2/compiler/src/test/java/dagger/internal/codegen/
DDependencyRequestMapperTest.java24 import dagger.producers.Produced;
141 @Produces String produceString(Producer<Integer> a, Produced<Integer> b) { in produceString()
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/
DUtil.java24 import dagger.producers.Produced;
96 && MoreTypes.isTypeOf(Produced.class, MoreTypes.asDeclared(type).getTypeArguments().get(0)); in isSetOfProduced()
DDependencyRequest.java30 import dagger.producers.Produced;
360 } else if (isTypeOf(Produced.class, type)) { in extractKindAndType()
DKey.java28 import dagger.producers.Produced;
374 if (MoreTypes.isTypeOf(Produced.class, argType)) {
DProducerFactoryGenerator.java42 import dagger.producers.Produced;
414 return ParameterizedTypeName.create(ClassName.fromClass(Produced.class), keyName);
/external/sl4a/ScriptingLayerForAndroid/res/drawable/
Datari_small_notice.txt10 COMMENT Produced with bdfedit, a tcl/tk font editing program
/external/llvm/test/DebugInfo/Generic/
Ddebuginfofinder-multiple-cu.ll3 ; Produced from linking:
Dgvn.ll3 ; Produced at -O2 from:
/external/llvm/test/DebugInfo/AArch64/
Dbitfields.ll4 ; Produced at -O0 from:
/external/llvm/test/DebugInfo/X86/
Dbitfields.ll4 ; Produced at -O0 from:
/external/llvm/test/CodeGen/NVPTX/
Dcall-with-alloca-buffer.ll5 ; Produced with the following CUDA code:
/external/llvm/test/CodeGen/X86/
Dasm-mismatched-types.ll7 ; Produced by C-programs like this:
/external/opencv3/doc/tutorials/introduction/documenting_opencv/
Ddocumentation_tutorial.markdown160 Produced reference item looks like this:
190 Produced documentation block looks like this:
/external/llvm/lib/Target/Mips/
DMipsInstrFormats.td454 // Produced by the mem_simm16 address as reg << 16 | imm (see getMemEncoding).