Home
last modified time | relevance | path

Searched refs:setException (Results 1 – 25 of 79) sorted by relevance

1234

/external/guava/guava-tests/test/com/google/common/util/concurrent/
DAbstractFutureBenchmarks.java39 boolean setException(Throwable t); in setException() method
51 public boolean setException(Throwable t) { in setException() method in AbstractFutureBenchmarks.NewAbstractFutureFacade
52 return super.setException(t); in setException()
66 public boolean setException(Throwable t) { in setException() method in AbstractFutureBenchmarks.OldAbstractFutureFacade
67 return super.setException(t); in setException()
238 protected boolean setException(Throwable throwable) { in setException() method in AbstractFutureBenchmarks.OldAbstractFuture
239 boolean result = sync.setException(checkNotNull(throwable)); in setException()
368 boolean setException(Throwable t) { in setException() method in AbstractFutureBenchmarks.OldAbstractFuture.Sync
DSettableFutureTest.java60 assertTrue(future.setException(new Exception("failure"))); in testSetFailure()
66 future.setException(null); in testSetFailureNull()
71 assertTrue(future.setException(new Exception("failure"))); in testSetFailureNull()
92 assertFalse(future.setException(new Exception("bar"))); in testSetValue_simpleThreaded()
103 assertTrue(future.setException(e)); in testSetException()
106 assertFalse(future.setException(new Exception("quux"))); in testSetException()
125 assertFalse(future.setException(new Exception("bar"))); in testSetFuture()
152 assertFalse(future.setException(new Exception("bar"))); in testSetFuture_genericsHierarchy()
DAbstractChainedListenableFutureTest.java60 inputFuture.setException(EXCEPTION); in testFutureGetThrowsWrappedException()
66 inputFuture.setException(error); in testFutureGetThrowsWrappedError()
DUncheckedThrowingFuture.java56 if (!super.setException(new WrapperException(checkNotNull(e)))) { in complete()
62 if (!super.setException(new WrapperException(checkNotNull(e)))) { in complete()
DAbstractAbstractFutureTest.java66 assertThat(future.setException(cause)).isTrue(); in testFailed()
163 future.setException(new Exception()); in testListenLaterFailed()
221 delegate.setException(new Exception()); in testListenLaterSetAsynchronouslyLaterDelegateFailed()
384 future.setException(null); in testSetExceptionNull()
507 assertThat(future.setException(new IndexOutOfBoundsException())).isFalse(); in assertCannotSet()
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/
DAbstractFutureBenchmarks.java39 boolean setException(Throwable t); in setException() method
51 public boolean setException(Throwable t) { in setException() method in AbstractFutureBenchmarks.NewAbstractFutureFacade
52 return super.setException(t); in setException()
66 public boolean setException(Throwable t) { in setException() method in AbstractFutureBenchmarks.OldAbstractFutureFacade
67 return super.setException(t); in setException()
238 protected boolean setException(Throwable throwable) { in setException() method in AbstractFutureBenchmarks.OldAbstractFuture
239 boolean result = sync.setException(checkNotNull(throwable)); in setException()
368 boolean setException(Throwable t) { in setException() method in AbstractFutureBenchmarks.OldAbstractFuture.Sync
DSettableFutureTest.java60 assertTrue(future.setException(new Exception("failure"))); in testSetFailure()
66 future.setException(null); in testSetFailureNull()
71 assertTrue(future.setException(new Exception("failure"))); in testSetFailureNull()
92 assertFalse(future.setException(new Exception("bar"))); in testSetValue_simpleThreaded()
103 assertTrue(future.setException(e)); in testSetException()
106 assertFalse(future.setException(new Exception("quux"))); in testSetException()
125 assertFalse(future.setException(new Exception("bar"))); in testSetFuture()
152 assertFalse(future.setException(new Exception("bar"))); in testSetFuture_genericsHierarchy()
DAbstractChainedListenableFutureTest.java60 inputFuture.setException(EXCEPTION); in testFutureGetThrowsWrappedException()
66 inputFuture.setException(error); in testFutureGetThrowsWrappedError()
DUncheckedThrowingFuture.java56 if (!super.setException(new WrapperException(checkNotNull(e)))) { in complete()
62 if (!super.setException(new WrapperException(checkNotNull(e)))) { in complete()
DAbstractAbstractFutureTest.java66 assertThat(future.setException(cause)).isTrue(); in testFailed()
163 future.setException(new Exception()); in testListenLaterFailed()
221 delegate.setException(new Exception()); in testListenLaterSetAsynchronouslyLaterDelegateFailed()
384 future.setException(null); in testSetExceptionNull()
507 assertThat(future.setException(new IndexOutOfBoundsException())).isFalse(); in assertCannotSet()
DFuturesTest.java1159 input.setException(new Exception());
1388 root.setException(new MyException());
1397 root.setException(new MyException());
1419 input.setException(new MyException());
1439 input.setException(new MyException());
1476 input.setException(new MyException());
1523 root.setException(new MyException());
1532 root.setException(new MyException());
1555 input.setException(new MyException());
1576 input.setException(new MyException());
[all …]
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Events/
DEventWithExceptionTest.java78 int exceptionRequestId = setException(); in testBreakpoint_BeforeException()
137 int exceptionRequestId = setException(); in testBreakpoint_UponException()
227 int exceptionRequestId = setException(); in runSingleStepTest()
298 int exceptionRequestId = setException(); in runFieldWatchpointTest()
358 int exceptionRequestId = setException(); in runMethodExitTest()
409 private int setException() { in setException() method in EventWithExceptionTest
412 debuggeeWrapper.vmMirror.setException(getClassSignature(EXCEPTION_CLASS), true, in setException()
/external/guava/android/guava/src/com/google/common/util/concurrent/
DSettableFuture.java52 public boolean setException(Throwable throwable) { in setException() method in SettableFuture
53 return super.setException(throwable); in setException()
DAbstractTransformFuture.java100 setException(e.getCause()); in run()
104 setException(e); in run()
112 setException(e); in run()
121 setException(t); in run()
DCombinedFuture.java106 CombinedFuture.this.setException(e); in execute()
127 CombinedFuture.this.setException(error.getCause()); in afterRanInterruptibly()
131 CombinedFuture.this.setException(error); in afterRanInterruptibly()
DTrustedListenableFutureTask.java133 setException(error); in afterRanInterruptibly()
171 setException(error); in afterRanInterruptibly()
/external/guava/guava/src/com/google/common/util/concurrent/
DSettableFuture.java52 public boolean setException(Throwable throwable) { in setException() method in SettableFuture
53 return super.setException(throwable); in setException()
DAbstractTransformFuture.java100 setException(e.getCause()); in run()
104 setException(e); in run()
112 setException(e); in run()
121 setException(t); in run()
DCombinedFuture.java106 CombinedFuture.this.setException(e); in execute()
127 CombinedFuture.this.setException(error.getCause()); in afterRanInterruptibly()
131 CombinedFuture.this.setException(error); in afterRanInterruptibly()
DTrustedListenableFutureTask.java133 setException(error); in afterRanInterruptibly()
171 setException(error); in afterRanInterruptibly()
/external/grpc-grpc-java/testing/src/main/java/io/grpc/internal/testing/
DStreamRecorder.java64 firstValue.setException(t); in onError()
73 firstValue.setException(new IllegalStateException("No first value provided")); in onCompleted()
/external/kotlinx.coroutines/integration/kotlinx-coroutines-guava/test/
DListenableFutureExceptionsTest.kt64 future.setException(exception) in <lambda>()
81 future.setException(exception) in <lambda>()
/external/grpc-grpc-java/testing/src/main/java/io/grpc/testing/
DStreamRecorder.java69 firstValue.setException(t); in onError()
78 firstValue.setException(new IllegalStateException("No first value provided")); in onCompleted()
/external/downloader/src/main/java/com/google/android/downloader/
DCronetUrlEngine.java211 responseFuture.setException( in onResponseStarted()
298 responseFuture.setException(requestException); in onFailed()
302 completionFuture.setException(requestException); in onFailed()
313 completionFuture.setException(new RequestException("UrlRequest cancelled")); in onCanceled()
/external/connectedappssdk/tests/shared/src/main/java/com/google/android/enterprise/connectedapps/testapp/wrappers/
DSimpleFutureWrapper.java40 future.setException(t); in immediateFailedFuture()
59 future.setException(throwable); in onException()

1234