Home
last modified time | relevance | path

Searched refs:CancellationException (Results 1 – 18 of 18) sorted by relevance

/libcore/luni/src/main/java/java/util/concurrent/
DCancellationException.java17 public class CancellationException extends IllegalStateException { class
23 public CancellationException() {} in CancellationException() method in CancellationException
31 public CancellationException(String message) { in CancellationException() method in CancellationException
DAbstractExecutorService.java219 catch (CancellationException ignore) {} in invokeAll()
257 catch (CancellationException ignore) {} in invokeAll()
DForkJoinTask.java638 throw new CancellationException(); in reportException()
892 (s == CANCELLED) ? new CancellationException() : in getException()
966 throw new CancellationException(); in get()
1024 throw new CancellationException(); in get()
DFutureTask.java93 throw new CancellationException(); in report()
DCompletableFuture.java325 if (x instanceof CancellationException) in reportGet()
326 throw (CancellationException)x; in reportGet()
344 if (x instanceof CancellationException) in reportJoin()
345 throw (CancellationException)x; in reportJoin()
2262 internalComplete(new AltResult(new CancellationException())); in cancel()
2277 (((AltResult)r).ex instanceof CancellationException); in isCancelled()
/libcore/jsr166-tests/src/test/java/jsr166/
DFutureTaskTest.java19 import java.util.concurrent.CancellationException;
56 } catch (CancellationException t) { in checkIsDone()
57 exInfo = CancellationException.class; in checkIsDone()
71 } catch (CancellationException t) { in checkIsDone()
72 assertSame(exInfo, CancellationException.class); in checkIsDone()
129 } catch (CancellationException success) { in checkCancelled()
135 } catch (CancellationException success) { in checkCancelled()
648 Thread t1 = new ThreadShouldThrow(CancellationException.class) { in testTimedGet_Cancellation()
653 Thread t2 = new ThreadShouldThrow(CancellationException.class) { in testTimedGet_Cancellation()
DForkJoinPool8Test.java13 import java.util.concurrent.CancellationException;
127 assertTrue(a.getException() instanceof CancellationException); in checkCancelled()
133 } catch (CancellationException success) { in checkCancelled()
139 } catch (CancellationException success) { in checkCancelled()
145 } catch (CancellationException success) { in checkCancelled()
295 } catch (CancellationException success) { in testJoinIgnoresInterrupts()
522 } catch (CancellationException success) { in testCancelledInvoke()
541 } catch (CancellationException success) { in testCancelledForkJoin()
560 } catch (CancellationException success) { in testCancelledForkGet()
579 } catch (CancellationException success) { in testCancelledForkTimedGet()
[all …]
DRecursiveActionTest.java13 import java.util.concurrent.CancellationException;
116 assertTrue(a.getException() instanceof CancellationException); in checkCancelled()
122 } catch (CancellationException success) { in checkCancelled()
128 } catch (CancellationException success) { in checkCancelled()
134 } catch (CancellationException success) { in checkCancelled()
284 } catch (CancellationException success) { in testJoinIgnoresInterrupts()
384 } catch (CancellationException success) { in testJoinIgnoresInterruptsOutsideForkJoinPool()
633 } catch (CancellationException success) { in testCancelledInvoke()
652 } catch (CancellationException success) { in testCancelledForkJoin()
671 } catch (CancellationException success) { in testCancelledForkGet()
[all …]
DForkJoinTaskTest.java16 import java.util.concurrent.CancellationException;
135 assertTrue(a.getException() instanceof CancellationException);
144 } catch (CancellationException success) {
157 } catch (CancellationException success) {
163 } catch (CancellationException success) {
628 } catch (CancellationException success) {
647 } catch (CancellationException success) {
666 } catch (CancellationException success) {
685 } catch (CancellationException success) {
1376 } catch (CancellationException success) {
[all …]
DRecursiveTaskTest.java12 import java.util.concurrent.CancellationException;
133 assertTrue(a.getException() instanceof CancellationException); in checkCancelled()
139 } catch (CancellationException success) { in checkCancelled()
145 } catch (CancellationException success) { in checkCancelled()
151 } catch (CancellationException success) { in checkCancelled()
466 } catch (CancellationException success) { in testCancelledInvoke()
486 } catch (CancellationException success) { in testCancelledForkJoin()
506 } catch (CancellationException success) { in testCancelledForkGet()
526 } catch (CancellationException success) { in testCancelledForkTimedGet()
DCountedCompleterTest.java13 import java.util.concurrent.CancellationException;
129 assertTrue(a.getException() instanceof CancellationException);
138 } catch (CancellationException success) {
151 } catch (CancellationException success) {
157 } catch (CancellationException success) {
863 } catch (CancellationException success) { in testCancelledInvoke()
882 } catch (CancellationException success) { in testCancelledForkJoin()
901 } catch (CancellationException success) { in testCancelledForkGet()
920 } catch (CancellationException success) { in testCancelledForkTimedGet()
1585 } catch (CancellationException success) { in testCancelledInvokeSingleton()
[all …]
DThreadPoolExecutorSubclassTest.java19 import java.util.concurrent.CancellationException;
125 throw new CancellationException(); in get()
143 throw new CancellationException(); in get()
1908 } catch (CancellationException retryWithLongerTimeout) {
2029 } catch (CancellationException success) {}
2033 } catch (CancellationException success) {}
DAbstractExecutorServiceTest.java21 import java.util.concurrent.CancellationException;
600 } catch (CancellationException retryWithLongerTimeout) {
DThreadPoolExecutorTest.java20 import java.util.concurrent.CancellationException;
1915 } catch (CancellationException retryWithLongerTimeout) {
2065 } catch (CancellationException success) {}
2069 } catch (CancellationException success) {}
DCompletableFutureTest.java27 import java.util.concurrent.CancellationException;
160 (t) -> assertTrue(t instanceof CancellationException)); in checkCompletedWithWrappedCancellationException()
182 } catch (CancellationException success) { in checkCancelled()
189 } catch (CancellationException success) {} in checkCancelled()
193 } catch (CancellationException success) {} in checkCancelled()
197 } catch (CancellationException success) { in checkCancelled()
200 assertTrue(exceptionalCompletion(f) instanceof CancellationException); in checkCancelled()
981 threadAssertTrue(t instanceof CancellationException); in testWhenComplete_sourceCancelled()
1130 threadAssertTrue(t instanceof CancellationException); in testHandle_sourceCancelled()
DScheduledExecutorSubclassTest.java18 import java.util.concurrent.CancellationException;
1281 } catch (CancellationException retryWithLongerTimeout) {
DScheduledExecutorTest.java20 import java.util.concurrent.CancellationException;
1231 } catch (CancellationException retryWithLongerTimeout) {
/libcore/
Dnon_openjdk_java_files.mk91 luni/src/main/java/java/util/concurrent/CancellationException.java \