Home
last modified time | relevance | path

Searched refs:isCancelled (Results 1 – 18 of 18) sorted by relevance

/libcore/luni/src/main/java/java/util/concurrent/
DFuture.java98 boolean isCancelled(); in isCancelled() method
DSynchronousQueue.java248 boolean isCancelled() { in isCancelled() method in SynchronousQueue.TransferStack.SNode
326 if (h != null && h.isCancelled()) in transfer()
341 if (h.isCancelled()) // already cancelled in transfer()
461 if (past != null && past.isCancelled()) in clean()
466 while ((p = head) != null && p != past && p.isCancelled()) in clean()
472 if (n != null && n.isCancelled()) in clean()
534 boolean isCancelled() { in isCancelled() method in SynchronousQueue.TransferQueue.QNode
753 if (hn != null && hn.isCancelled()) { in clean()
778 !d.isCancelled() || // d not cancelled or in clean()
DFutureTask.java127 public boolean isCancelled() { in isCancelled() method in FutureTask
DThreadPoolExecutor.java1737 if (r instanceof Future<?> && ((Future<?>)r).isCancelled()) in purge()
1745 if (r instanceof Future<?> && ((Future<?>)r).isCancelled()) in purge()
DScheduledThreadPoolExecutor.java349 t.isCancelled()) { // also remove if already cancelled in onShutdown()
DForkJoinTask.java854 public final boolean isCancelled() { in isCancelled() method in ForkJoinTask
/libcore/jsr166-tests/src/test/java/jsr166/
DFutureTaskTest.java66 assertFalse(f.isCancelled()); in checkNotDone()
94 assertFalse(f.isCancelled()); in checkCompletedNormally()
106 assertTrue(f.isCancelled()); in checkCancelled()
131 assertFalse(f.isCancelled()); in checkCompletedAbnormally()
340 assertTrue(task.isCancelled()); in testCancelBeforeRun()
357 assertTrue(task.isCancelled()); in testCancelBeforeRun2()
412 assertTrue(task.isCancelled()); in testCancelInterrupt()
454 assertTrue(task.isCancelled()); in testCancelInterrupt_ThrowsSecurityException()
488 assertTrue(task.isCancelled()); in testCancelInterrupt_taskFails()
515 assertTrue(task.isCancelled()); in testCancelNoInterrupt()
DScheduledExecutorSubclassTest.java33 public boolean isCancelled() { return task.isCancelled(); } in isCancelled() method in ScheduledExecutorSubclassTest.CustomTask
696 assertFalse(task.isCancelled()); in testShutdown1()
704 assertFalse(task.isCancelled()); in testShutdown1()
730 assertTrue(task.isCancelled()); in testShutdown2()
753 assertTrue(task.isCancelled()); in testShutdown3()
775 assertFalse(task.isCancelled()); in testShutdown4()
777 assertFalse(task.isCancelled()); in testShutdown4()
781 assertFalse(task.isCancelled()); in testShutdown4()
784 assertTrue(task.isCancelled()); in testShutdown4()
1206 assertFalse(futures.get(0).isCancelled()); in testTimedInvokeAll6()
[all …]
DScheduledExecutorTest.java647 assertFalse(task.isCancelled()); in testShutdown1()
655 assertFalse(task.isCancelled()); in testShutdown1()
681 assertTrue(task.isCancelled()); in testShutdown2()
704 assertTrue(task.isCancelled()); in testShutdown3()
726 assertFalse(task.isCancelled()); in testShutdown4()
728 assertFalse(task.isCancelled()); in testShutdown4()
732 assertFalse(task.isCancelled()); in testShutdown4()
735 assertTrue(task.isCancelled()); in testShutdown4()
1157 assertFalse(futures.get(0).isCancelled()); in testTimedInvokeAll6()
1158 assertTrue(futures.get(1).isCancelled()); in testTimedInvokeAll6()
DAbstractExecutorServiceTest.java54 assertFalse(future.isCancelled()); in testExecuteRunnable()
596 assertFalse(futures.get(0).isCancelled()); in testTimedInvokeAll6()
597 assertFalse(futures.get(1).isCancelled()); in testTimedInvokeAll6()
598 assertTrue(futures.get(2).isCancelled()); in testTimedInvokeAll6()
DExecutorsTest.java189 assertFalse(f.isCancelled()); in testNewSingleThreadScheduledExecutor()
215 assertFalse(f.isCancelled()); in testNewScheduledThreadPool()
243 assertFalse(f.isCancelled()); in testUnconfigurableScheduledExecutorService()
DForkJoinTaskTest.java48 assertFalse(a.isCancelled()); in testInvokeOnPool()
57 assertFalse(a.isCancelled()); in testInvokeOnPool()
69 assertFalse(a.isCancelled()); in checkNotDone()
86 assertFalse(a.isCancelled()); in checkCompletedNormally()
120 assertTrue(a.isCancelled());
157 assertFalse(a.isCancelled());
DForkJoinPoolTest.java426 assertFalse(future.isCancelled()); in testExecuteRunnable()
441 assertFalse(future.isCancelled()); in testSubmitCallable()
456 assertFalse(future.isCancelled()); in testSubmitRunnable()
471 assertFalse(future.isCancelled()); in testSubmitRunnable2()
DRecursiveTaskTest.java54 assertFalse(a.isCancelled()); in checkNotDone()
83 assertFalse(a.isCancelled()); in checkCompletedNormally()
121 assertTrue(a.isCancelled()); in checkCancelled()
148 assertFalse(a.isCancelled()); in checkCompletedAbnormally()
DCountedCompleterTest.java51 assertFalse(a.isCancelled()); in testInvokeOnPool()
60 assertFalse(a.isCancelled()); in testInvokeOnPool()
72 assertFalse(a.isCancelled()); in checkNotDone()
85 assertFalse(a.isCancelled()); in checkCompletedNormally()
119 assertTrue(a.isCancelled());
156 assertFalse(a.isCancelled());
DRecursiveActionTest.java56 assertFalse(a.isCancelled()); in checkNotDone()
85 assertFalse(a.isCancelled()); in checkCompletedNormally()
103 assertTrue(a.isCancelled()); in checkCancelled()
130 assertFalse(a.isCancelled()); in checkCompletedAbnormally()
DThreadPoolExecutorSubclassTest.java41 public boolean isCancelled() { in isCancelled() method in ThreadPoolExecutorSubclassTest.CustomTask
1675 assertFalse(futures.get(0).isCancelled()); in testTimedInvokeAll6()
1676 assertTrue(futures.get(1).isCancelled()); in testTimedInvokeAll6()
DThreadPoolExecutorTest.java1882 assertFalse(futures.get(0).isCancelled()); in testTimedInvokeAll6()
1883 assertTrue(futures.get(1).isCancelled()); in testTimedInvokeAll6()