Home
last modified time | relevance | path

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

12

/external/guava/guava-tests/test/com/google/common/util/concurrent/
DFuturesTransformAsyncFunctionTest.java101 assertTrue(resultFuture.isCancelled()); in testFutureCancelBeforeInputCompletion()
102 assertTrue(inputFuture.isCancelled()); in testFutureCancelBeforeInputCompletion()
103 assertFalse(outputFuture.isCancelled()); in testFutureCancelBeforeInputCompletion()
114 assertTrue(resultFuture.isCancelled()); in testFutureCancellableBeforeOutputCompletion()
115 assertFalse(inputFuture.isCancelled()); in testFutureCancellableBeforeOutputCompletion()
116 assertTrue(outputFuture.isCancelled()); in testFutureCancellableBeforeOutputCompletion()
136 assertTrue(resultFuture.isCancelled()); in testFutureCancellableBeforeFunctionCompletion()
137 assertFalse(inputFuture.isCancelled()); in testFutureCancellableBeforeFunctionCompletion()
138 assertFalse(outputFuture.isCancelled()); in testFutureCancellableBeforeFunctionCompletion()
156 assertFalse(resultFuture.isCancelled()); in testFutureCancelAfterCompletion()
[all …]
DAsyncSettableFutureTest.java41 assertFalse(future.isCancelled()); in testCreate()
54 assertFalse(future.isCancelled()); in testSetValue()
69 assertFalse(future.isCancelled()); in testSetException()
89 assertFalse(future.isCancelled()); in testSetFuture()
96 assertFalse(future.isCancelled()); in testSetFuture()
111 assertFalse(future.isCancelled()); in testSetFuture_genericsHierarchy()
119 assertFalse(future.isCancelled()); in testSetFuture_genericsHierarchy()
128 assertTrue(async.isCancelled()); in testCancel_innerCancelsAsync()
140 assertTrue(inner.isCancelled()); in testCancel_resultCancelsInner_interrupted()
153 assertTrue(inner.isCancelled()); in testCancel_resultCancelsInner()
[all …]
DListenableFutureTaskTest.java86 assertFalse(task.isCancelled()); in testListenerDoesNotRunUntilTaskCompletes()
95 assertFalse(task.isCancelled()); in testListenerDoesNotRunUntilTaskCompletes()
103 assertFalse(task.isCancelled()); in testListenerDoesNotRunUntilTaskCompletes()
123 assertFalse(task.isCancelled()); in testListenerCalledOnException()
129 assertTrue(task.isCancelled()); in testListenerCalledOnCancelFromNotRunning()
135 assertTrue(task.isCancelled()); in testListenerCalledOnCancelFromNotRunning()
148 assertTrue(task.isCancelled()); in testListenerCalledOnCancelFromRunning()
154 assertTrue(task.isCancelled()); in testListenerCalledOnCancelFromRunning()
DListenableFutureTester.java60 assertFalse(future.isCancelled()); in setUp()
70 assertFalse(future.isCancelled()); in testCompletedFuture()
74 assertFalse(future.isCancelled()); in testCompletedFuture()
82 assertTrue(future.isCancelled()); in testCancelledFuture()
86 assertTrue(future.isCancelled()); in testCancelledFuture()
97 assertFalse(future.isCancelled()); in testFailedFuture()
101 assertFalse(future.isCancelled()); in testFailedFuture()
DFuturesTest.java150 assertFalse(future.isCancelled()); in testImmediateFailedFuture_cancellationException()
157 assertTrue(future.isCancelled()); in testImmediateCancelledFuture()
239 assertTrue(input.isCancelled()); in testTransform_cancelPropagatesToInput()
251 assertTrue(input.isCancelled()); in testTransform_interruptPropagatesToInput()
264 assertTrue(secondary.isCancelled()); in testTransform_cancelPropagatesToAsyncOutput()
278 assertTrue(secondary.isCancelled()); in testTransform_interruptPropagatesToAsyncOutput()
616 assertTrue(primary.isCancelled());
629 assertTrue(primary.isCancelled());
645 assertTrue(secondary.isCancelled());
760 assertTrue(outer.isCancelled());
[all …]
DAbstractFutureTest.java70 assertTrue(future.isCancelled()); in testCancel_notDoneNoInterrupt()
85 assertTrue(future.isCancelled()); in testCancel_notDoneInterrupt()
104 assertFalse(future.isCancelled()); in testCancel_done()
/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()
DThumbnailRequestCoordinator.java120 public boolean isCancelled() { in isCancelled() method in ThumbnailRequestCoordinator
121 return full.isCancelled(); in isCancelled()
/external/guava/guava-testlib/src/com/google/common/util/concurrent/testing/
DAbstractCheckedFutureTest.java74 assertFalse(future.isCancelled()); in testCheckedGetThrowsApplicationExceptionOnCancellation()
91 assertTrue(future.isCancelled()); in testCheckedGetThrowsApplicationExceptionOnCancellation()
104 assertFalse(future.isCancelled()); in testCheckedGetThrowsApplicationExceptionOnInterruption()
130 assertFalse(future.isCancelled()); in testCheckedGetThrowsApplicationExceptionOnInterruption()
138 assertFalse(future.isCancelled()); in testCheckedGetThrowsApplicationExceptionOnError()
155 assertFalse(future.isCancelled()); in testCheckedGetThrowsApplicationExceptionOnError()
DAbstractListenableFutureTest.java75 assertFalse(future.isCancelled()); in testGetBlocksUntilValueAvailable()
103 assertFalse(future.isCancelled()); in testGetBlocksUntilValueAvailable()
132 assertFalse(future.isCancelled()); in testCanceledFutureThrowsCancellation()
151 assertFalse(future.isCancelled()); in testCanceledFutureThrowsCancellation()
156 assertTrue(future.isCancelled()); in testCanceledFutureThrowsCancellation()
191 assertTrue(future.isCancelled()); in testListenersNotifiedOnError()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowAccountManager.java64 return isCancelled(); in getAuthToken()
71 if (!isCancelled()) { in getAuthToken()
82 if (!isCancelled()) { in getAuthToken()
90 public boolean isCancelled() { in getAuthToken() method
122 return isCancelled(); in getAuthTokenByFeatures()
129 if (!isCancelled()) { in getAuthTokenByFeatures()
140 if (!isCancelled()) { in getAuthTokenByFeatures()
148 public boolean isCancelled() { in getAuthTokenByFeatures() method
DShadowAsyncTask.java56 public boolean isCancelled() { in isCancelled() method in ShadowAsyncTask
57 return future.isCancelled(); in isCancelled()
/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/glide/library/src/main/java/com/bumptech/glide/load/data/
DHttpUrlFetcher.java26 private volatile boolean isCancelled; field in HttpUrlFetcher
65 if (isCancelled) { in loadDataWithRedirects()
110 isCancelled = true; in cancel()
/external/nist-sip/java/gov/nist/javax/sip/parser/
DPipeline.java61 private boolean isCancelled; field in Pipeline.MyTimer
68 if (this.isCancelled) in runTask()
80 this.isCancelled = true; in cancel()
/external/volley/src/test/java/com/android/volley/toolbox/
DAndroidAuthenticatorTest.java68 when(mFuture.isCancelled()).thenReturn(false); in resultContainsIntent()
78 when(mFuture.isCancelled()).thenReturn(false); in missingAuthToken()
95 when(mFuture.isCancelled()).thenReturn(false); in goodToken()
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/prefill/
DBitmapPreFillRunner.java64 private boolean isCancelled; field in BitmapPreFillRunner
81 isCancelled = true; in cancel()
109 return !isCancelled && !toPrefill.isEmpty(); in allocate()
/external/guava/guava/src/com/google/common/util/concurrent/
DForwardingFuture.java52 public boolean isCancelled() { in isCancelled() method in ForwardingFuture
53 return delegate().isCancelled(); in isCancelled()
DAbstractFuture.java125 public boolean isCancelled() { in isCancelled() method in AbstractFuture
126 return sync.isCancelled(); in isCancelled()
326 boolean isCancelled() { in isCancelled() method in AbstractFuture.Sync
DFutures.java130 public boolean isCancelled() { in isCancelled() method in Futures.ImmediateFuture
203 public boolean isCancelled() { in isCancelled() method in Futures.ImmediateCancelledFuture
467 if (isCancelled()) { in FallbackFuture()
472 if (isCancelled()) { // in case cancel called in the meantime in FallbackFuture()
484 if (running.isCancelled()) { in FallbackFuture()
801 public boolean isCancelled() {
802 return input.isCancelled();
909 if (isCancelled()) {
1109 if (delegate.isCancelled()) {
1641 if (CombinedFuture.this.isCancelled()) {
[all …]
/external/glide/library/src/main/java/com/bumptech/glide/manager/
DRequestTracker.java69 if (!request.isComplete() && !request.isCancelled() && !request.isRunning()) { in resumeRequests()
89 if (!request.isComplete() && !request.isCancelled()) { in restartRequests()
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DVibratorTest.java51 assertThat(shadowVibrator.isCancelled(), is(false)); in cancelled()
55 assertThat(shadowVibrator.isCancelled(), is(true)); in cancelled()
DAsyncTaskTest.java53 assertTrue(asyncTask.isCancelled()); in testCancelBeforeBackground()
74 assertFalse(asyncTask.isCancelled()); in testCancelBeforePostExecute()
/external/volley/src/main/java/com/android/volley/toolbox/
DRequestFuture.java128 public boolean isCancelled() { in isCancelled() method in RequestFuture
137 return mResultReceived || mException != null || isCancelled(); in isDone()

12