Home
last modified time | relevance | path

Searched refs:Callables (Results 1 – 8 of 8) sorted by relevance

/external/guava/guava-tests/test/com/google/common/util/concurrent/
DCallablesTest.java35 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()
DWrappingExecutorServiceTest.java88 Callable<String> task = Callables.returning(RESULT_VALUE); in testSubmit()
145 callables.add(Callables.returning(RESULT_VALUE + i)); in createTasks()
DMoreExecutorsTest.java274 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/
DFuturesCombineBenchmark.java86 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/
DCallables.java33 public final class Callables { class
34 private Callables() {} in Callables() method in Callables
DMoreExecutors.java849 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/
DCacheExpirationTest.java27 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()
DCacheLoadingTest.java38 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()