OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:CancellationException
(Results
1 - 25
of
122
) sorted by null
1
2
3
4
5
/libcore/ojluni/src/main/java/java/util/concurrent/
CancellationException.java
46
public class
CancellationException
extends IllegalStateException {
50
* Constructs a {@code
CancellationException
} with no detail message.
52
public
CancellationException
() {}
55
* Constructs a {@code
CancellationException
} with the specified detail
60
public
CancellationException
(String message) {
/external/robolectric-shadows/utils/src/main/java/org/robolectric/util/
SimpleFuture.java
4
import java.util.concurrent.
CancellationException
;
39
throw new
CancellationException
();
48
throw new
CancellationException
();
/packages/apps/Camera2/src/com/android/camera/one/v2/initialization/
DeferredManualAutoFocus.java
19
import java.util.concurrent.
CancellationException
;
42
} catch (InterruptedException | ExecutionException |
CancellationException
e) {
DeferredPictureTaker.java
23
import java.util.concurrent.
CancellationException
;
44
} catch (InterruptedException | ExecutionException |
CancellationException
e) {
/device/google/cuttlefish_common/guest/monitoring/vsoc_service/java/com/android/google/gce/gceservice/
GceFuture.java
20
import java.util.concurrent.
CancellationException
;
81
set(new
CancellationException
("cancelled"));
91
return (mException != null) && (mException instanceof
CancellationException
);
105
public T get() throws
CancellationException
, ExecutionException, InterruptedException {
119
throws
CancellationException
, ExecutionException, InterruptedException, TimeoutException {
123
if (mException instanceof
CancellationException
)
124
throw (
CancellationException
)mException;
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
AsyncUtils.java
25
import java.util.concurrent.
CancellationException
;
55
public static <T>
CancellationException
awaitCancellation(Future<T> f) {
59
public static <T>
CancellationException
awaitCancellation(
64
if (current instanceof
CancellationException
) {
65
return (
CancellationException
) current;
/external/guava/guava/src/com/google/common/util/concurrent/
AbstractFuture.java
21
import java.util.concurrent.
CancellationException
;
91
* @throws
CancellationException
{@inheritDoc}
112
* @throws
CancellationException
{@inheritDoc}
264
V get(long nanos) throws TimeoutException,
CancellationException
,
277
* successfully called. Throws a {@link
CancellationException
} if the task
281
V get() throws
CancellationException
, ExecutionException,
294
private V getValue() throws
CancellationException
, ExecutionException {
377
// Don't actually construct a
CancellationException
until necessary.
379
? new
CancellationException
("Future.cancel() was called.") : t;
390
static final
CancellationException
cancellationExceptionWithCause
[
all
...]
AbstractCheckedFuture.java
21
import java.util.concurrent.
CancellationException
;
46
* {@link
CancellationException
} or {@link ExecutionException} thrown by
73
* {@link
CancellationException
}, or {@link ExecutionException}
82
} catch (
CancellationException
e) {
101
* {@link
CancellationException
}, or {@link ExecutionException}
111
} catch (
CancellationException
e) {
CheckedFuture.java
21
import java.util.concurrent.
CancellationException
;
35
* {@code Future#get()}: {@link
CancellationException
},
57
* {@link InterruptedException}, {@link
CancellationException
} and
67
* translate {@link InterruptedException}, {@link
CancellationException
} and
/external/guava/guava-tests/test/com/google/common/util/concurrent/
FuturesTransformAsyncFunctionTest.java
24
import java.util.concurrent.
CancellationException
;
83
fail("Result future must throw
CancellationException
"
85
} catch (
CancellationException
expected) {}
94
fail("Result future must throw
CancellationException
"
96
} catch (
CancellationException
expected) {}
107
+ "
CancellationException
");
108
} catch (
CancellationException
expected) {}
120
+ "
CancellationException
");
121
} catch (
CancellationException
expected) {}
142
+ "
CancellationException
");
[
all
...]
AbstractFutureTest.java
24
import java.util.concurrent.
CancellationException
;
76
fail("Expected
CancellationException
");
77
} catch (
CancellationException
e) {
91
fail("Expected
CancellationException
");
92
} catch (
CancellationException
e) {
ListenableFutureTester.java
25
import java.util.concurrent.
CancellationException
;
90
fail("Future should throw
CancellationException
on cancel.");
91
} catch (
CancellationException
expected) {}
/art/test/523-checker-can-throw-regression/src/
Main.java
26
import java.util.concurrent.
CancellationException
;
/external/dagger2/producers/src/test/java/dagger/producers/
ProducedTest.java
19
import java.util.concurrent.
CancellationException
;
52
RuntimeException e2 = new
CancellationException
();
/packages/apps/Contacts/src/com/android/contacts/util/concurrent/
FuturesUtil.java
10
import java.util.concurrent.
CancellationException
;
52
if ((t instanceof
CancellationException
) && didTimeout.get()) {
ListenableFutureLoader.java
30
import java.util.concurrent.
CancellationException
;
106
if (t instanceof
CancellationException
) {
/libcore/ojluni/src/main/java/sun/nio/ch/
PendingFuture.java
38
private static final
CancellationException
CANCELLED =
39
new
CancellationException
();
184
throw new
CancellationException
();
201
throw new
CancellationException
();
/packages/apps/KeyChain/robotests/src/com/android/keychain/
AliasLoaderTest.java
25
import java.util.concurrent.
CancellationException
;
55
throws InterruptedException, ExecutionException,
CancellationException
,
76
throws InterruptedException, ExecutionException,
CancellationException
,
94
throws InterruptedException, ExecutionException,
CancellationException
,
/art/test/522-checker-regression-monitor-exit/src/
Main.java
26
import java.util.concurrent.
CancellationException
;
79
} catch (
CancellationException
ex) {
/external/glide/library/src/main/java/com/bumptech/glide/request/
RequestFutureTarget.java
10
import java.util.concurrent.
CancellationException
;
192
throw new
CancellationException
();
210
throw new
CancellationException
();
/external/guava/guava-testlib/src/com/google/common/util/concurrent/testing/
AbstractListenableFutureTest.java
24
import java.util.concurrent.
CancellationException
;
142
} catch (
CancellationException
expected) {
181
} catch (
CancellationException
expected) {
/external/guava/guava-testlib/src/com/google/common/testing/
GcFinalization.java
24
import java.util.concurrent.
CancellationException
;
145
} catch (
CancellationException
ok) {
/external/guava/guava-testlib/test/com/google/common/util/concurrent/testing/
TestingExecutorsTest.java
27
import java.util.concurrent.
CancellationException
;
81
} catch (
CancellationException
e) {
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowAsyncTask.java
11
import java.util.concurrent.
CancellationException
;
39
} catch (
CancellationException
e) {
/packages/apps/Dialer/java/com/android/voicemail/impl/
StatusCheckTask.java
32
import java.util.concurrent.
CancellationException
;
96
} catch (
CancellationException
e) {
Completed in 555 milliseconds
1
2
3
4
5