Home
last modified time | relevance | path

Searched refs:setFuture (Results 1 – 6 of 6) sorted by relevance

/external/guava/guava-tests/test/com/google/common/util/concurrent/
DAsyncSettableFutureTest.java51 assertFalse(future.setFuture(SettableFuture.<Integer>create())); in testSetValue()
66 assertFalse(future.setFuture(SettableFuture.create())); in testSetException()
81 assertTrue(future.setFuture(nested)); in testSetFuture()
86 assertFalse(future.setFuture(SettableFuture.<String>create())); in testSetFuture()
103 assertTrue(future.setFuture(nested)); in testSetFuture_genericsHierarchy()
108 assertFalse(future.setFuture(SettableFuture.<Foo>create())); in testSetFuture_genericsHierarchy()
126 async.setFuture(inner); in testCancel_innerCancelsAsync()
138 async.setFuture(inner); in testCancel_resultCancelsInner_interrupted()
151 async.setFuture(inner); in testCancel_resultCancelsInner()
172 assertFalse(async.setFuture(inner)); in testCancel_multipleBeforeSetFuture_noInterruptFirst()
[all …]
/external/guava/guava/src/com/google/common/util/concurrent/
DAsyncSettableFuture.java57 public boolean setFuture(ListenableFuture<? extends V> future) { in setFuture() method in AsyncSettableFuture
58 return nested.setFuture(checkNotNull(future)); in setFuture()
67 return setFuture(Futures.immediateFuture(value)); in setValue()
76 return setFuture(Futures.<V>immediateFailedFuture(exception)); in setException()
92 boolean setFuture(ListenableFuture<? extends V> value) { in setFuture() method in AsyncSettableFuture.NestedFuture
DFutures.java1199 delegates.remove().setFuture(future);
/external/dagger2/producers/src/test/java/dagger/producers/internal/
DProducersTest.java82 ListenableFuture<Set<String>> setFuture = Producers.createFutureSingletonSet(future); in createFutureSingletonSet_success() local
83 assertThat(setFuture.isDone()).isTrue(); in createFutureSingletonSet_success()
84 assertThat(setFuture.get()).containsExactly("monkey"); in createFutureSingletonSet_success()
89 ListenableFuture<Set<String>> setFuture = Producers.createFutureSingletonSet(future); in createFutureSingletonSet_failure() local
90 assertThat(setFuture.isDone()).isTrue(); in createFutureSingletonSet_failure()
92 setFuture.get(); in createFutureSingletonSet_failure()
/external/icu/android_icu4j/src/main/java/android/icu/impl/duration/
DPeriod.java131 return setFuture(true); in inFuture()
140 return setFuture(false); in inPast()
151 return setFuture(future); in inFuture()
162 return setFuture(!past); in inPast()
349 private Period setFuture(boolean future) { in setFuture() method in Period
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/
DPeriod.java129 return setFuture(true); in inFuture()
138 return setFuture(false); in inPast()
149 return setFuture(future); in inFuture()
160 return setFuture(!past); in inPast()
347 private Period setFuture(boolean future) { in setFuture() method in Period