/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/ |
D | Exceptions.kt | 15 public actual typealias CancellationException = java.util.concurrent.CancellationException typealias 21 public actual fun CancellationException(message: String?, cause: Throwable?) : CancellationExceptio… in CancellationException() method 22 CancellationException(message).apply { initCause(cause) } in CancellationException() 33 ) : CancellationException(message), CopyableThrowable<JobCancellationException> {
|
/external/kotlinx.coroutines/integration/kotlinx-coroutines-guava/test/ |
D | ListenableFutureTest.kt | 12 import java.util.concurrent.CancellationException in <lambda>() 189 } catch (e: CancellationException) { in <lambda>() 220 assertFailsWith<CancellationException> { future.get() } in <lambda>() 242 assertFailsWith<CancellationException> { future.get() } in <lambda>() 265 assertFailsWith<CancellationException> { future.get() } in <lambda>() 285 assertFailsWith<CancellationException> { asListenableFuture.get() } in <lambda>() 289 assertFailsWith<CancellationException> { future.get() } in <lambda>() 308 assertFailsWith<CancellationException> { asListenableFuture.get() } in <lambda>() 314 assertFailsWith<CancellationException> { future.get() } in <lambda>() 322 assertFailsWith<CancellationException> { future.get() } in <lambda>() [all …]
|
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/ |
D | Exceptions.common.kt | 15 public expect open class CancellationException(message: String?) : IllegalStateException class 18 public expect fun CancellationException(message: String?, cause: Throwable?) : CancellationException in CancellationException() method 24 ) : CancellationException { in CancellationException()
|
D | Job.kt | 174 public fun getCancellationException(): CancellationException in getCancellationException() 192 public fun cancel(cause: CancellationException? = null) in getCancellationException() 459 public fun getChildJobCancellationCause(): CancellationException in parentCancelled() 519 public fun Job.cancelChildren(cause: CancellationException? = null) { in cancelChildren() 562 public fun CoroutineContext.cancel(cause: CancellationException? = null) { in cancel() 610 ….cancel(message: String, cause: Throwable? = null): Unit = cancel(CancellationException(message, c… in cancel() 627 public fun CoroutineContext.cancelChildren(cause: CancellationException? = null) { in cancelChildren()
|
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/exceptions/ |
D | ProduceExceptionsTest.kt | 80 } catch (e: CancellationException) { in <lambda>() 90 } catch (e: CancellationException) { in <lambda>() 129 } catch (e: CancellationException) { in <lambda>() 139 } catch (e: CancellationException) { in <lambda>() 153 } catch (e: CancellationException) { // Not a TestException2 in <lambda>() 163 } catch (e: CancellationException) { in <lambda>()
|
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/ |
D | CancellableContinuationHandlersTest.kt | 52 assertTrue(it is CancellationException) in <lambda>() 57 } catch (e: CancellationException) { in <lambda>() 77 } catch (e: CancellationException) { in <lambda>() 87 assertFailsWith<CancellationException> { in <lambda>() 92 assertTrue(it is CancellationException) in <lambda>() 157 } catch (e: CancellationException) { in <lambda>()
|
D | WithContextTest.kt | 95 } catch (e: CancellationException) { in <lambda>() 102 } catch (e: CancellationException) { in <lambda>() 110 expected = { it is CancellationException } in testCancelWithJobWithSuspend() 126 } catch (e: CancellationException) { in <lambda>() 137 expected = { it is CancellationException } in testRunCancellableDefault() 247 assertTrue(e is CancellationException, "Caught $e") in <lambda>() 335 } catch (e: CancellationException) { in <lambda>() 343 expected = { it is CancellationException } in testWithContextCancelledThisJob()
|
D | WithTimeoutTest.kt | 74 expected = { it is CancellationException } in testYieldBlockingWithTimeout() 120 } catch (e: CancellationException) { in <lambda>() 128 expected = { it is CancellationException } in testSuppressExceptionWithResult() 135 } catch (e: CancellationException) { in <lambda>() 151 } catch (e: CancellationException) { in <lambda>()
|
D | WithTimeoutDurationTest.kt | 75 expected = { it is CancellationException } in testYieldBlockingWithTimeout() 127 } catch (e: CancellationException) { in equals() 135 expected = { it is CancellationException } in testSuppressExceptionWithResult() 142 } catch (e: CancellationException) { in <lambda>() 158 } catch (e: CancellationException) { in <lambda>()
|
D | DelayTest.kt | 15 fun testCancellation() = runTest(expected = {it is CancellationException }) { in testCancellation() 20 fun testMaxLongValue()= runTest(expected = {it is CancellationException }) { in <lambda>() 25 fun testMaxIntValue()= runTest(expected = {it is CancellationException }) { in <lambda>()
|
D | CancellableResumeTest.kt | 76 expected = { it is CancellationException } in <lambda>() 95 expected = { it is CancellationException }, in <lambda>() 152 } catch (e: CancellationException) { in <lambda>() 187 } catch (e: CancellationException) { in <lambda>() 220 } catch (e: CancellationException) { in <lambda>() 261 } catch (e: CancellationException) { in <lambda>()
|
D | CompletableDeferredTest.kt | 60 assertThrows<CancellationException> { c.getCompleted() } in checkCancel() 61 assertTrue(c.getCompletionExceptionOrNull() is CancellationException) in checkCancel() 113 assertThrows<CancellationException> { c.getCompleted() } in testParentCancelsChild() 114 assertTrue(c.getCompletionExceptionOrNull() is CancellationException) in testParentCancelsChild() 186 } catch (e: CancellationException) { in <lambda>()
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
D | AbstractFutureBenchmarks.java | 22 import java.util.concurrent.CancellationException; 301 throws TimeoutException, CancellationException, ExecutionException, InterruptedException { in get() 316 V get() throws CancellationException, ExecutionException, InterruptedException { in get() 328 private V getValue() throws CancellationException, ExecutionException { in getValue() 396 ? new CancellationException("Future.cancel() was called.") in complete() 408 static final CancellationException cancellationExceptionWithCause( in cancellationExceptionWithCause() 410 CancellationException exception = new CancellationException(message); in cancellationExceptionWithCause()
|
D | FuturesTransformAsyncTest.java | 25 import java.util.concurrent.CancellationException; 88 } catch (CancellationException expected) { in testFutureGetThrowsCancellationIfInputCancelled() 100 } catch (CancellationException expected) { in testFutureGetThrowsCancellationIfOutputCancelled() 117 } catch (CancellationException expected) { in testFutureCancelBeforeInputCompletion() 130 } catch (CancellationException expected) { in testFutureCancellableBeforeOutputCompletion() 152 } catch (CancellationException expected) { in testFutureCancellableBeforeFunctionCompletion() 161 } catch (CancellationException expected) { in testFutureCancellableBeforeFunctionCompletion()
|
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/ |
D | AbstractFutureBenchmarks.java | 22 import java.util.concurrent.CancellationException; 301 throws TimeoutException, CancellationException, ExecutionException, InterruptedException { in get() 316 V get() throws CancellationException, ExecutionException, InterruptedException { in get() 328 private V getValue() throws CancellationException, ExecutionException { in getValue() 396 ? new CancellationException("Future.cancel() was called.") in complete() 408 static final CancellationException cancellationExceptionWithCause( in cancellationExceptionWithCause() 410 CancellationException exception = new CancellationException(message); in cancellationExceptionWithCause()
|
D | FuturesTransformAsyncTest.java | 25 import java.util.concurrent.CancellationException; 88 } catch (CancellationException expected) { in testFutureGetThrowsCancellationIfInputCancelled() 100 } catch (CancellationException expected) { in testFutureGetThrowsCancellationIfOutputCancelled() 117 } catch (CancellationException expected) { in testFutureCancelBeforeInputCompletion() 130 } catch (CancellationException expected) { in testFutureCancellableBeforeOutputCompletion() 152 } catch (CancellationException expected) { in testFutureCancellableBeforeFunctionCompletion() 161 } catch (CancellationException expected) { in testFutureCancellableBeforeFunctionCompletion()
|
D | AbstractFutureCancellationCauseTest.java | 25 import java.util.concurrent.CancellationException; 94 } catch (CancellationException e) { in testCancel_notDoneNoInterrupt() 108 } catch (CancellationException e) { in testCancel_notDoneInterrupt() 156 } catch (CancellationException expected) { in testSetFuture_misbehavingFutureDoesNotThrow()
|
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/flow/operators/ |
D | FlatMapMergeTest.kt | 65 } catch (e: CancellationException) { in <lambda>() 79 throw CancellationException("") in <lambda>() 83 assertFailsWith<CancellationException>(flow) in <lambda>() 94 throw CancellationException("") in <lambda>() 103 assertFailsWith<CancellationException>(flow) in <lambda>()
|
D | FlatMapMergeFastPathTest.kt | 49 throw CancellationException("") in <lambda>() 53 assertFailsWith<CancellationException>(flow) in <lambda>() 64 throw CancellationException("") in <lambda>() 73 assertFailsWith<CancellationException>(flow) in <lambda>()
|
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/flow/internal/ |
D | FlowScopeTest.kt | 14 assertFailsWith<CancellationException> { in testCancellation() 48 assertFailsWith<CancellationException> { in <lambda>() 67 assertFailsWith<CancellationException> { in <lambda>() 71 throw CancellationException(null) in <lambda>()
|
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/ |
D | ReusableCancellableContinuationTest.kt | 57 } catch (e: CancellationException) { in <lambda>() 63 fun testNotCancelledOnClaimedResume() = runTest({ it is CancellationException }) { in <lambda>() 85 } catch (e: CancellationException) { 131 } catch (e: CancellationException) { in testDetachedOnCancel() 138 fun testPropagatedCancel() = runTest({it is CancellationException}) { in <lambda>() 165 } catch (e: CancellationException) { 172 } catch (e: CancellationException) {
|
D | RejectedExecutionTest.kt | 52 assertFailsWith<CancellationException> { in <lambda>() 65 assertFailsWith<CancellationException> { in <lambda>() 96 assertFailsWith<CancellationException> { in <lambda>() 118 assertFailsWith<CancellationException> { in <lambda>()
|
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-rx2/test/ |
D | ObservableTest.kt | 10 import kotlinx.coroutines.CancellationException in <lambda>() 90 } catch (e: CancellationException) { in <lambda>() 127 } catch (e: CancellationException) { in <lambda>() 145 assertFalse(e is CancellationException) in <lambda>() 149 require(it !is CancellationException) in <lambda>()
|
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-rx3/test/ |
D | ObservableTest.kt | 10 import kotlinx.coroutines.CancellationException in <lambda>() 90 } catch (e: CancellationException) { in <lambda>() 127 } catch (e: CancellationException) { in <lambda>() 145 assertFalse(e is CancellationException) in <lambda>() 149 require(it !is CancellationException) in <lambda>()
|
/external/robolectric-shadows/utils/src/main/java/org/robolectric/util/ |
D | SimpleFuture.java | 4 import java.util.concurrent.CancellationException; 39 throw new CancellationException(); in get() 48 throw new CancellationException(); in get()
|