/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/java/nio/channels/spi/ |
D | AbstractSelectionKey.java | 66 public final void cancel() { in cancel() method in AbstractSelectionKey 73 ((AbstractSelector)selector()).cancel(this); in cancel()
|
D | AbstractSelector.java | 90 void cancel(SelectionKey k) { // package-private in cancel() method in AbstractSelector
|
/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()
|
D | CompletedFuture.java | 93 public boolean cancel(boolean mayInterruptIfRunning) { in cancel() method in CompletedFuture
|
/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/sun/nio/fs/ |
D | Cancellable.java | 74 final void cancel() { in cancel() method in Cancellable 128 task.cancel(); in runInterruptibly()
|
D | PollingWatchService.java | 298 poller.cancel(false); 303 public void cancel() { 329 cancel();
|
D | AbstractWatchService.java | 51 public void cancel() {
|
/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 …]
|
D | RecursiveTaskTest.java | 98 assertFalse(a.cancel(false)); in checkCompletedNormally() 99 assertFalse(a.cancel(true)); in checkCompletedNormally() 162 assertFalse(a.cancel(false)); in checkCompletedAbnormally() 163 assertFalse(a.cancel(true)); in checkCompletedAbnormally() 462 assertTrue(f.cancel(true)); in testCancelledInvoke() 481 assertTrue(f.cancel(true)); in testCancelledForkJoin() 501 assertTrue(f.cancel(true)); in testCancelledForkGet() 521 assertTrue(f.cancel(true)); in testCancelledForkTimedGet() 541 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 | 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/annotations/hiddenapi/java/util/ |
D | TimerTask.java | 39 public boolean cancel() { in cancel() method in TimerTask
|
/libcore/ojluni/src/main/java/java/util/ |
D | TimerTask.java | 116 public boolean cancel() { in cancel() method in TimerTask
|
/libcore/ojluni/src/main/java/java/nio/channels/ |
D | SelectionKey.java | 160 public abstract void cancel(); in cancel() method in SelectionKey
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/spi/ |
D | AbstractSelectionKeyTest.java | 42 testKey.cancel(); in test_cancel()
|