/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | Future.java | 114 boolean cancel(boolean mayInterruptIfRunning); in cancel() argument
|
D | FutureTask.java | 164 public boolean cancel(boolean mayInterruptIfRunning) { in cancel() argument 166 (this, NEW, mayInterruptIfRunning ? INTERRUPTING : CANCELLED))) in cancel() 169 if (mayInterruptIfRunning) { in cancel()
|
D | ForkJoinTask.java | 873 public boolean cancel(boolean mayInterruptIfRunning) { in cancel() argument 1478 public final boolean cancel(boolean mayInterruptIfRunning) { in cancel() argument 1481 if (mayInterruptIfRunning && (t = runner) != null) { in cancel()
|
D | ScheduledThreadPoolExecutor.java | 290 public boolean cancel(boolean mayInterruptIfRunning) { in cancel() argument 294 boolean cancelled = super.cancel(mayInterruptIfRunning); in cancel()
|
D | ForkJoinPool.java | 2834 public final boolean cancel(boolean mayInterruptIfRunning) { 2837 if (mayInterruptIfRunning && (t = runner) != null) {
|
D | CompletableFuture.java | 2465 public boolean cancel(boolean mayInterruptIfRunning) { in cancel() argument 2907 @Override public boolean cancel(boolean mayInterruptIfRunning) { in cancel() argument
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | PendingFuture.java | 226 public boolean cancel(boolean mayInterruptIfRunning) { in cancel() argument 243 if (mayInterruptIfRunning) { in cancel()
|
D | CompletedFuture.java | 93 public boolean cancel(boolean mayInterruptIfRunning) { in cancel() argument
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | CompletableFutureTest.java | 252 for (boolean mayInterruptIfRunning : new boolean[] { true, false }) 256 assertTrue(f.cancel(mayInterruptIfRunning)); 257 assertTrue(f.cancel(mayInterruptIfRunning)); 258 assertTrue(f.cancel(!mayInterruptIfRunning)); 360 for (boolean mayInterruptIfRunning : new boolean[] { true, false }) { 362 assertTrue(f.cancel(mayInterruptIfRunning)); 978 for (boolean mayInterruptIfRunning : new boolean[] { true, false }) in testWhenComplete_sourceCancelled() 983 if (!createIncomplete) assertTrue(f.cancel(mayInterruptIfRunning)); in testWhenComplete_sourceCancelled() 992 if (createIncomplete) assertTrue(f.cancel(mayInterruptIfRunning)); in testWhenComplete_sourceCancelled() 1126 for (boolean mayInterruptIfRunning : new boolean[] { true, false }) in testHandle_sourceCancelled() [all …]
|
D | FutureTaskTest.java | 142 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()
|
D | ForkJoinTask8Test.java | 250 public boolean cancel(boolean mayInterruptIfRunning) { 251 if (super.cancel(mayInterruptIfRunning)) {
|
D | ForkJoinTaskTest.java | 263 public boolean cancel(boolean mayInterruptIfRunning) { 264 if (super.cancel(mayInterruptIfRunning)) {
|
D | ScheduledExecutorSubclassTest.java | 65 public boolean cancel(boolean mayInterruptIfRunning) { in cancel() argument 66 return task.cancel(mayInterruptIfRunning); in cancel()
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | FutureTaskTest.java | 165 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()
|
D | CompletableFutureTest.java | 276 for (boolean mayInterruptIfRunning : new boolean[] { true, false }) 280 assertTrue(f.cancel(mayInterruptIfRunning)); 281 assertTrue(f.cancel(mayInterruptIfRunning)); 282 assertTrue(f.cancel(!mayInterruptIfRunning)); 387 for (boolean mayInterruptIfRunning : new boolean[] { true, false }) { 389 assertTrue(f.cancel(mayInterruptIfRunning)); 1075 for (boolean mayInterruptIfRunning : new boolean[] { true, false }) in testWhenComplete_sourceCancelled() 1080 if (!createIncomplete) assertTrue(f.cancel(mayInterruptIfRunning)); in testWhenComplete_sourceCancelled() 1089 if (createIncomplete) assertTrue(f.cancel(mayInterruptIfRunning)); in testWhenComplete_sourceCancelled() 1223 for (boolean mayInterruptIfRunning : new boolean[] { true, false }) in testHandle_sourceCancelled() [all …]
|
D | ForkJoinTask8Test.java | 273 public boolean cancel(boolean mayInterruptIfRunning) { 274 if (super.cancel(mayInterruptIfRunning)) {
|
D | ScheduledExecutorSubclassTest.java | 89 public boolean cancel(boolean mayInterruptIfRunning) { in cancel() argument 90 return task.cancel(mayInterruptIfRunning); in cancel()
|
D | ForkJoinTaskTest.java | 285 public boolean cancel(boolean mayInterruptIfRunning) { 286 if (super.cancel(mayInterruptIfRunning)) {
|
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/ |
D | FutureTask.java | 63 public boolean cancel(boolean mayInterruptIfRunning) { in cancel() argument
|
/libcore/ojluni/annotations/mmodule/java/util/concurrent/ |
D | CompletableFuture.annotated.java | 150 public boolean cancel(boolean mayInterruptIfRunning) { throw new RuntimeException("Stub!"); } in cancel() argument
|