Home
last modified time | relevance | path

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

12

/libcore/ojluni/src/main/java/java/util/concurrent/
DSynchronousQueue.java281 boolean isCancelled() { in isCancelled() method in SynchronousQueue.TransferStack.SNode
357 if (h != null && h.isCancelled()) in transfer()
372 if (h.isCancelled()) // already cancelled in transfer()
493 if (past != null && past.isCancelled()) in clean()
498 while ((p = head) != null && p != past && p.isCancelled()) in clean()
504 if (n != null && n.isCancelled()) in clean()
564 boolean isCancelled() { in isCancelled() method in SynchronousQueue.TransferQueue.QNode
782 if (hn != null && hn.isCancelled()) { in clean()
807 !d.isCancelled() || // d not cancelled or in clean()
DFuture.java128 boolean isCancelled(); in isCancelled() method
/libcore/jsr166-tests/src/test/java/jsr166/
DFutureTaskTest.java84 assertFalse(f.isCancelled()); in checkNotDone()
112 assertFalse(f.isCancelled()); in checkCompletedNormally()
124 assertTrue(f.isCancelled()); in checkCancelled()
149 assertFalse(f.isCancelled()); in checkCompletedAbnormally()
358 assertTrue(task.isCancelled()); in testCancelBeforeRun()
375 assertTrue(task.isCancelled()); in testCancelBeforeRun2()
430 assertTrue(task.isCancelled()); in testCancelInterrupt()
472 assertTrue(task.isCancelled()); in testCancelInterrupt_ThrowsSecurityException()
506 assertTrue(task.isCancelled()); in testCancelInterrupt_taskFails()
533 assertTrue(task.isCancelled()); in testCancelNoInterrupt()
DExecutorsTest.java218 assertFalse(f.isCancelled()); in testNewSingleThreadScheduledExecutor()
242 assertFalse(f.isCancelled()); in testNewScheduledThreadPool()
268 assertFalse(f.isCancelled()); in testUnconfigurableScheduledExecutorService()
DForkJoinTask8Test.java85 assertFalse(a.isCancelled()); in testInvokeOnPool()
94 assertFalse(a.isCancelled()); in testInvokeOnPool()
104 assertFalse(a.isCancelled()); in checkNotDone()
123 assertFalse(a.isCancelled()); in checkCompletedNormally()
159 assertFalse(a.isCancelled());
1161 assertFalse(f.isCancelled());
DScheduledExecutorSubclassTest.java68 public boolean isCancelled() { return task.isCancelled(); } in isCancelled() method in ScheduledExecutorSubclassTest.CustomTask
781 assertFalse(task.isCancelled()); in testShutdownNow_delayedTasks()
845 assertTrue(effectivePeriodicPolicy ^ periodic.isCancelled()); in testShutdown_cancellation()
849 assertTrue(effectiveDelayedPolicy ^ delayed.isCancelled()); in testShutdown_cancellation()
871 assertTrue(periodic.isCancelled()); in testShutdown_cancellation()
1276 assertTrue(futures.get(1).isCancelled());
DForkJoinTaskTest.java62 assertFalse(a.isCancelled()); in testInvokeOnPool()
71 assertFalse(a.isCancelled()); in testInvokeOnPool()
81 assertFalse(a.isCancelled()); in checkNotDone()
98 assertFalse(a.isCancelled()); in checkCompletedNormally()
132 assertTrue(a.isCancelled());
169 assertFalse(a.isCancelled());
DForkJoinPoolTest.java438 assertFalse(future.isCancelled()); in testExecuteRunnable()
451 assertFalse(future.isCancelled()); in testSubmitCallable()
464 assertFalse(future.isCancelled()); in testSubmitRunnable()
477 assertFalse(future.isCancelled()); in testSubmitRunnable2()
DRecursiveTaskTest.java63 assertFalse(a.isCancelled()); in checkNotDone()
92 assertFalse(a.isCancelled()); in checkCompletedNormally()
130 assertTrue(a.isCancelled()); in checkCancelled()
157 assertFalse(a.isCancelled()); in checkCompletedAbnormally()
DScheduledExecutorTest.java729 assertFalse(task.isCancelled()); in testShutdownNow_delayedTasks()
794 assertTrue(effectivePeriodicPolicy ^ periodic.isCancelled()); in testShutdown_cancellation()
798 assertTrue(effectiveDelayedPolicy ^ delayed.isCancelled()); in testShutdown_cancellation()
820 assertTrue(periodic.isCancelled()); in testShutdown_cancellation()
1226 assertTrue(futures.get(1).isCancelled());
DCountedCompleterTest.java60 assertFalse(a.isCancelled()); in testInvokeOnPool()
69 assertFalse(a.isCancelled()); in testInvokeOnPool()
79 assertFalse(a.isCancelled()); in checkNotDone()
92 assertFalse(a.isCancelled()); in checkCompletedNormally()
126 assertTrue(a.isCancelled());
163 assertFalse(a.isCancelled());
DRecursiveActionTest.java66 assertFalse(a.isCancelled()); in checkNotDone()
95 assertFalse(a.isCancelled()); in checkCompletedNormally()
113 assertTrue(a.isCancelled()); in checkCancelled()
140 assertFalse(a.isCancelled()); in checkCompletedAbnormally()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DFutureTaskTest.java107 assertFalse(f.isCancelled()); in checkNotDone()
135 assertFalse(f.isCancelled()); in checkCompletedNormally()
147 assertTrue(f.isCancelled()); in checkCancelled()
172 assertFalse(f.isCancelled()); in checkCompletedAbnormally()
381 assertTrue(task.isCancelled()); in testCancelBeforeRun()
398 assertTrue(task.isCancelled()); in testCancelBeforeRun2()
453 assertTrue(task.isCancelled()); in testCancelInterrupt()
495 assertTrue(task.isCancelled()); in testCancelInterrupt_ThrowsSecurityException()
529 assertTrue(task.isCancelled()); in testCancelInterrupt_taskFails()
556 assertTrue(task.isCancelled()); in testCancelNoInterrupt()
DForkJoinTask8Test.java108 assertFalse(a.isCancelled()); in testInvokeOnPool()
117 assertFalse(a.isCancelled()); in testInvokeOnPool()
127 assertFalse(a.isCancelled()); in checkNotDone()
146 assertFalse(a.isCancelled()); in checkCompletedNormally()
182 assertFalse(a.isCancelled());
1184 assertFalse(f.isCancelled());
DExecutorsTest.java241 assertFalse(f.isCancelled()); in testNewSingleThreadScheduledExecutor()
265 assertFalse(f.isCancelled()); in testNewScheduledThreadPool()
291 assertFalse(f.isCancelled()); in testUnconfigurableScheduledExecutorService()
DScheduledExecutorSubclassTest.java90 public boolean isCancelled() { return task.isCancelled(); } in isCancelled() method in ScheduledExecutorSubclassTest.CustomTask
803 assertFalse(task.isCancelled()); in testShutdownNow_delayedTasks()
867 assertTrue(effectivePeriodicPolicy ^ periodic.isCancelled()); in testShutdown_cancellation()
871 assertTrue(effectiveDelayedPolicy ^ delayed.isCancelled()); in testShutdown_cancellation()
893 assertTrue(periodic.isCancelled()); in testShutdown_cancellation()
1298 assertTrue(futures.get(1).isCancelled());
DForkJoinTaskTest.java84 assertFalse(a.isCancelled()); in testInvokeOnPool()
93 assertFalse(a.isCancelled()); in testInvokeOnPool()
103 assertFalse(a.isCancelled()); in checkNotDone()
120 assertFalse(a.isCancelled()); in checkCompletedNormally()
154 assertTrue(a.isCancelled());
191 assertFalse(a.isCancelled());
DRecursiveTaskTest.java86 assertFalse(a.isCancelled()); in checkNotDone()
115 assertFalse(a.isCancelled()); in checkCompletedNormally()
153 assertTrue(a.isCancelled()); in checkCancelled()
180 assertFalse(a.isCancelled()); in checkCompletedAbnormally()
DForkJoinPoolTest.java456 assertFalse(future.isCancelled()); in testExecuteRunnable()
469 assertFalse(future.isCancelled()); in testSubmitCallable()
482 assertFalse(future.isCancelled()); in testSubmitRunnable()
495 assertFalse(future.isCancelled()); in testSubmitRunnable2()
DScheduledExecutorTest.java750 assertFalse(task.isCancelled()); in testShutdownNow_delayedTasks()
815 assertTrue(effectivePeriodicPolicy ^ periodic.isCancelled()); in testShutdown_cancellation()
819 assertTrue(effectiveDelayedPolicy ^ delayed.isCancelled()); in testShutdown_cancellation()
841 assertTrue(periodic.isCancelled()); in testShutdown_cancellation()
1247 assertTrue(futures.get(1).isCancelled());
DCountedCompleterTest.java85 assertFalse(a.isCancelled()); in testInvokeOnPool()
94 assertFalse(a.isCancelled()); in testInvokeOnPool()
104 assertFalse(a.isCancelled()); in checkNotDone()
117 assertFalse(a.isCancelled()); in checkCompletedNormally()
151 assertTrue(a.isCancelled());
188 assertFalse(a.isCancelled());
DRecursiveActionTest.java90 assertFalse(a.isCancelled()); in checkNotDone()
119 assertFalse(a.isCancelled()); in checkCompletedNormally()
137 assertTrue(a.isCancelled()); in checkCancelled()
164 assertFalse(a.isCancelled()); in checkCompletedAbnormally()
/libcore/ojluni/src/main/java/sun/nio/ch/
DCompletedFuture.java83 public boolean isCancelled() { in isCancelled() method in CompletedFuture
DPendingFuture.java216 public boolean isCancelled() { in isCancelled() method in PendingFuture
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/
DFutureTask.java55 public boolean isCancelled() { in isCancelled() method in FutureTask

12