Home
last modified time | relevance | path

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

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DTimerTaskTest.java84 !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 …]
DTimerTest.java67 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/
DAbstractSelectionKey.java57 public final void cancel() { in cancel() method in AbstractSelectionKey
60 ((AbstractSelector) selector()).cancel(this); in cancel()
DAbstractSelector.java126 void cancel(SelectionKey key) { in cancel() method in AbstractSelector
DAbstractSelectableChannel.java177 key.cancel(); in implCloseChannel()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DSelectionKeyTest.java51 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()
DSelectorTest.java178 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/
DFutureTaskTest.java28 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 …]
DForkJoinTaskTest.java108 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 …]
DRecursiveActionTest.java91 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 …]
DCountedCompleterTest.java107 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 …]
DRecursiveTaskTest.java89 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()
DScheduledExecutorSubclassTest.java30 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()
DScheduledExecutorTest.java100 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/
DFuture.java90 boolean cancel(boolean mayInterruptIfRunning); in cancel() method
DScheduledThreadPoolExecutor.java250 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()
DAbstractExecutorService.java177 futures.get(i).cancel(true); in doInvokeAny()
224 futures.get(i).cancel(true); in invokeAll()
272 futures.get(i).cancel(true); in invokeAll()
DForkJoinTask.java476 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
DFutureTask.java135 public boolean cancel(boolean mayInterruptIfRunning) { in cancel() method in FutureTask
/libcore/luni/src/main/java/java/util/
DTimerTask.java91 public boolean cancel() { in cancel() method in TimerTask
DTimer.java305 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/
DSelectionKey.java103 public abstract void cancel(); in cancel() method in SelectionKey
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/spi/
DAbstractSelectionKeyTest.java42 testKey.cancel(); in test_cancel()
/libcore/luni/src/main/java/java/sql/
DStatement.java104 public void cancel() throws SQLException; in cancel() method
/libcore/dalvik/src/main/java/dalvik/system/profiler/
DSamplingProfiler.java316 timer.cancel(); in shutdown()
354 cancel(); in run()

12