Home
last modified time | relevance | path

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

123

/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.java71 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/
DAbstractShortCircuitTask.java196 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/
DUnixCopyFile.c57 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/
DPendingFuture.java110 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()
DCompletedFuture.java93 public boolean cancel(boolean mayInterruptIfRunning) { in cancel() method in CompletedFuture
/libcore/ojluni/src/main/java/java/nio/channels/spi/
DAbstractSelectionKey.java66 public final void cancel() { in cancel() method in AbstractSelectionKey
73 ((AbstractSelector)selector()).cancel(this); in cancel()
/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()
/libcore/ojluni/src/main/java/sun/nio/fs/
DCancellable.java74 final void cancel() { in cancel() method in Cancellable
128 task.cancel(); in runInterruptibly()
DPollingWatchService.java298 poller.cancel(false);
303 public void cancel() {
329 cancel();
/libcore/jsr166-tests/src/test/java/jsr166/
DFutureTaskTest.java46 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 …]
DForkJoinTaskTest.java120 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 …]
DForkJoinPool8Test.java112 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 …]
DRecursiveActionTest.java101 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 …]
DCountedCompleterTest.java114 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 …]
DRecursiveTaskTest.java98 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()
DScheduledExecutorSubclassTest.java65 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()
/libcore/ojluni/src/main/java/java/nio/file/
DWatchKey.java133 void cancel(); in cancel() method
/libcore/ojluni/src/main/java/java/util/concurrent/
DFuture.java120 boolean cancel(boolean mayInterruptIfRunning); in cancel() method
DFlow.java292 public void cancel(); in cancel() method
DScheduledThreadPoolExecutor.java283 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/
DTimerTask.java39 public boolean cancel() { in cancel() method in TimerTask
/libcore/ojluni/src/main/java/java/util/
DTimerTask.java116 public boolean cancel() { in cancel() method in TimerTask
/libcore/ojluni/src/main/java/java/nio/channels/
DSelectionKey.java160 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()

123