Home
last modified time | relevance | path

Searched defs:task (Results 1 – 21 of 21) sorted by relevance

/libcore/jsr166-tests/src/test/java/jsr166/
DFutureTaskTest.java241 PublicFutureTask task = new PublicFutureTask(new NoOpCallable()); in testIsDone() local
253 PublicFutureTask task = new PublicFutureTask(new NoOpCallable()); in testRunAndReset() local
269 PublicFutureTask task = new PublicFutureTask(new NoOpCallable()); in testRunAndResetAfterCancel() local
287 PublicFutureTask task = new PublicFutureTask(new NoOpCallable()); in testSet() local
304 PublicFutureTask task = new PublicFutureTask(new NoOpCallable()); in testSetException_get() local
334 PublicFutureTask task = new PublicFutureTask(new NoOpCallable()); in testCancelBeforeRun() local
351 PublicFutureTask task = new PublicFutureTask(new NoOpCallable()); in testCancelBeforeRun2() local
368 PublicFutureTask task = new PublicFutureTask(new NoOpCallable()); in testCancelAfterRun() local
383 PublicFutureTask task = new PublicFutureTask(new NoOpCallable()); in testCancelAfterRun2() local
399 final PublicFutureTask task = in testCancelInterrupt() local
[all …]
DScheduledExecutorSubclassTest.java18 RunnableScheduledFuture<V> task; field in ScheduledExecutorSubclassTest.CustomTask
49 …rotected <V> RunnableScheduledFuture<V> decorateTask(Runnable r, RunnableScheduledFuture<V> task) { in decorateTask()
53 …ected <V> RunnableScheduledFuture<V> decorateTask(Callable<V> c, RunnableScheduledFuture<V> task) { in decorateTask()
77 final Runnable task = new CheckedRunnable() { in testExecute() local
97 Callable task = new CheckedCallable<Boolean>() { in testSchedule1() local
120 Runnable task = new CheckedRunnable() { in testSchedule3() local
142 Runnable task = new CheckedRunnable() { in testSchedule4() local
166 Runnable task = new CheckedRunnable() { in testSchedule5() local
746 ScheduledFuture task = in testShutdown3() local
772 ScheduledFuture task = in testShutdown4() local
DScheduledExecutorTest.java25 final Runnable task = new CheckedRunnable() { in testExecute() local
45 Callable task = new CheckedCallable<Boolean>() { in testSchedule1() local
68 Runnable task = new CheckedRunnable() { in testSchedule3() local
90 Runnable task = new CheckedRunnable() { in testSchedule4() local
114 Runnable task = new CheckedRunnable() { in testSchedule5() local
697 ScheduledFuture task = in testShutdown3() local
723 ScheduledFuture task = in testShutdown4() local
DExecutorsTest.java177 final Runnable task = new CheckedRunnable() { in testNewSingleThreadScheduledExecutor() local
203 final Runnable task = new CheckedRunnable() { in testNewScheduledThreadPool() local
231 final Runnable task = new CheckedRunnable() { in testUnconfigurableScheduledExecutorService() local
DThreadPoolExecutorTest.java65 final Runnable task = new CheckedRunnable() { in testExecute() local
501 Callable task = new CheckedCallable<Boolean>() { in testGetQueue() local
573 Callable task = new CheckedCallable<Boolean>() { in testPurge() local
1033 Runnable task = new CheckedRunnable() { in testSaturatedExecute() local
1062 Runnable task = new CheckedRunnable() { in testSaturatedSubmitRunnable() local
1091 Runnable task = new CheckedRunnable() { in testSaturatedSubmitCallable() local
1374 final CheckedRunnable task = new CheckedRunnable() { in testBeforeAfter() local
DThreadPoolExecutorSubclassTest.java205 final Runnable task = new CheckedRunnable() { in testExecute() local
574 Callable task = new CheckedCallable<Boolean>() { in testGetQueue() local
646 Callable task = new CheckedCallable<Boolean>() { in testPurge() local
992 Runnable task = new CheckedRunnable() { in testSaturatedExecute() local
1247 final CheckedRunnable task = new CheckedRunnable() { in testBeforeAfter() local
DAbstractExecutorServiceTest.java45 CheckedRunnable task = new CheckedRunnable() { in testExecuteRunnable() local
DForkJoinPoolTest.java417 CheckedRunnable task = new CheckedRunnable() { in testExecuteRunnable() local
/libcore/luni/src/main/java/java/util/concurrent/
DExecutorCompletionService.java87 QueueingFuture(RunnableFuture<V> task) { in QueueingFuture()
92 private final Future<V> task; field in ExecutorCompletionService.QueueingFuture
95 private RunnableFuture<V> newTaskFor(Callable<V> task) { in newTaskFor()
102 private RunnableFuture<V> newTaskFor(Runnable task, V result) { in newTaskFor()
149 public Future<V> submit(Callable<V> task) { in submit()
156 public Future<V> submit(Runnable task, V result) { in submit()
DCompletionService.java44 Future<V> submit(Callable<V> task); in submit()
60 Future<V> submit(Runnable task, V result); in submit()
DExecutorService.java195 <T> Future<T> submit(Callable<T> task); in submit()
209 <T> Future<T> submit(Runnable task, T result); in submit()
222 Future<?> submit(Runnable task); in submit()
DAbstractExecutorService.java78 public Future<?> submit(Runnable task) { in submit()
89 public <T> Future<T> submit(Runnable task, T result) { in submit()
100 public <T> Future<T> submit(Callable<T> task) { in submit()
DExecutors.java343 public static <T> Callable<T> callable(Runnable task, T result) { in callable()
356 public static Callable<Object> callable(Runnable task) { in callable()
DScheduledThreadPoolExecutor.java296 private void delayedExecute(RunnableScheduledFuture<?> task) { in delayedExecute()
316 void reExecutePeriodic(RunnableScheduledFuture<?> task) { in reExecutePeriodic()
371 Runnable runnable, RunnableScheduledFuture<V> task) { in decorateTask()
387 Callable<V> callable, RunnableScheduledFuture<V> task) { in decorateTask()
601 public Future<?> submit(Runnable task) { in submit()
609 public <T> Future<T> submit(Runnable task, T result) { in submit()
617 public <T> Future<T> submit(Callable<T> task) { in submit()
DForkJoinPool.java690 final void push(ForkJoinTask<?> task) { in push()
850 final void runTask(ForkJoinTask<?> task) { in runTask()
882 final boolean tryRemoveAndExec(ForkJoinTask<?> task) { in tryRemoveAndExec()
1469 final void externalPush(ForkJoinTask<?> task) { in externalPush()
1509 private void fullExternalPush(ForkJoinTask<?> task) { in fullExternalPush()
1806 private int tryHelpStealer(WorkQueue joiner, ForkJoinTask<?> task) { in tryHelpStealer()
1891 private int helpComplete(WorkQueue joiner, CountedCompleter<?> task) { in helpComplete()
1981 final int awaitJoin(WorkQueue joiner, ForkJoinTask<?> task) { in awaitJoin()
2030 final void helpJoinOnce(WorkQueue joiner, ForkJoinTask<?> task) { in helpJoinOnce()
2302 final boolean tryExternalUnpush(ForkJoinTask<?> task) { in tryExternalUnpush()
[all …]
DThreadPoolExecutor.java1092 Runnable task = w.firstTask; in runWorker() local
1715 public boolean remove(Runnable task) { in remove()
DForkJoinTask.java410 ExceptionNode(ForkJoinTask<?> task, Throwable ex, ExceptionNode next) { in ExceptionNode()
/libcore/luni/src/main/java/java/util/
DTimer.java73 public void insert(TimerTask task) { in insert()
155 private int getTask(TimerTask task) { in getTask()
202 TimerTask task; in run() local
431 public void schedule(TimerTask task, Date when) { in schedule()
452 public void schedule(TimerTask task, long delay) { in schedule()
474 public void schedule(TimerTask task, long delay, long period) { in schedule()
497 public void schedule(TimerTask task, Date when, long period) { in schedule()
521 public void scheduleAtFixedRate(TimerTask task, long delay, long period) { in scheduleAtFixedRate()
544 public void scheduleAtFixedRate(TimerTask task, Date when, long period) { in scheduleAtFixedRate()
555 private void scheduleImpl(TimerTask task, long delay, long period, boolean fixed) { in scheduleImpl()
/libcore/luni/src/test/java/tests/support/
DThreadPool.java44 public synchronized void runTask(Runnable task) { in runTask()
99 Runnable task = null; in run() local
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DTimerTest.java98 private void awaitRun(TimerTestTask task) throws Exception { in awaitRun()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DSSLEngineTest.java1106 Runnable task; in run() local