Home
last modified time | relevance | path

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

123456789

/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/
DJobStatesTest.kt31 assertFalse(job.isCancelled) in <lambda>()
37 assertFalse(job.isCancelled) in <lambda>()
44 assertFalse(job.isCancelled) in <lambda>()
51 assertFalse(job.isCancelled) in <lambda>()
72 assertFalse(job.isCancelled) in <lambda>()
77 assertFalse(job.isCancelled) in <lambda>()
83 assertFalse(job.isCancelled) in <lambda>()
89 assertTrue(job.isCancelled) in <lambda>()
109 assertFalse(job.isCancelled) in <lambda>()
114 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()
109 assertEquals(true, parent.isCancelled) in testParentCancelsChild()
111 assertEquals(true, c.isCancelled) in testParentCancelsChild()
137 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/kotlinx.coroutines/kotlinx-coroutines-core/common/test/channels/
DChannelUndeliveredElementTest.kt22 assertFalse(res.isCancelled) // was not cancelled in <lambda>()
24 assertFalse(res.isCancelled) // still was not cancelled in <lambda>()
38 assertTrue(res.isCancelled) in <lambda>()
53 assertFalse(resA.isCancelled) // it is in buffer, not cancelled in <lambda>()
54 assertTrue(resB.isCancelled) // send was cancelled in <lambda>()
56 assertTrue(resA.isCancelled) // now cancelled in buffer in <lambda>()
66 assertFalse(resA.isCancelled) // it is in buffer, not cancelled in <lambda>()
67 assertFalse(resB.isCancelled) // it is in buffer, not cancelled in <lambda>()
69 assertTrue(resA.isCancelled) // now cancelled in buffer in <lambda>()
70 assertTrue(resB.isCancelled) // now cancelled in buffer in <lambda>()
[all …]
/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/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/kotlinx.coroutines/integration/kotlinx-coroutines-guava/test/
DListenableFutureTest.kt220 assertTrue(future.isCancelled) in <lambda>()
221 assertTrue(deferred.isCancelled) in <lambda>()
242 assertTrue(future.isCancelled) in <lambda>()
243 assertTrue(deferred.isCancelled) in <lambda>()
264 assertTrue(future.isCancelled) in <lambda>()
265 assertTrue(deferred.isCancelled) in <lambda>()
266 assertTrue(asListenableFuture.isCancelled) in <lambda>()
288 assertTrue(future.isCancelled) in testAsListenableFutureCancellationPropagatingToDeferredNoInterruption()
289 assertTrue(asListenableFuture.isCancelled) in testAsListenableFutureCancellationPropagatingToDeferredNoInterruption()
290 assertTrue(deferred.isCancelled) in testAsListenableFutureCancellationPropagatingToDeferredNoInterruption()
[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-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/
DAbstractFuture.java70 public final boolean isCancelled() { in isCancelled() method in AbstractFuture.TrustedFuture
71 return super.isCancelled(); in isCancelled()
120 public boolean isCancelled() { in isCancelled() method in AbstractFuture
121 return state.isCancelled(); in isCancelled()
192 if (isCancelled()) { in setFuture()
237 if (related != null & isCancelled()) { in maybePropagateCancellationTo()
245 if (isCancelled()) { in toString()
338 boolean isCancelled() { in isCancelled() method
353 boolean isCancelled() { in isCancelled() method in AbstractFuture.State
394 if (isCancelled()) { in run()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/
DAsyncJvmTest.kt34 check(d.isActive && !d.isCompleted && !d.isCancelled) in <lambda>()
36 check(!d.isActive && !d.isCompleted && d.isCancelled) in <lambda>()
37 check(!d.isActive && !d.isCompleted && d.isCancelled) in <lambda>()
46 check(!d.isActive && d.isCompleted && d.isCancelled) in <lambda>()
/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/guava/guava-testlib/src/com/google/common/util/concurrent/testing/
DAbstractListenableFutureTest.java72 assertFalse(future.isCancelled()); in testGetBlocksUntilValueAvailable()
100 assertFalse(future.isCancelled()); in testGetBlocksUntilValueAvailable()
124 assertFalse(future.isCancelled()); in testCanceledFutureThrowsCancellation()
142 assertFalse(future.isCancelled()); in testCanceledFutureThrowsCancellation()
147 assertTrue(future.isCancelled()); in testCanceledFutureThrowsCancellation()
176 assertTrue(future.isCancelled()); in testListenersNotifiedOnError()
/external/guava/android/guava-testlib/src/com/google/common/util/concurrent/testing/
DAbstractListenableFutureTest.java72 assertFalse(future.isCancelled()); in testGetBlocksUntilValueAvailable()
100 assertFalse(future.isCancelled()); in testGetBlocksUntilValueAvailable()
124 assertFalse(future.isCancelled()); in testCanceledFutureThrowsCancellation()
142 assertFalse(future.isCancelled()); in testCanceledFutureThrowsCancellation()
147 assertTrue(future.isCancelled()); in testCanceledFutureThrowsCancellation()
176 assertTrue(future.isCancelled()); in testListenersNotifiedOnError()
/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()
/external/connectedappssdk/tests/robotests/src/test/java/com/google/android/enterprise/connectedapps/
DTestScheduledExecutorService.java129 private boolean isCancelled = false; field in SimpleScheduledFuture
139 if (isDone || isCancelled()) { in complete()
159 isCancelled = true; in cancel()
164 public boolean isCancelled() { in isCancelled() method in SimpleScheduledFuture
165 return isCancelled; in isCancelled()

123456789