Home
last modified time | relevance | path

Searched refs:Producers (Results 1 – 25 of 35) sorted by relevance

12

/external/dagger2/javatests/dagger/producers/internal/
DSetProducerTest.java25 import dagger.producers.Producers;
42 .addProducer(Producers.immediateProducer(1)) in success()
43 .addCollectionProducer(Producers.<Set<Integer>>immediateProducer(ImmutableSet.of(5, 7))) in success()
52 .addProducer(Producers.<Integer>immediateProducer(null)) in delegateNpe()
67 .addCollectionProducer(Producers.<Set<Integer>>immediateProducer(null)) in delegateSetNpe()
82 .addCollectionProducer(Producers.<Set<Integer>>immediateProducer(ImmutableSet.of(1, 2))) in delegateElementNpe()
84 Producers.<Set<Integer>>immediateProducer(Collections.<Integer>singleton(null))) in delegateElementNpe()
DProducersTest.java43 ListenableFuture<Produced<String>> producedFuture = Producers.createFutureProduced(future); in createFutureProduced_success()
50 ListenableFuture<Produced<String>> producedFuture = Producers.createFutureProduced(future); in createFutureProduced_failure()
60 ListenableFuture<Produced<String>> producedFuture = Producers.createFutureProduced(future); in createFutureProduced_cancelPropagatesBackwards()
68 ListenableFuture<Produced<String>> producedFuture = Producers.createFutureProduced(future); in createFutureProduced_cancelDoesNotPropagateForwards()
88 ListenableFuture<Set<String>> setFuture = Producers.createFutureSingletonSet(future); in createFutureSingletonSet_success()
95 ListenableFuture<Set<String>> setFuture = Producers.createFutureSingletonSet(future); in createFutureSingletonSet_failure()
108 Producers.allAsSet( in allAsSet_success()
118 Producers.allAsSet( in allAsSet_failure()
132 Producer<Integer> producer = Producers.producerFromProvider(new Provider<Integer>() { in producerFromProvider_doesntCache()
DSetOfProducedProducerTest.java26 import dagger.producers.Producers;
44 .addProducer(Producers.immediateProducer(1)) in success()
45 .addCollectionProducer(Producers.<Set<Integer>>immediateProducer(ImmutableSet.of(5, 7))) in success()
59 .addCollectionProducer(Producers.<Set<Integer>>immediateProducer(ImmutableSet.of(1, 2))) in failure()
60 .addProducer(Producers.<Integer>immediateFailedProducer(e)) in failure()
71 .addProducer(Producers.<Integer>immediateProducer(null)) in delegateNpe()
85 .addCollectionProducer(Producers.<Set<Integer>>immediateProducer(null)) in delegateSetNpe()
100 Producers.<Set<Integer>>immediateProducer(Collections.<Integer>singleton(null))) in delegateElementNpe()
115 Producers.<Set<Integer>>immediateProducer( in oneOfDelegateElementNpe()
DMapProducerTest.java23 import dagger.producers.Producers;
36 .put(15, Producers.immediateProducer("fifteen")) in success()
37 .put(42, Producers.immediateProducer("forty two")) in success()
50 .put(15, Producers.immediateProducer("fifteen")) in failingContribution()
52 .put(42, Producers.<String>immediateFailedProducer(cause)) in failingContribution()
DMapOfProducerProducerTest.java23 import dagger.producers.Producers;
36 .put(15, Producers.<String>immediateProducer("fifteen")) in success()
37 .put(42, Producers.<String>immediateProducer("forty two")) in success()
52 .put(15, Producers.<String>immediateProducer("fifteen")) in failingContributionDoesNotFailMap()
53 .put(42, Producers.<String>immediateFailedProducer(cause)) in failingContributionDoesNotFailMap()
/external/dagger2/java/dagger/producers/internal/
DProducers.java40 public final class Producers { class
55 transform(future, Producers.<T>resultToProduced(), directExecutor()), in createFutureProduced()
57 Producers.<T>futureFallbackForProduced(), in createFutureProduced()
145 return dagger.producers.Producers.immediateProducer(value);
156 return dagger.producers.Producers.immediateFailedProducer(throwable);
210 dagger.producers.Producers.<Map<Object, Object>>immediateProducer(ImmutableMap.of());
236 private Producers() {}
DMapOfProducerProducer.java19 import static dagger.producers.internal.Producers.entryPointViewOf;
20 import static dagger.producers.internal.Producers.nonCancellationPropagatingViewOf;
94 return dagger.producers.Producers.<Map<K, Producer<V>>>immediateProducer( in newTransformedValuesView()
DSetOfProducedProducer.java124 Producers.createFutureProduced( in compute()
125 Producers.createFutureSingletonSet(checkNotNull(producer.get())))); in compute()
128 futureProducedCollections.add(Producers.createFutureProduced(checkNotNull(producer.get()))); in compute()
DAbstractMapProducer.java20 import static dagger.producers.internal.Producers.producerFromProvider;
DSetProducer.java42 dagger.producers.Producers.<Set<Object>>immediateProducer(ImmutableSet.<Object>of());
DMapOfProducedProducer.java70 Producers.createFutureProduced(entry.getValue().get()),
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/
DWebAssemblyAsmPrinter.cpp207 MCSectionWasm *Producers = OutContext.getWasmSection( in EmitProducerInfo() local
210 OutStreamer->SwitchSection(Producers); in EmitProducerInfo()
212 for (auto &Producers : {std::make_pair("language", &Languages), in EmitProducerInfo()
214 if (Producers.second->empty()) in EmitProducerInfo()
216 OutStreamer->EmitULEB128IntValue(strlen(Producers.first)); in EmitProducerInfo()
217 OutStreamer->EmitBytes(Producers.first); in EmitProducerInfo()
218 OutStreamer->EmitULEB128IntValue(Producers.second->size()); in EmitProducerInfo()
219 for (auto &Producer : *Producers.second) { in EmitProducerInfo()
/external/llvm-project/llvm/lib/Target/WebAssembly/
DWebAssemblyAsmPrinter.cpp309 MCSectionWasm *Producers = OutContext.getWasmSection( in EmitProducerInfo() local
312 OutStreamer->SwitchSection(Producers); in EmitProducerInfo()
314 for (auto &Producers : {std::make_pair("language", &Languages), in EmitProducerInfo()
316 if (Producers.second->empty()) in EmitProducerInfo()
318 OutStreamer->emitULEB128IntValue(strlen(Producers.first)); in EmitProducerInfo()
319 OutStreamer->emitBytes(Producers.first); in EmitProducerInfo()
320 OutStreamer->emitULEB128IntValue(Producers.second->size()); in EmitProducerInfo()
321 for (auto &Producer : *Producers.second) { in EmitProducerInfo()
/external/dagger2/java/dagger/producers/
DProducers.java27 public final class Producers { class
65 private Producers() {} in Producers() method in Producers
DBUILD63 artifact_name = "Dagger Producers",
/external/dagger2/java/dagger/internal/codegen/writing/
DProducerEntryPointView.java31 import dagger.producers.internal.Producers;
98 Producers.class, in createField()
DProducerFactoryGenerator.java78 import dagger.producers.internal.Producers;
270 "this.$1N = $2T.nonCancellationPropagatingViewOf($1N)", field, Producers.class); in fieldAssignment()
281 "this.$1N = $2T.nonCancellationPropagatingViewOf($1N)", field, Producers.class); in assignField()
DOptionalFactories.java66 import dagger.producers.internal.Producers;
404 "$T.createFutureProduced($N.get())", Producers.class, delegateField)))
/external/google-java-format/core/src/test/resources/com/google/googlejavaformat/java/testdata/
DB20535125.input6 && Producers.isListenableFutureMapKey(outputKey)) {
12 && Producers.isListenableFutureListKey(outputKey)) {
DB20535125.output5 if (!metadata.ignoreOutputTransformations() && Producers.isListenableFutureMapKey(outputKey)) {
11 && Producers.isListenableFutureListKey(outputKey)) {
/external/dagger2/java/dagger/internal/codegen/binding/
DFrameworkType.java39 import dagger.producers.internal.Producers;
74 return CodeBlock.of("$T.producerFromProvider($L)", Producers.class, from); in to()
/external/dagger2/java/dagger/internal/codegen/javapoet/
DTypeNames.java44 import dagger.producers.internal.Producers;
80 public static final ClassName PRODUCERS = ClassName.get(Producers.class);
/external/perfetto/docs/design-docs/
Dsecurity-model.md10 ## Producers section in Security model for system-wide tracing on Android/Linux
12 Producers are never trusted. We assume they will try their best to DoS / crash /
/external/dagger2/javatests/dagger/functional/producers/
DBUILD16 # Functional tests for Dagger Producers
/external/dagger2/java/dagger/internal/codegen/componentgenerator/
DComponentImplementationBuilder.java74 import dagger.producers.internal.Producers;
255 Producers.class, in cancellationStatements()

12