/libcore/luni/src/main/java/java/util/concurrent/ |
D | Future.java | 98 boolean isCancelled(); in isCancelled() method
|
D | SynchronousQueue.java | 248 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()
|
D | FutureTask.java | 127 public boolean isCancelled() { in isCancelled() method in FutureTask
|
D | ThreadPoolExecutor.java | 1737 if (r instanceof Future<?> && ((Future<?>)r).isCancelled()) in purge() 1745 if (r instanceof Future<?> && ((Future<?>)r).isCancelled()) in purge()
|
D | ScheduledThreadPoolExecutor.java | 349 t.isCancelled()) { // also remove if already cancelled in onShutdown()
|
D | ForkJoinTask.java | 854 public final boolean isCancelled() { in isCancelled() method in ForkJoinTask
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | FutureTaskTest.java | 66 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()
|
D | ScheduledExecutorSubclassTest.java | 33 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 …]
|
D | ScheduledExecutorTest.java | 647 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()
|
D | AbstractExecutorServiceTest.java | 54 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()
|
D | ExecutorsTest.java | 189 assertFalse(f.isCancelled()); in testNewSingleThreadScheduledExecutor() 215 assertFalse(f.isCancelled()); in testNewScheduledThreadPool() 243 assertFalse(f.isCancelled()); in testUnconfigurableScheduledExecutorService()
|
D | ForkJoinTaskTest.java | 48 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());
|
D | ForkJoinPoolTest.java | 426 assertFalse(future.isCancelled()); in testExecuteRunnable() 441 assertFalse(future.isCancelled()); in testSubmitCallable() 456 assertFalse(future.isCancelled()); in testSubmitRunnable() 471 assertFalse(future.isCancelled()); in testSubmitRunnable2()
|
D | RecursiveTaskTest.java | 54 assertFalse(a.isCancelled()); in checkNotDone() 83 assertFalse(a.isCancelled()); in checkCompletedNormally() 121 assertTrue(a.isCancelled()); in checkCancelled() 148 assertFalse(a.isCancelled()); in checkCompletedAbnormally()
|
D | CountedCompleterTest.java | 51 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());
|
D | RecursiveActionTest.java | 56 assertFalse(a.isCancelled()); in checkNotDone() 85 assertFalse(a.isCancelled()); in checkCompletedNormally() 103 assertTrue(a.isCancelled()); in checkCancelled() 130 assertFalse(a.isCancelled()); in checkCompletedAbnormally()
|
D | ThreadPoolExecutorSubclassTest.java | 41 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()
|
D | ThreadPoolExecutorTest.java | 1882 assertFalse(futures.get(0).isCancelled()); in testTimedInvokeAll6() 1883 assertTrue(futures.get(1).isCancelled()); in testTimedInvokeAll6()
|