/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 | 67 timer.cancel(); in run() 115 t.cancel(); in test_ConstructorZ() 118 t.cancel(); in test_ConstructorZ() 134 t.cancel(); in test_Constructor() 137 t.cancel(); in test_Constructor() 153 t.cancel(); in test_ConstructorSZ() 156 t.cancel(); in test_ConstructorSZ() 183 t.cancel(); in test_ConstructorS() 186 t.cancel(); in test_ConstructorS() 205 t.cancel(); in test_cancel() [all …]
|
/libcore/luni/src/main/java/java/nio/channels/spi/ |
D | AbstractSelectionKey.java | 57 public final void cancel() { in cancel() method in AbstractSelectionKey 60 ((AbstractSelector) selector()).cancel(this); in cancel()
|
D | AbstractSelector.java | 126 void cancel(SelectionKey key) { in cancel() method in AbstractSelector
|
D | AbstractSelectableChannel.java | 177 key.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 | 28 assertFalse(f.cancel(false)); in checkIsDone() 29 assertFalse(f.cancel(true)); in checkIsDone() 125 pf.cancel(true); in tryToConfuseDoneTask() 270 assertTrue(task.cancel(mayInterruptIfRunning)); in testRunAndResetAfterCancel() 335 assertTrue(task.cancel(false)); in testCancelBeforeRun() 352 assertTrue(task.cancel(true)); in testCancelBeforeRun2() 370 assertFalse(task.cancel(false)); in testCancelAfterRun() 385 assertFalse(task.cancel(true)); in testCancelAfterRun2() 411 assertTrue(task.cancel(true)); in testCancelInterrupt() 448 task.cancel(true); in testCancelInterrupt_ThrowsSecurityException() [all …]
|
D | ForkJoinTaskTest.java | 108 assertFalse(a.cancel(false)); in checkCompletedNormally() 109 assertFalse(a.cancel(true)); in checkCompletedNormally() 125 assertTrue(a.cancel(false)); 126 assertTrue(a.cancel(true)); 162 assertFalse(a.cancel(false)); 163 assertFalse(a.cancel(true)); 277 s.cancel(false); 611 assertTrue(f.cancel(true)); in testCancelledInvoke() 629 assertTrue(f.cancel(true)); in testCancelledForkJoin() 648 assertTrue(f.cancel(true)); in testCancelledForkGet() [all …]
|
D | RecursiveActionTest.java | 91 assertFalse(a.cancel(false)); in checkCompletedNormally() 92 assertFalse(a.cancel(true)); in checkCompletedNormally() 135 assertFalse(a.cancel(false)); in checkCompletedAbnormally() 136 assertFalse(a.cancel(true)); in checkCompletedAbnormally() 267 f.cancel(true); in testJoinIgnoresInterrupts() 303 f.cancel(true); in testJoinIgnoresInterrupts() 338 fibActions[1].cancel(false); in testJoinIgnoresInterruptsOutsideForkJoinPool() 340 fibActions[4].cancel(true); in testJoinIgnoresInterruptsOutsideForkJoinPool() 617 assertTrue(f.cancel(true)); in testCancelledInvoke() 635 assertTrue(f.cancel(true)); in testCancelledForkJoin() [all …]
|
D | CountedCompleterTest.java | 107 assertFalse(a.cancel(false)); in checkCompletedNormally() 108 assertFalse(a.cancel(true)); in checkCompletedNormally() 124 assertTrue(a.cancel(false)); 125 assertTrue(a.cancel(true)); 161 assertFalse(a.cancel(false)); 162 assertFalse(a.cancel(true)); 831 assertTrue(f.cancel(true)); in testCancelledInvoke() 849 assertTrue(f.cancel(true)); in testCancelledForkJoin() 868 assertTrue(f.cancel(true)); in testCancelledForkGet() 887 assertTrue(f.cancel(true)); in testCancelledForkTimedGet() [all …]
|
D | RecursiveTaskTest.java | 89 assertFalse(a.cancel(false)); in checkCompletedNormally() 90 assertFalse(a.cancel(true)); in checkCompletedNormally() 153 assertFalse(a.cancel(false)); in checkCompletedAbnormally() 154 assertFalse(a.cancel(true)); in checkCompletedAbnormally() 451 assertTrue(f.cancel(true)); in testCancelledInvoke() 470 assertTrue(f.cancel(true)); in testCancelledForkJoin() 490 assertTrue(f.cancel(true)); in testCancelledForkGet() 510 assertTrue(f.cancel(true)); in testCancelledForkTimedGet() 530 assertTrue(f.cancel(true)); in testCancelledForkQuietlyJoin()
|
D | ScheduledExecutorSubclassTest.java | 30 public boolean cancel(boolean mayInterruptIfRunning) { in cancel() method in ScheduledExecutorSubclassTest.CustomTask 31 return task.cancel(mayInterruptIfRunning); in cancel() 152 f.cancel(true); in testSchedule4() 176 f.cancel(true); in testSchedule5() 196 h.cancel(true); in testFixedRateSequence() 214 h.cancel(true); in testFixedDelaySequence() 641 if (tasks[4].cancel(true)) --max; in testPurge() 642 if (tasks[3].cancel(true)) --max; in testPurge() 655 task.cancel(true); in testPurge() 782 assertTrue(task.cancel(false)); in testShutdown4()
|
D | ScheduledExecutorTest.java | 100 f.cancel(true); in testSchedule4() 124 f.cancel(true); in testSchedule5() 144 h.cancel(true); in testFixedRateSequence() 162 h.cancel(true); in testFixedDelaySequence() 592 if (tasks[4].cancel(true)) --max; in testPurge() 593 if (tasks[3].cancel(true)) --max; in testPurge() 606 task.cancel(true); in testPurge() 733 assertTrue(task.cancel(false)); in testShutdown4()
|
/libcore/luni/src/main/java/java/util/concurrent/ |
D | Future.java | 90 boolean cancel(boolean mayInterruptIfRunning); in cancel() method
|
D | ScheduledThreadPoolExecutor.java | 250 public boolean cancel(boolean mayInterruptIfRunning) { in cancel() method in ScheduledThreadPoolExecutor.ScheduledFutureTask 251 boolean cancelled = super.cancel(mayInterruptIfRunning); in cancel() 263 cancel(false); in run() 304 task.cancel(false); in delayedExecute() 320 task.cancel(false); in reExecutePeriodic() 339 ((RunnableScheduledFuture<?>) e).cancel(false); in onShutdown() 351 t.cancel(false); in onShutdown()
|
D | AbstractExecutorService.java | 177 futures.get(i).cancel(true); in doInvokeAny() 224 futures.get(i).cancel(true); in invokeAll() 272 futures.get(i).cancel(true); in invokeAll()
|
D | ForkJoinTask.java | 476 t.cancel(false); in cancelIgnoringExceptions() 758 t.cancel(false); in invokeAll() 809 t.cancel(false); in invokeAll() 846 public boolean cancel(boolean mayInterruptIfRunning) { in cancel() method in ForkJoinTask
|
D | FutureTask.java | 135 public boolean cancel(boolean mayInterruptIfRunning) { in cancel() method in FutureTask
|
/libcore/luni/src/main/java/java/util/ |
D | TimerTask.java | 91 public boolean cancel() { in cancel() method in TimerTask
|
D | Timer.java | 305 public synchronized void cancel() { in cancel() method in Timer.TimerImpl 399 public void cancel() { in cancel() method in Timer 400 impl.cancel(); in cancel()
|
/libcore/luni/src/main/java/java/nio/channels/ |
D | SelectionKey.java | 103 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/luni/src/main/java/java/sql/ |
D | Statement.java | 104 public 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()
|