Home
last modified time | relevance | path

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

12

/libcore/ojluni/src/main/java/java/util/concurrent/
DFuture.java128 boolean isCancelled(); in isCancelled() method
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()
DFutureTask.java157 public boolean isCancelled() { in isCancelled() method in FutureTask
/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());
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()
DAbstractExecutorServiceTest.java78 assertFalse(future.isCancelled()); in testExecuteRunnable()
607 assertTrue(futures.get(2).isCancelled());
/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
DUnixAsynchronousServerSocketChannelImpl.java210 if (child != null && future.isCancelled()) { in onEvent()
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/
DFutureTask.java55 public boolean isCancelled() { in isCancelled() method in FutureTask
/libcore/ojluni/src/test/java/util/concurrent/tck/
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()
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());
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()
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()
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());
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()
DAbstractExecutorServiceTest.java101 assertFalse(future.isCancelled()); in testExecuteRunnable()
630 assertTrue(futures.get(2).isCancelled());

12