OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:Produced
(Results
1 - 15
of
15
) sorted by null
/external/dagger2/producers/src/test/java/dagger/producers/
ProducedTest.java
29
* Tests {@link
Produced
}.
35
assertThat(
Produced
.successful(5).get()).isEqualTo(5);
36
assertThat(
Produced
.successful("monkey").get()).isEqualTo("monkey");
37
assertThat(
Produced
.successful(o).get()).isSameAs(o);
43
Produced
.failed(cause).get();
54
.addEqualityGroup(
Produced
.successful(132435),
Produced
.successful(132435))
55
.addEqualityGroup(
Produced
.successful("hi"),
Produced
.successful("hi"))
56
.addEqualityGroup(
Produced
.failed(e1), Produced.failed(e1)
[
all
...]
/external/dagger2/compiler/src/it/producers-functional-tests/src/main/java/producerstest/
MultibindingComponent.java
19
import dagger.producers.
Produced
;
29
ListenableFuture<Set<
Produced
<String>>> successfulSet();
32
ListenableFuture<Set<
Produced
<String>>> possiblyThrowingSet();
SimpleProducerModule.java
22
import dagger.producers.
Produced
;
108
static String strWithArgs(int i,
Produced
<Double> b, Producer<Object> c, Provider<Boolean> d) {
115
int i,
Produced
<Double> b, Producer<Object> c, Provider<Boolean> d) throws IOException {
122
int i,
Produced
<Double> b, Producer<Object> c, Provider<Boolean> d) {
129
int i,
Produced
<Double> b, Producer<Object> c, Provider<Boolean> d) throws IOException {
/external/dagger2/producers/src/main/java/dagger/producers/internal/
SetOfProducedProducer.java
22
import dagger.producers.
Produced
;
32
* future {@code Set<
Produced
<T>>} whose elements are populated by subsequent calls to the delegate
38
public final class SetOfProducedProducer<T> extends AbstractProducer<Set<
Produced
<T>>> {
44
public static <T> Producer<Set<
Produced
<T>>> create(Producer<Set<T>>... producers) {
55
* Returns a future {@link Set} of {@link
Produced
} values whose iteration order is that of the
59
* {@code
Produced
} element will fail with a NullPointerException.
63
* {@link
Produced
}.
68
public ListenableFuture<Set<
Produced
<T>>> compute(ProducerMonitor unusedMonitor) {
69
List<ListenableFuture<
Produced
<Set<T>>>> futureProducedSets =
70
new ArrayList<ListenableFuture<
Produced
<Set<T>>>>(contributingProducers.size())
[
all
...]
Producers.java
23
import dagger.producers.
Produced
;
39
* Returns a future of {@link
Produced
} that represents the completion (either success or failure)
41
* a successful {@code
Produced
}; if the input future fails, then the resulting future succeeds
42
* with a failing {@code
Produced
}.
46
* {@code
Produced
}.
50
public static <T> ListenableFuture<
Produced
<T>> createFutureProduced(ListenableFuture<T> future) {
55
new Function<T,
Produced
<T>>() {
57
public
Produced
<T> apply(final T value) {
58
return
Produced
.successful(value);
65
private static final FutureFallback<
Produced
<Object>> FUTURE_FALLBACK_FOR_PRODUCED
[
all
...]
/external/dagger2/compiler/src/it/producers-functional-tests/src/test/java/producerstest/
MultibindingTest.java
20
import dagger.producers.
Produced
;
47
Produced
.successful("foo"),
48
Produced
.successful("foo1"),
49
Produced
.successful("foo2"),
50
Produced
.successful("bar"),
51
Produced
.successful("bar1"),
52
Produced
.successful("bar2"));
59
Set<
Produced
<String>> possiblyThrowingSet = multibindingComponent.possiblyThrowingSet().get();
62
for (
Produced
<String> str : possiblyThrowingSet) {
/external/dagger2/producers/src/main/java/dagger/producers/
Produced.java
28
* injected, you can also inject {@code
Produced
<T>}, which enables handling of any exceptions that
33
* UserInfo criticalInfo, {@literal
Produced
<ExtraInfo>} noncriticalInfo) {
46
public abstract class
Produced
<T> {
55
* Two {@code
Produced
} objects compare equal if both are successful with equal values, or both
65
/** Returns a successful {@code
Produced
}, whose {@link #get} will return the given value. */
66
public static <T>
Produced
<T> successful(@Nullable T value) {
71
* Returns a failed {@code
Produced
}, whose {@link #get} will throw an
74
public static <T>
Produced
<T> failed(Throwable throwable) {
78
private static final class Successful<T> extends
Produced
<T> {
105
private static final class Failed<T> extends
Produced
<T>
[
all
...]
/external/dagger2/producers/src/test/java/dagger/producers/internal/
SetOfProducedProducerTest.java
21
import dagger.producers.
Produced
;
40
Producer<Set<
Produced
<Integer>>> producer =
46
Produced
.successful(1),
47
Produced
.successful(2),
48
Produced
.successful(5),
49
Produced
.successful(7));
55
Producer<Set<
Produced
<Integer>>> producer =
61
Produced
.successful(1),
Produced
.successful(2),
Produced
.<Integer>failed(e))
[
all
...]
ProducersTest.java
21
import dagger.producers.
Produced
;
41
ListenableFuture<
Produced
<String>> producedFuture = Producers.createFutureProduced(future);
48
ListenableFuture<
Produced
<String>> producedFuture = Producers.createFutureProduced(future);
55
ListenableFuture<
Produced
<String>> producedFuture = Producers.createFutureProduced(future);
63
ListenableFuture<
Produced
<String>> producedFuture = Producers.createFutureProduced(future);
71
private <T> ExecutionException getProducedException(
Produced
<T>
produced
) {
73
produced
.get();
74
throw new IllegalArgumentException("
produced
did not throw");
/external/dagger2/compiler/src/test/java/dagger/internal/codegen/
DependencyRequestMapperTest.java
24
import dagger.producers.
Produced
;
141
@Produces String produceString(Producer<Integer> a,
Produced
<Integer> b) {
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/
Util.java
24
import dagger.producers.
Produced
;
92
/** Returns true if {@code type} is a {@code Set<
Produced
<T>>}. */
96
&& MoreTypes.isTypeOf(
Produced
.class, MoreTypes.asDeclared(type).getTypeArguments().get(0));
DependencyRequest.java
30
import dagger.producers.
Produced
;
82
/** A request for a {@link
Produced
}. E.g.: {@code
Produced
<Blah>} */
83
PRODUCED
,
100
case
PRODUCED
:
313
// TODO(sameb): should
Produced
/Producer always require non-nullable?
360
} else if (isTypeOf(
Produced
.class, type)) {
361
return new AutoValue_DependencyRequest_Factory_KindAndType(Kind.
PRODUCED
,
Key.java
28
import dagger.producers.
Produced
;
368
* {@code Set<
Produced
<T>>}.
374
if (MoreTypes.isTypeOf(
Produced
.class, argType)) {
ProducerFactoryGenerator.java
42
import dagger.producers.
Produced
;
182
dependency.kind().equals(DependencyRequest.Kind.
PRODUCED
)
401
case
PRODUCED
:
413
case
PRODUCED
:
414
return ParameterizedTypeName.create(ClassName.fromClass(
Produced
.class), keyName);
/device/linaro/bootloader/edk2/OvmfPkg/Library/QemuBootOrderLib/
QemuBootOrderLib.c
247
UINTN
Produced
;
286
if (BootOrder->
Produced
== BootOrder->Allocated) {
304
BootOrder->Data[BootOrder->
Produced
++] =
[
all
...]
Completed in 7202 milliseconds