Searched refs:Callables (Results 1 – 8 of 8) sorted by relevance
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
D | CallablesTest.java | 35 assertNull(Callables.returning(null).call()); in testReturning() 38 Callable<Object> callable = Callables.returning(value); in testReturning() 53 Callables.threadRenaming(callable, newName).call(); in testRenaming() 68 Callables.threadRenaming(callable, newName).call(); in testRenaming_exceptionalReturn() 92 Callables.threadRenaming(callable, newName).call(); in testRenaming_noPermissions()
|
D | WrappingExecutorServiceTest.java | 88 Callable<String> task = Callables.returning(RESULT_VALUE); in testSubmit() 145 callables.add(Callables.returning(RESULT_VALUE + i)); in createTasks()
|
D | MoreExecutorsTest.java | 274 ImmutableList.of(Callables.returning("x")); in testListeningDecorator() 310 service.schedule(Callables.returning(null), 1, TimeUnit.MILLISECONDS); in testListeningDecorator_scheduleSuccess()
|
/external/guava/guava-tests/benchmark/com/google/common/util/concurrent/ |
D | FuturesCombineBenchmark.java | 86 Callable<Integer> callable = Callables.returning(12); 101 Callable<Integer> callable = Callables.returning(12); 111 Callable<Integer> callable = Callables.returning(12); 126 Callable<Integer> callable = Callables.returning(12);
|
/external/guava/guava/src/com/google/common/util/concurrent/ |
D | Callables.java | 33 public final class Callables { class 34 private Callables() {} in Callables() method in Callables
|
D | MoreExecutors.java | 849 executor.execute(Callables.threadRenaming(command, nameSupplier)); in renamingDecorator() 876 return Callables.threadRenaming(callable, nameSupplier); 879 return Callables.threadRenaming(command, nameSupplier); 906 return Callables.threadRenaming(callable, nameSupplier); 909 return Callables.threadRenaming(command, nameSupplier);
|
/external/guava/guava-tests/test/com/google/common/cache/ |
D | CacheExpirationTest.java | 27 import com.google.common.util.concurrent.Callables; 328 cache.get(2, Callables.returning(-2)); in testExpirationOrder_write() 391 cache.get(8, Callables.returning(-8)); in testExpirationOrder_writeAccess()
|
D | CacheLoadingTest.java | 38 import com.google.common.util.concurrent.Callables; 154 assertSame(value, cache.get(key, Callables.returning(value))); in testLoad() 633 cache.get(new Object(), Callables.returning(null)); in testLoadNull()
|