Home
last modified time | relevance | path

Searched refs:isCancelled (Results 1 – 25 of 158) sorted by relevance

1234567

/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/
DJobStatesTest.kt30 assertFalse(job.isCancelled) in <lambda>()
35 assertFalse(job.isCancelled) in <lambda>()
41 assertFalse(job.isCancelled) in <lambda>()
47 assertFalse(job.isCancelled) in <lambda>()
67 assertFalse(job.isCancelled) in <lambda>()
72 assertFalse(job.isCancelled) in <lambda>()
78 assertFalse(job.isCancelled) in <lambda>()
84 assertTrue(job.isCancelled) in <lambda>()
104 assertFalse(job.isCancelled) in <lambda>()
109 assertFalse(job.isCancelled) in <lambda>()
[all …]
DAsyncLazyTest.kt23 assertTrue(!d.isActive && d.isCompleted && !d.isCancelled) in <lambda>()
41 assertTrue(!d.isActive && d.isCompleted && !d.isCancelled) in <lambda>()
70 assertTrue(!d.isActive && d.isCompleted && !d.isCancelled) in <lambda>()
116 assertTrue(!d.isActive && d.isCompleted && d.isCancelled) in <lambda>()
136 assertTrue(!d.isActive && d.isCompleted && !d.isCancelled) // and it finishes in <lambda>()
154 assertTrue(!d.isActive && d.isCompleted && d.isCancelled) in <lambda>()
173 assertTrue(!d.isActive && !d.isCompleted && !d.isCancelled) in <lambda>()
175 assertTrue(d.isActive && !d.isCompleted && !d.isCancelled) in <lambda>()
179 assertTrue(d.isActive && !d.isCompleted && !d.isCancelled) in <lambda>()
181 assertTrue(!d.isActive && d.isCancelled) // cancelling ! in <lambda>()
[all …]
DSupervisorTest.kt33 assertTrue(job1.isCancelled) in <lambda>()
34 assertTrue(job2.isCancelled) in <lambda>()
35 assertFalse(supervisor.isCancelled) in <lambda>()
79 assertFalse(job.isCancelled) in <lambda>()
186 assertTrue(supervisor.isCancelled) in <lambda>()
187 assertFalse(parent.isCancelled) in <lambda>()
195 assertTrue(supervisor.isCancelled) in <lambda>()
196 assertTrue(parent.isCancelled) in <lambda>()
DCompletableDeferredTest.kt41 assertEquals(false, c.isCancelled) in checkFresh()
50 assertEquals(false, c.isCancelled) in checkCompleteOk()
58 assertEquals(true, c.isCancelled) in checkCancel()
75 assertEquals(true, c.isCancelled) in checkCancelWithException()
89 assertEquals(true, parent.isCancelled) in testParentCancelsChild()
91 assertEquals(true, c.isCancelled) in testParentCancelsChild()
117 assertEquals(true, parent.isCancelled) in testParentCancelledOnChildException()
DNonCancellableTest.kt28 assertTrue(job.isCancelled) in <lambda>()
61 assertTrue(deferred.isCancelled) in <lambda>()
93 assertTrue(job.isCancelled) in <lambda>()
123 assertTrue(job.isCancelled) in <lambda>()
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/
DFuturesTransformAsyncTest.java111 assertTrue(resultFuture.isCancelled()); in testFutureCancelBeforeInputCompletion()
112 assertTrue(inputFuture.isCancelled()); in testFutureCancelBeforeInputCompletion()
113 assertFalse(outputFuture.isCancelled()); in testFutureCancelBeforeInputCompletion()
124 assertTrue(resultFuture.isCancelled()); in testFutureCancellableBeforeOutputCompletion()
125 assertFalse(inputFuture.isCancelled()); in testFutureCancellableBeforeOutputCompletion()
126 assertTrue(outputFuture.isCancelled()); in testFutureCancellableBeforeOutputCompletion()
146 assertTrue(resultFuture.isCancelled()); in testFutureCancellableBeforeFunctionCompletion()
147 assertFalse(inputFuture.isCancelled()); in testFutureCancellableBeforeFunctionCompletion()
148 assertFalse(outputFuture.isCancelled()); in testFutureCancellableBeforeFunctionCompletion()
168 assertFalse(resultFuture.isCancelled()); in testFutureCancelAfterCompletion()
[all …]
DSettableFutureTest.java84 assertFalse(future.isCancelled()); in testCreate()
96 assertFalse(future.isCancelled()); in testSetValue_simpleThreaded()
110 assertFalse(future.isCancelled()); in testSetException()
129 assertFalse(future.isCancelled()); in testSetFuture()
138 assertFalse(future.isCancelled()); in testSetFuture()
156 assertFalse(future.isCancelled()); in testSetFuture_genericsHierarchy()
166 assertFalse(future.isCancelled()); in testSetFuture_genericsHierarchy()
175 assertTrue(async.isCancelled()); in testCancel_innerCancelsAsync()
189 assertTrue(inner.isCancelled()); in testCancel_resultCancelsInner_interrupted()
204 assertTrue(inner.isCancelled()); in testCancel_resultCancelsInner()
[all …]
DListenableFutureTaskTest.java88 assertFalse(task.isCancelled()); in testListenerDoesNotRunUntilTaskCompletes()
97 assertFalse(task.isCancelled()); in testListenerDoesNotRunUntilTaskCompletes()
105 assertFalse(task.isCancelled()); in testListenerDoesNotRunUntilTaskCompletes()
125 assertFalse(task.isCancelled()); in testListenerCalledOnException()
131 assertTrue(task.isCancelled()); in testListenerCalledOnCancelFromNotRunning()
137 assertTrue(task.isCancelled()); in testListenerCalledOnCancelFromNotRunning()
150 assertTrue(task.isCancelled()); in testListenerCalledOnCancelFromRunning()
156 assertTrue(task.isCancelled()); in testListenerCalledOnCancelFromRunning()
DListenableFutureTester.java63 assertFalse(future.isCancelled()); in setUp()
73 assertFalse(future.isCancelled()); in testCompletedFuture()
77 assertFalse(future.isCancelled()); in testCompletedFuture()
84 assertTrue(future.isCancelled()); in testCancelledFuture()
88 assertTrue(future.isCancelled()); in testCancelledFuture()
99 assertFalse(future.isCancelled()); in testFailedFuture()
103 assertFalse(future.isCancelled()); in testFailedFuture()
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DFuturesTransformAsyncTest.java111 assertTrue(resultFuture.isCancelled()); in testFutureCancelBeforeInputCompletion()
112 assertTrue(inputFuture.isCancelled()); in testFutureCancelBeforeInputCompletion()
113 assertFalse(outputFuture.isCancelled()); in testFutureCancelBeforeInputCompletion()
124 assertTrue(resultFuture.isCancelled()); in testFutureCancellableBeforeOutputCompletion()
125 assertFalse(inputFuture.isCancelled()); in testFutureCancellableBeforeOutputCompletion()
126 assertTrue(outputFuture.isCancelled()); in testFutureCancellableBeforeOutputCompletion()
146 assertTrue(resultFuture.isCancelled()); in testFutureCancellableBeforeFunctionCompletion()
147 assertFalse(inputFuture.isCancelled()); in testFutureCancellableBeforeFunctionCompletion()
148 assertFalse(outputFuture.isCancelled()); in testFutureCancellableBeforeFunctionCompletion()
168 assertFalse(resultFuture.isCancelled()); in testFutureCancelAfterCompletion()
[all …]
DSettableFutureTest.java84 assertFalse(future.isCancelled()); in testCreate()
96 assertFalse(future.isCancelled()); in testSetValue_simpleThreaded()
110 assertFalse(future.isCancelled()); in testSetException()
129 assertFalse(future.isCancelled()); in testSetFuture()
138 assertFalse(future.isCancelled()); in testSetFuture()
156 assertFalse(future.isCancelled()); in testSetFuture_genericsHierarchy()
166 assertFalse(future.isCancelled()); in testSetFuture_genericsHierarchy()
175 assertTrue(async.isCancelled()); in testCancel_innerCancelsAsync()
189 assertTrue(inner.isCancelled()); in testCancel_resultCancelsInner_interrupted()
204 assertTrue(inner.isCancelled()); in testCancel_resultCancelsInner()
[all …]
DListenableFutureTaskTest.java88 assertFalse(task.isCancelled()); in testListenerDoesNotRunUntilTaskCompletes()
97 assertFalse(task.isCancelled()); in testListenerDoesNotRunUntilTaskCompletes()
105 assertFalse(task.isCancelled()); in testListenerDoesNotRunUntilTaskCompletes()
125 assertFalse(task.isCancelled()); in testListenerCalledOnException()
131 assertTrue(task.isCancelled()); in testListenerCalledOnCancelFromNotRunning()
137 assertTrue(task.isCancelled()); in testListenerCalledOnCancelFromNotRunning()
150 assertTrue(task.isCancelled()); in testListenerCalledOnCancelFromRunning()
156 assertTrue(task.isCancelled()); in testListenerCalledOnCancelFromRunning()
DListenableFutureTester.java63 assertFalse(future.isCancelled()); in setUp()
73 assertFalse(future.isCancelled()); in testCompletedFuture()
77 assertFalse(future.isCancelled()); in testCompletedFuture()
84 assertTrue(future.isCancelled()); in testCancelledFuture()
88 assertTrue(future.isCancelled()); in testCancelledFuture()
99 assertFalse(future.isCancelled()); in testFailedFuture()
103 assertFalse(future.isCancelled()); in testFailedFuture()
/external/kotlinx.coroutines/integration/kotlinx-coroutines-guava/test/
DListenableFutureTest.kt219 assertTrue(future.isCancelled) in <lambda>()
220 assertTrue(deferred.isCancelled) in <lambda>()
241 assertTrue(future.isCancelled) in <lambda>()
242 assertTrue(deferred.isCancelled) in <lambda>()
263 assertTrue(future.isCancelled) in <lambda>()
264 assertTrue(deferred.isCancelled) in <lambda>()
265 assertTrue(asListenableFuture.isCancelled) in <lambda>()
287 assertTrue(future.isCancelled) in <lambda>()
288 assertTrue(asListenableFuture.isCancelled) in <lambda>()
289 assertTrue(deferred.isCancelled) in <lambda>()
[all …]
/external/glide/library/src/main/java/com/bumptech/glide/request/
DRequestFutureTarget.java50 private boolean isCancelled; field in RequestFutureTarget
75 if (isCancelled) { in cancel()
81 isCancelled = true; in cancel()
92 public synchronized boolean isCancelled() { in isCancelled() method in RequestFutureTarget
93 return isCancelled; in isCancelled()
101 return isCancelled || resultReceived; in isDone()
191 if (isCancelled) { in doGet()
209 } else if (isCancelled) { in doGet()
/external/grpc-grpc-java/context/src/test/java/io/grpc/
DContextTest.java143 assertFalse(Context.ROOT.isCancelled()); in rootIsNotCancelled()
267 assertTrue(base.isCancelled()); in cancelReturnsFalseIfAlreadyCancelled()
370 assertFalse(base.isCancelled()); in cascadingCancellationNotifiesChild()
371 assertFalse(child.isCancelled()); in cascadingCancellationNotifiesChild()
374 assertTrue(base.isCancelled()); in cascadingCancellationNotifiesChild()
377 assertTrue(child.isCancelled()); in cascadingCancellationNotifiesChild()
389 assertTrue(child.isCancelled()); in cascadingCancellationWithoutListener()
404 assertFalse(attached.isCancelled()); in cancellableContextIsAttached()
413 assertTrue(attached.isCancelled()); in cancellableContextIsAttached()
426 assertFalse(base.isCancelled()); in cancellableContextCascadesFromCancellableParent()
[all …]
/external/guava/guava-testlib/src/com/google/common/util/concurrent/testing/
DAbstractCheckedFutureTest.java65 assertFalse(future.isCancelled()); in testCheckedGetThrowsApplicationExceptionOnCancellation()
84 assertTrue(future.isCancelled()); in testCheckedGetThrowsApplicationExceptionOnCancellation()
95 assertFalse(future.isCancelled()); in testCheckedGetThrowsApplicationExceptionOnInterruption()
123 assertFalse(future.isCancelled()); in testCheckedGetThrowsApplicationExceptionOnInterruption()
131 assertFalse(future.isCancelled()); in testCheckedGetThrowsApplicationExceptionOnError()
150 assertFalse(future.isCancelled()); in testCheckedGetThrowsApplicationExceptionOnError()
DAbstractListenableFutureTest.java69 assertFalse(future.isCancelled()); in testGetBlocksUntilValueAvailable()
100 assertFalse(future.isCancelled()); in testGetBlocksUntilValueAvailable()
124 assertFalse(future.isCancelled()); in testCanceledFutureThrowsCancellation()
145 assertFalse(future.isCancelled()); in testCanceledFutureThrowsCancellation()
150 assertTrue(future.isCancelled()); in testCanceledFutureThrowsCancellation()
189 assertTrue(future.isCancelled()); in testListenersNotifiedOnError()
/external/guava/android/guava-testlib/src/com/google/common/util/concurrent/testing/
DAbstractCheckedFutureTest.java65 assertFalse(future.isCancelled()); in testCheckedGetThrowsApplicationExceptionOnCancellation()
84 assertTrue(future.isCancelled()); in testCheckedGetThrowsApplicationExceptionOnCancellation()
95 assertFalse(future.isCancelled()); in testCheckedGetThrowsApplicationExceptionOnInterruption()
123 assertFalse(future.isCancelled()); in testCheckedGetThrowsApplicationExceptionOnInterruption()
131 assertFalse(future.isCancelled()); in testCheckedGetThrowsApplicationExceptionOnError()
150 assertFalse(future.isCancelled()); in testCheckedGetThrowsApplicationExceptionOnError()
DAbstractListenableFutureTest.java69 assertFalse(future.isCancelled()); in testGetBlocksUntilValueAvailable()
100 assertFalse(future.isCancelled()); in testGetBlocksUntilValueAvailable()
124 assertFalse(future.isCancelled()); in testCanceledFutureThrowsCancellation()
145 assertFalse(future.isCancelled()); in testCanceledFutureThrowsCancellation()
150 assertTrue(future.isCancelled()); in testCanceledFutureThrowsCancellation()
189 assertTrue(future.isCancelled()); in testListenersNotifiedOnError()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/
DAsyncJvmTest.kt30 check(d.isActive && !d.isCompleted && !d.isCancelled) in <lambda>()
32 check(!d.isActive && !d.isCompleted && d.isCancelled) in <lambda>()
33 check(!d.isActive && !d.isCompleted && d.isCancelled) in <lambda>()
42 check(!d.isActive && d.isCompleted && d.isCancelled) in <lambda>()
/external/guava/guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/
DAbstractFuture.java67 public final boolean isCancelled() { in isCancelled() method in AbstractFuture.TrustedFuture
68 return super.isCancelled(); in isCancelled()
117 public boolean isCancelled() { in isCancelled() method in AbstractFuture
118 return state.isCancelled(); in isCancelled()
189 if (isCancelled()) { in setFuture()
231 if (related != null & isCancelled()) { in maybePropagateCancellationTo()
239 if (isCancelled()) { in toString()
332 boolean isCancelled() { in isCancelled() method
347 boolean isCancelled() { in isCancelled() method in AbstractFuture.State
388 if (isCancelled()) { in run()
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/
DEngineJob.java36 private boolean isCancelled; field in EngineJob
116 if (hasException || hasResource || isCancelled) { in cancel()
124 isCancelled = true; in cancel()
129 boolean isCancelled() { in isCancelled() method in EngineJob
130 return isCancelled; in isCancelled()
140 if (isCancelled) { in handleResultOnMainThread()
171 if (isCancelled) { in handleExceptionOnMainThread()
DEngineRunnable.java35 private volatile boolean isCancelled; field in EngineRunnable
45 isCancelled = true; in cancel()
51 if (isCancelled) { in run()
66 if (isCancelled) { in run()
/external/dagger2/javatests/dagger/functional/producers/cancellation/
DProducerCancellationTest.java51 assertThat(entryPoint1.isCancelled()).isTrue(); in cancellingOneEntryPoint_cancelsAllRunningNodes()
56 assertThat(component.entryPoint2().get().isCancelled()).isTrue(); in cancellingOneEntryPoint_cancelsAllRunningNodes()
57 assertThat(component.entryPoint3().isCancelled()).isTrue(); in cancellingOneEntryPoint_cancelsAllRunningNodes()
112 assertThat(entryPoint.isCancelled()).isTrue(); in cancellingProducerFromComponentDependency_cancelsUnderlyingTask()

1234567