Home
last modified time | relevance | path

Searched refs:isCancelled (Results 1 – 25 of 169) 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()
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.kt17 assertFalse(res.isCancelled) // was not cancelled in <lambda>()
19 assertFalse(res.isCancelled) // still was not cancelled in <lambda>()
32 assertTrue(res.isCancelled) in <lambda>()
47 assertFalse(resA.isCancelled) // it is in buffer, not cancelled in <lambda>()
48 assertTrue(resB.isCancelled) // send was cancelled in <lambda>()
50 assertTrue(resA.isCancelled) // now cancelled in buffer in <lambda>()
59 assertFalse(resA.isCancelled) in <lambda>()
60 assertFalse(resB.isCancelled) in <lambda>()
62 assertTrue(resA.isCancelled) // it was conflated (lost) and thus cancelled in <lambda>()
63 assertFalse(resB.isCancelled) in <lambda>()
[all …]
/external/llvm-project/clang-tools-extra/clangd/unittests/support/
DCancellationTests.cpp18 EXPECT_FALSE(isCancelled()); in TEST()
20 EXPECT_TRUE(isCancelled()); in TEST()
28 EXPECT_FALSE(isCancelled()); in TEST()
30 EXPECT_TRUE(isCancelled()); in TEST()
32 EXPECT_TRUE(isCancelled()); in TEST()
39 EXPECT_FALSE(isCancelled()); in TEST()
41 EXPECT_TRUE(isCancelled()); in TEST()
63 EXPECT_EQ(NestedTasks::InnerReason, isCancelled(CancelInner.Inner.first)); in TEST()
64 EXPECT_FALSE(isCancelled(CancelInner.Outer.first)); in TEST()
68 EXPECT_EQ(NestedTasks::OuterReason, isCancelled(CancelOuter.Inner.first)); in TEST()
[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 …]
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()
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 …]
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 …]
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()
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 …]
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.kt218 assertTrue(future.isCancelled) in <lambda>()
219 assertTrue(deferred.isCancelled) in <lambda>()
240 assertTrue(future.isCancelled) in <lambda>()
241 assertTrue(deferred.isCancelled) in <lambda>()
262 assertTrue(future.isCancelled) in <lambda>()
263 assertTrue(deferred.isCancelled) in <lambda>()
264 assertTrue(asListenableFuture.isCancelled) in <lambda>()
286 assertTrue(future.isCancelled) in <lambda>()
287 assertTrue(asListenableFuture.isCancelled) in <lambda>()
288 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/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/
DAsyncJvmTest.kt31 check(d.isActive && !d.isCompleted && !d.isCancelled) in <lambda>()
33 check(!d.isActive && !d.isCompleted && d.isCancelled) in <lambda>()
34 check(!d.isActive && !d.isCompleted && d.isCancelled) in <lambda>()
43 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()
234 if (related != null & isCancelled()) { in maybePropagateCancellationTo()
242 if (isCancelled()) { in toString()
335 boolean isCancelled() { in isCancelled() method
350 boolean isCancelled() { in isCancelled() method in AbstractFuture.State
391 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()
/external/guava/android/guava-testlib/src/com/google/common/util/concurrent/testing/
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/guava-testlib/src/com/google/common/util/concurrent/testing/
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/connectedappssdk/tests/robotests/src/test/java/com/google/android/enterprise/connectedapps/
DTestScheduledExecutorService.java119 private boolean isCancelled = false; field in SimpleScheduledFuture
129 if (isDone || isCancelled()) { in complete()
149 isCancelled = true; in cancel()
154 public boolean isCancelled() { in isCancelled() method in SimpleScheduledFuture
155 return isCancelled; in isCancelled()
/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