Home
last modified time | relevance | path

Searched refs:mayInterruptIfRunning (Results 1 – 19 of 19) sorted by relevance

/libcore/ojluni/src/main/java/java/util/concurrent/
DFuture.java120 boolean cancel(boolean mayInterruptIfRunning); in cancel() argument
DFutureTask.java165 public boolean cancel(boolean mayInterruptIfRunning) { in cancel() argument
168 mayInterruptIfRunning ? INTERRUPTING : CANCELLED))) in cancel()
171 if (mayInterruptIfRunning) { in cancel()
DScheduledThreadPoolExecutor.java283 public boolean cancel(boolean mayInterruptIfRunning) { in cancel() argument
287 boolean cancelled = super.cancel(mayInterruptIfRunning); in cancel()
DForkJoinTask.java879 public boolean cancel(boolean mayInterruptIfRunning) { in cancel() argument
DCompletableFuture.java2291 public boolean cancel(boolean mayInterruptIfRunning) { in cancel() argument
2726 @Override public boolean cancel(boolean mayInterruptIfRunning) { in cancel() argument
/libcore/ojluni/src/main/java/sun/nio/ch/
DPendingFuture.java226 public boolean cancel(boolean mayInterruptIfRunning) { in cancel() argument
243 if (mayInterruptIfRunning) { in cancel()
DCompletedFuture.java93 public boolean cancel(boolean mayInterruptIfRunning) { in cancel() argument
/libcore/jsr166-tests/src/test/java/jsr166/
DCompletableFutureTest.java248 for (boolean mayInterruptIfRunning : new boolean[] { true, false })
252 assertTrue(f.cancel(mayInterruptIfRunning));
253 assertTrue(f.cancel(mayInterruptIfRunning));
254 assertTrue(f.cancel(!mayInterruptIfRunning));
354 for (boolean mayInterruptIfRunning : new boolean[] { true, false }) {
356 assertTrue(f.cancel(mayInterruptIfRunning));
970 for (boolean mayInterruptIfRunning : new boolean[] { true, false }) in testWhenComplete_sourceCancelled()
975 if (!createIncomplete) assertTrue(f.cancel(mayInterruptIfRunning)); in testWhenComplete_sourceCancelled()
984 if (createIncomplete) assertTrue(f.cancel(mayInterruptIfRunning)); in testWhenComplete_sourceCancelled()
1118 for (boolean mayInterruptIfRunning : new boolean[] { true, false }) in testHandle_sourceCancelled()
[all …]
DFutureTaskTest.java142 for (boolean mayInterruptIfRunning : new boolean[] { true, false }) { in tryToConfuseDoneTask()
143 pf.cancel(mayInterruptIfRunning); in tryToConfuseDoneTask()
286 for (boolean mayInterruptIfRunning : new boolean[] { true, false }) { in testRunAndResetAfterCancel()
288 assertTrue(task.cancel(mayInterruptIfRunning)); in testRunAndResetAfterCancel()
630 public void testTimedGet_Cancellation(final boolean mayInterruptIfRunning) { in testTimedGet_Cancellation() argument
637 if (mayInterruptIfRunning) { in testTimedGet_Cancellation()
663 task.cancel(mayInterruptIfRunning); in testTimedGet_Cancellation()
DForkJoinTask8Test.java250 public boolean cancel(boolean mayInterruptIfRunning) {
251 if (super.cancel(mayInterruptIfRunning)) {
DScheduledExecutorSubclassTest.java65 public boolean cancel(boolean mayInterruptIfRunning) { in cancel() argument
66 return task.cancel(mayInterruptIfRunning); in cancel()
DForkJoinTaskTest.java263 public boolean cancel(boolean mayInterruptIfRunning) {
264 if (super.cancel(mayInterruptIfRunning)) {
/libcore/ojluni/src/test/java/util/concurrent/tck/
DFutureTaskTest.java165 for (boolean mayInterruptIfRunning : new boolean[] { true, false }) { in tryToConfuseDoneTask()
166 pf.cancel(mayInterruptIfRunning); in tryToConfuseDoneTask()
309 for (boolean mayInterruptIfRunning : new boolean[] { true, false }) { in testRunAndResetAfterCancel()
311 assertTrue(task.cancel(mayInterruptIfRunning)); in testRunAndResetAfterCancel()
653 public void testTimedGet_Cancellation(final boolean mayInterruptIfRunning) { in testTimedGet_Cancellation() argument
660 if (mayInterruptIfRunning) { in testTimedGet_Cancellation()
686 task.cancel(mayInterruptIfRunning); in testTimedGet_Cancellation()
DCompletableFutureTest.java271 for (boolean mayInterruptIfRunning : new boolean[] { true, false })
275 assertTrue(f.cancel(mayInterruptIfRunning));
276 assertTrue(f.cancel(mayInterruptIfRunning));
277 assertTrue(f.cancel(!mayInterruptIfRunning));
377 for (boolean mayInterruptIfRunning : new boolean[] { true, false }) {
379 assertTrue(f.cancel(mayInterruptIfRunning));
1009 for (boolean mayInterruptIfRunning : new boolean[] { true, false }) in testWhenComplete_sourceCancelled()
1014 if (!createIncomplete) assertTrue(f.cancel(mayInterruptIfRunning)); in testWhenComplete_sourceCancelled()
1023 if (createIncomplete) assertTrue(f.cancel(mayInterruptIfRunning)); in testWhenComplete_sourceCancelled()
1157 for (boolean mayInterruptIfRunning : new boolean[] { true, false }) in testHandle_sourceCancelled()
[all …]
DForkJoinTask8Test.java273 public boolean cancel(boolean mayInterruptIfRunning) {
274 if (super.cancel(mayInterruptIfRunning)) {
DScheduledExecutorSubclassTest.java87 public boolean cancel(boolean mayInterruptIfRunning) { in cancel() argument
88 return task.cancel(mayInterruptIfRunning); in cancel()
DForkJoinTaskTest.java285 public boolean cancel(boolean mayInterruptIfRunning) {
286 if (super.cancel(mayInterruptIfRunning)) {
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/
DFutureTask.java63 public boolean cancel(boolean mayInterruptIfRunning) { in cancel() argument
/libcore/ojluni/annotations/mmodule/java/util/concurrent/
DCompletableFuture.annotated.java150 public boolean cancel(boolean mayInterruptIfRunning) { throw new RuntimeException("Stub!"); } in cancel() argument