Home
last modified time | relevance | path

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

/libcore/luni/src/main/java/java/util/concurrent/
DFuture.java90 boolean cancel(boolean mayInterruptIfRunning); in cancel() argument
DFutureTask.java135 public boolean cancel(boolean mayInterruptIfRunning) { in cancel() argument
138 mayInterruptIfRunning ? INTERRUPTING : CANCELLED))) in cancel()
141 if (mayInterruptIfRunning) { in cancel()
DScheduledThreadPoolExecutor.java250 public boolean cancel(boolean mayInterruptIfRunning) { in cancel() argument
251 boolean cancelled = super.cancel(mayInterruptIfRunning); in cancel()
DForkJoinTask.java846 public boolean cancel(boolean mayInterruptIfRunning) { in cancel() argument
/libcore/jsr166-tests/src/test/java/jsr166/
DFutureTaskTest.java124 for (boolean mayInterruptIfRunning : new boolean[] { true, false }) { in tryToConfuseDoneTask()
268 for (boolean mayInterruptIfRunning : new boolean[] { true, false }) { in testRunAndResetAfterCancel()
270 assertTrue(task.cancel(mayInterruptIfRunning)); in testRunAndResetAfterCancel()
612 public void testTimedGet_Cancellation(final boolean mayInterruptIfRunning) { in testTimedGet_Cancellation() argument
619 if (mayInterruptIfRunning) { in testTimedGet_Cancellation()
645 task.cancel(mayInterruptIfRunning); in testTimedGet_Cancellation()
DScheduledExecutorSubclassTest.java30 public boolean cancel(boolean mayInterruptIfRunning) { in cancel() argument
31 return task.cancel(mayInterruptIfRunning); in cancel()