/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | TimerTaskTest.java | 84 !testTask.cancel()); in test_cancel() 90 assertTrue("TimerTask should not have run yet", testTask.cancel()); in test_cancel() 91 t.cancel(); in test_cancel() 105 testTask.cancel()); in test_cancel() 108 testTask.cancel()); in test_cancel() 109 t.cancel(); in test_cancel() 118 testTask.cancel()); in test_cancel() 119 t.cancel(); in test_cancel() 134 testTask.cancel()); in test_cancel() 135 t.cancel(); in test_cancel() [all …]
|
D | TimerTest.java | 71 timer.cancel(); in run() 119 t.cancel(); in test_ConstructorZ() 122 t.cancel(); in test_ConstructorZ() 138 t.cancel(); in test_Constructor() 141 t.cancel(); in test_Constructor() 157 t.cancel(); in test_ConstructorSZ() 160 t.cancel(); in test_ConstructorSZ() 187 t.cancel(); in test_ConstructorS() 190 t.cancel(); in test_ConstructorS() 209 t.cancel(); in test_cancel() [all …]
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | AbstractShortCircuitTask.java | 196 protected void cancel() { in cancel() method in AbstractShortCircuitTask 207 boolean cancel = canceled; in taskCanceled() 208 if (!cancel) { in taskCanceled() 209 for (K parent = getParent(); !cancel && parent != null; parent = parent.getParent()) in taskCanceled() 210 cancel = parent.canceled; in taskCanceled() 213 return cancel; in taskCanceled() 230 rightSibling.cancel(); in cancelLaterNodes()
|
/libcore/ojluni/src/main/native/ |
D | UnixCopyFile.c | 57 volatile jint* cancel = (jint*)jlong_to_ptr(cancelAddress); in Java_sun_nio_fs_UnixCopyFile_transfer() local 67 if (cancel != NULL && *cancel != 0) { in Java_sun_nio_fs_UnixCopyFile_transfer()
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | PendingFuture.java | 110 task.cancel(false); in setTimeoutTask() 140 timeoutTask.cancel(false); in setResult() 158 timeoutTask.cancel(false); in setFailure() 226 public boolean cancel(boolean mayInterruptIfRunning) { in cancel() method in PendingFuture 239 timeoutTask.cancel(false); in cancel()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | SelectionKeyTest.java | 51 selectionKey.cancel(); in tearDown() 65 public void cancel() { in cancel() method in SelectionKeyTest.MockSelectionKey 129 selectionKey.cancel(); in test_channel() 180 selectionKey.cancel(); in test_isValid_KeyCancelled() 244 selectionKey.cancel(); in test_cancel() 315 selectionKey.cancel(); in test_selector()
|
/libcore/ojluni/src/main/java/java/nio/channels/spi/ |
D | AbstractSelectionKey.java | 66 public final void cancel() { in cancel() method in AbstractSelectionKey 73 ((AbstractSelector)selector()).cancel(this); in cancel()
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | Cancellable.java | 74 final void cancel() { in cancel() method in Cancellable 128 task.cancel(); in runInterruptibly()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | FutureTaskTest.java | 46 assertFalse(f.cancel(false)); in checkIsDone() 47 assertFalse(f.cancel(true)); in checkIsDone() 143 pf.cancel(mayInterruptIfRunning); in tryToConfuseDoneTask() 288 assertTrue(task.cancel(mayInterruptIfRunning)); in testRunAndResetAfterCancel() 353 assertTrue(task.cancel(false)); in testCancelBeforeRun() 370 assertTrue(task.cancel(true)); in testCancelBeforeRun2() 388 assertFalse(task.cancel(false)); in testCancelAfterRun() 403 assertFalse(task.cancel(true)); in testCancelAfterRun2() 429 assertTrue(task.cancel(true)); in testCancelInterrupt() 466 task.cancel(true); in testCancelInterrupt_ThrowsSecurityException() [all …]
|
D | ForkJoinTaskTest.java | 120 assertFalse(a.cancel(false)); in checkCompletedNormally() 121 assertFalse(a.cancel(true)); in checkCompletedNormally() 137 assertTrue(a.cancel(false)); 138 assertTrue(a.cancel(true)); 174 assertFalse(a.cancel(false)); 175 assertFalse(a.cancel(true)); 263 public boolean cancel(boolean mayInterruptIfRunning) { 264 if (super.cancel(mayInterruptIfRunning)) { 624 assertTrue(f.cancel(true)); 642 assertTrue(f.cancel(true)); [all …]
|
D | ForkJoinPool8Test.java | 112 assertFalse(a.cancel(false)); in checkCompletedNormally() 113 assertFalse(a.cancel(true)); in checkCompletedNormally() 156 assertFalse(a.cancel(false)); in checkCompletedAbnormally() 157 assertFalse(a.cancel(true)); in checkCompletedAbnormally() 288 f.cancel(true); in testJoinIgnoresInterrupts() 324 f.cancel(true); in testJoinIgnoresInterrupts() 518 assertTrue(f.cancel(true)); in testCancelledInvoke() 536 assertTrue(f.cancel(true)); in testCancelledForkJoin() 555 assertTrue(f.cancel(true)); in testCancelledForkGet() 574 assertTrue(f.cancel(true)); in testCancelledForkTimedGet() [all …]
|
D | RecursiveActionTest.java | 101 assertFalse(a.cancel(false)); in checkCompletedNormally() 102 assertFalse(a.cancel(true)); in checkCompletedNormally() 145 assertFalse(a.cancel(false)); in checkCompletedAbnormally() 146 assertFalse(a.cancel(true)); in checkCompletedAbnormally() 277 f.cancel(true); in testJoinIgnoresInterrupts() 313 f.cancel(true); in testJoinIgnoresInterrupts() 348 fibActions[1].cancel(false); in testJoinIgnoresInterruptsOutsideForkJoinPool() 350 fibActions[4].cancel(true); in testJoinIgnoresInterruptsOutsideForkJoinPool() 629 assertTrue(f.cancel(true)); in testCancelledInvoke() 647 assertTrue(f.cancel(true)); in testCancelledForkJoin() [all …]
|
D | CountedCompleterTest.java | 114 assertFalse(a.cancel(false)); in checkCompletedNormally() 115 assertFalse(a.cancel(true)); in checkCompletedNormally() 131 assertTrue(a.cancel(false)); 132 assertTrue(a.cancel(true)); 168 assertFalse(a.cancel(false)); 169 assertFalse(a.cancel(true)); 859 assertTrue(f.cancel(true)); in testCancelledInvoke() 877 assertTrue(f.cancel(true)); in testCancelledForkJoin() 896 assertTrue(f.cancel(true)); in testCancelledForkGet() 915 assertTrue(f.cancel(true)); in testCancelledForkTimedGet() [all …]
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | FutureTaskTest.java | 69 assertFalse(f.cancel(false)); in checkIsDone() 70 assertFalse(f.cancel(true)); in checkIsDone() 166 pf.cancel(mayInterruptIfRunning); in tryToConfuseDoneTask() 311 assertTrue(task.cancel(mayInterruptIfRunning)); in testRunAndResetAfterCancel() 376 assertTrue(task.cancel(false)); in testCancelBeforeRun() 393 assertTrue(task.cancel(true)); in testCancelBeforeRun2() 411 assertFalse(task.cancel(false)); in testCancelAfterRun() 426 assertFalse(task.cancel(true)); in testCancelAfterRun2() 452 assertTrue(task.cancel(true)); in testCancelInterrupt() 489 task.cancel(true); in testCancelInterrupt_ThrowsSecurityException() [all …]
|
D | ForkJoinTaskTest.java | 142 assertFalse(a.cancel(false)); in checkCompletedNormally() 143 assertFalse(a.cancel(true)); in checkCompletedNormally() 159 assertTrue(a.cancel(false)); 160 assertTrue(a.cancel(true)); 196 assertFalse(a.cancel(false)); 197 assertFalse(a.cancel(true)); 285 public boolean cancel(boolean mayInterruptIfRunning) { 286 if (super.cancel(mayInterruptIfRunning)) { 646 assertTrue(f.cancel(true)); 664 assertTrue(f.cancel(true)); [all …]
|
D | ForkJoinPool8Test.java | 136 assertFalse(a.cancel(false)); in checkCompletedNormally() 137 assertFalse(a.cancel(true)); in checkCompletedNormally() 180 assertFalse(a.cancel(false)); in checkCompletedAbnormally() 181 assertFalse(a.cancel(true)); in checkCompletedAbnormally() 311 f.cancel(true); in testJoinIgnoresInterrupts() 344 f.cancel(true); in testJoinIgnoresInterrupts() 536 assertTrue(f.cancel(true)); in testCancelledInvoke() 554 assertTrue(f.cancel(true)); in testCancelledForkJoin() 573 assertTrue(f.cancel(true)); in testCancelledForkGet() 592 assertTrue(f.cancel(true)); in testCancelledForkTimedGet() [all …]
|
D | RecursiveActionTest.java | 125 assertFalse(a.cancel(false)); in checkCompletedNormally() 126 assertFalse(a.cancel(true)); in checkCompletedNormally() 169 assertFalse(a.cancel(false)); in checkCompletedAbnormally() 170 assertFalse(a.cancel(true)); in checkCompletedAbnormally() 300 f.cancel(true); in testJoinIgnoresInterrupts() 333 f.cancel(true); in testJoinIgnoresInterrupts() 366 fibActions[1].cancel(false); in testJoinIgnoresInterruptsOutsideForkJoinPool() 368 fibActions[4].cancel(true); in testJoinIgnoresInterruptsOutsideForkJoinPool() 641 assertTrue(f.cancel(true)); in testCancelledInvoke() 659 assertTrue(f.cancel(true)); in testCancelledForkJoin() [all …]
|
D | CountedCompleterTest.java | 139 assertFalse(a.cancel(false)); in checkCompletedNormally() 140 assertFalse(a.cancel(true)); in checkCompletedNormally() 156 assertTrue(a.cancel(false)); 157 assertTrue(a.cancel(true)); 193 assertFalse(a.cancel(false)); 194 assertFalse(a.cancel(true)); 884 assertTrue(f.cancel(true)); in testCancelledInvoke() 902 assertTrue(f.cancel(true)); in testCancelledForkJoin() 921 assertTrue(f.cancel(true)); in testCancelledForkGet() 940 assertTrue(f.cancel(true)); in testCancelledForkTimedGet() [all …]
|
D | RecursiveTaskTest.java | 121 assertFalse(a.cancel(false)); in checkCompletedNormally() 122 assertFalse(a.cancel(true)); in checkCompletedNormally() 185 assertFalse(a.cancel(false)); in checkCompletedAbnormally() 186 assertFalse(a.cancel(true)); in checkCompletedAbnormally() 485 assertTrue(f.cancel(true)); in testCancelledInvoke() 504 assertTrue(f.cancel(true)); in testCancelledForkJoin() 524 assertTrue(f.cancel(true)); in testCancelledForkGet() 544 assertTrue(f.cancel(true)); in testCancelledForkTimedGet() 564 assertTrue(f.cancel(true)); in testCancelledForkQuietlyJoin()
|
/libcore/ojluni/src/main/java/java/nio/file/ |
D | WatchKey.java | 133 void cancel(); in cancel() method
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | Future.java | 120 boolean cancel(boolean mayInterruptIfRunning); in cancel() method
|
D | Flow.java | 292 public void cancel(); in cancel() method
|
D | ScheduledThreadPoolExecutor.java | 283 public boolean cancel(boolean mayInterruptIfRunning) { in cancel() method in ScheduledThreadPoolExecutor.ScheduledFutureTask 287 boolean cancelled = super.cancel(mayInterruptIfRunning); in cancel() 299 cancel(false); in run() 340 task.cancel(false); in delayedExecute() 356 task.cancel(false); in reExecutePeriodic() 375 ((RunnableScheduledFuture<?>) e).cancel(false); in onShutdown() 387 t.cancel(false); in onShutdown()
|
/libcore/ojluni/src/main/java/java/util/ |
D | TimerTask.java | 116 public boolean cancel() { in cancel() method in TimerTask
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | TimerTask.java | 39 public boolean cancel() { in cancel() method in TimerTask
|