/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/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 | 87 void cancel(SelectionKey k) { // package-private in cancel() method in AbstractSelector
|
D | AbstractSelectableChannel.java | 237 k.cancel(); in implCloseChannel()
|
/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()
|
D | SelectorTest.java | 178 ssc.keyFor(selector).cancel(); in test_selectedKeys() 344 key1.cancel(); 370 key.cancel(); 498 ssc.keyFor(selector).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()
|
D | ScheduledExecutorSubclassTest.java | 65 public boolean cancel(boolean mayInterruptIfRunning) { in cancel() method in ScheduledExecutorSubclassTest.CustomTask 66 return task.cancel(mayInterruptIfRunning); in cancel() 178 f.cancel(true); in testSchedule4() 200 f.cancel(true); in testSchedule5() 227 periodicTask.cancel(true); in testFixedRateSequence() 273 periodicTask.cancel(true); in testFixedDelaySequence() 693 if (task != null) task.cancel(true); }}; in testPurge() 700 if (tasks[4].cancel(true)) --max; in testPurge() 701 if (tasks[3].cancel(true)) --max; in testPurge() 870 assertTrue(periodic.cancel(false)); in testShutdown_cancellation()
|
D | ScheduledExecutorTest.java | 122 f.cancel(true); in testSchedule4() 144 f.cancel(true); in testSchedule5() 171 periodicTask.cancel(true); in testFixedRateSequence() 217 periodicTask.cancel(true); in testFixedDelaySequence() 641 if (task != null) task.cancel(true); }}; in testPurge() 648 if (tasks[4].cancel(true)) --max; in testPurge() 649 if (tasks[3].cancel(true)) --max; in testPurge() 819 assertTrue(periodic.cancel(false)); in testShutdown_cancellation()
|
D | ForkJoinTask8Test.java | 147 assertFalse(a.cancel(false)); in checkCompletedNormally() 148 assertFalse(a.cancel(true)); in checkCompletedNormally() 164 assertFalse(a.cancel(false)); 165 assertFalse(a.cancel(true)); 250 public boolean cancel(boolean mayInterruptIfRunning) { 251 if (super.cancel(mayInterruptIfRunning)) {
|
/libcore/luni/src/main/java/java/util/concurrent/ |
D | Future.java | 91 boolean cancel(boolean mayInterruptIfRunning); in cancel() method
|
D | ScheduledThreadPoolExecutor.java | 254 public boolean cancel(boolean mayInterruptIfRunning) { in cancel() method in ScheduledThreadPoolExecutor.ScheduledFutureTask 258 boolean cancelled = super.cancel(mayInterruptIfRunning); in cancel() 270 cancel(false); in run() 311 task.cancel(false); in delayedExecute() 327 task.cancel(false); in reExecutePeriodic() 346 ((RunnableScheduledFuture<?>) e).cancel(false); in onShutdown() 358 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/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()
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | CompletedFuture.java | 93 public boolean cancel(boolean mayInterruptIfRunning) { in cancel() method in CompletedFuture
|
/libcore/ojluni/src/main/java/java/sql/ |
D | Statement.java | 251 void cancel() throws SQLException; in cancel() method
|
/libcore/dalvik/src/main/java/dalvik/system/profiler/ |
D | SamplingProfiler.java | 316 timer.cancel(); in shutdown() 354 cancel(); in run()
|