Home
last modified time | relevance | path

Searched defs:callable (Results 1 – 18 of 18) sorted by relevance

/libcore/ojluni/src/main/java/java/util/concurrent/
DExecutors.java381 public static <T> Callable<T> callable(Runnable task, T result) { in callable() method in Executors
394 public static Callable<Object> callable(Runnable task) { in callable() method in Executors
407 public static Callable<Object> callable(final PrivilegedAction<?> action) { in callable() method in Executors
DScheduledExecutorService.java126 public <V> ScheduledFuture<V> schedule(Callable<V> callable, in schedule()
DFutureTask.java103 private Callable<V> callable; field in FutureTask
133 public FutureTask(Callable<V> callable) { in FutureTask()
DAbstractExecutorService.java107 protected <T> RunnableFuture<T> newTaskFor(Callable<T> callable) { in newTaskFor()
DScheduledThreadPoolExecutor.java232 ScheduledFutureTask(Callable<V> callable, long triggerTime, in ScheduledFutureTask()
425 Callable<V> callable, RunnableScheduledFuture<V> task) { in decorateTask()
570 public <V> ScheduledFuture<V> schedule(Callable<V> callable, in schedule()
DForkJoinTask.java1423 final Callable<? extends T> callable; field in ForkJoinTask.AdaptedCallable
1425 AdaptedCallable(Callable<? extends T> callable) { in AdaptedCallable()
1481 public static <T> ForkJoinTask<T> adapt(Callable<? extends T> callable) { in adapt()
DForkJoinPool.java3458 protected <T> RunnableFuture<T> newTaskFor(Callable<T> callable) { in newTaskFor()
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/
DExecutors.java120 public static <T> java.util.concurrent.Callable<T> callable(java.lang.Runnable task, T result) { in callable() method in Executors
124 public static java.util.concurrent.Callable<java.lang.Object> callable( in callable() method in Executors
129 public static java.util.concurrent.Callable<java.lang.Object> callable( in callable() method in Executors
134 public static java.util.concurrent.Callable<java.lang.Object> callable( in callable() method in Executors
140 java.util.concurrent.Callable<T> callable) { in privilegedCallable()
145 java.util.concurrent.Callable<T> callable) { in privilegedCallableUsingCurrentClassLoader()
282 java.util.concurrent.Callable<V> callable, in schedule()
DFutureTask.java43 public FutureTask(java.util.concurrent.Callable<V> callable) { in FutureTask()
153 private java.util.concurrent.Callable<V> callable; field in FutureTask
/libcore/luni/src/test/java/libcore/sun/misc/
DUnsafeTest.java42 Callable<Object> callable = Executors.callable(new Runnable() { in test_getUnsafeForbiddenWithSystemCaller() local
/libcore/luni/src/test/java/libcore/java/lang/
DLambdaImplementationTest.java152 Callable<String> callable = (Callable<String> & Serializable) () -> "No State"; in testSerializableLambda_withoutState() local
175 Callable<String> callable = (Callable<String> & Serializable) () -> "State:" + state; in testSerializableLambda_withState() local
209 Callable<String> callable = in testMultipleInterfaceLambda() local
/libcore/jsr166-tests/src/test/java/jsr166/
DFutureTaskTest.java196 PublicFutureTask(Callable callable) { in PublicFutureTask()
199 private PublicFutureTask(final Callable callable, in PublicFutureTask()
633 final Callable<Object> callable = in testTimedGet_Cancellation() local
DForkJoinPoolTest.java485 final Callable callable = Executors.callable(new PrivilegedAction() { in testSubmitPrivilegedAction() local
503 final Callable callable = in testSubmitPrivilegedExceptionAction() local
522 final Callable callable = in testSubmitFailedPrivilegedExceptionAction() local
DScheduledExecutorTest.java248 TrackedCallable callable = null; in testScheduleNull() local
DScheduledExecutorSubclassTest.java304 TrackedCallable callable = null; in testScheduleNull() local
DThreadPoolExecutorSubclassTest.java54 final Callable<V> callable; field in ThreadPoolExecutorSubclassTest.CustomTask
/libcore/luni/src/test/java/libcore/libcore/net/
DNetworkSecurityPolicyTest.java258 Callable<byte[]> callable = () -> { in CapturingServerSocket() local
/libcore/luni/src/test/java/libcore/java/net/
DURLTest.java189 private static void withCustomURLStreamHandlerFactory(Callable<Void> callable) in withCustomURLStreamHandlerFactory()