Home
last modified time | relevance | path

Searched refs:setException (Results 1 – 25 of 93) 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()
383 future.setException(null); in testSetExceptionNull()
506 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()
383 future.setException(null); in testSetExceptionNull()
506 assertThat(future.setException(new IndexOutOfBoundsException())).isFalse(); in assertCannotSet()
/external/pigweed/pw_rpc/java/main/dev/pigweed/pw_rpc/
DFutureCall.java94 future.setException(e); in handleExceptionOnInitialPacket()
103 future.setException(new RpcError(rpc(), error())); in doHandleError()
121 future().setException(new IllegalStateException("Unary RPC received multiple responses.")); in doHandleNext()
128 future().setException( in doHandleCompleted()
/external/libtextclassifier/java/src/com/android/textclassifier/downloader/
DModelDownloaderImpl.java185 completer.setException(
214 completer.setException(
246 completer.setException(
254 completer.setException(
261 completer.setException(
/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/
DAbstractTransformFuture.java104 setException(e.getCause()); in run()
108 setException(e); in run()
116 setException(e); in run()
125 setException(t); in run()
DSettableFuture.java54 public boolean setException(Throwable throwable) { in setException() method in SettableFuture
55 return super.setException(throwable); in setException()
DCombinedFuture.java110 CombinedFuture.this.setException(e); in execute()
142 CombinedFuture.this.setException(((ExecutionException) error).getCause()); in afterRanInterruptiblyFailure()
146 CombinedFuture.this.setException(error); in afterRanInterruptiblyFailure()
/external/guava/guava/src/com/google/common/util/concurrent/
DAbstractTransformFuture.java104 setException(e.getCause()); in run()
108 setException(e); in run()
116 setException(e); in run()
125 setException(t); in run()
DSettableFuture.java54 public boolean setException(Throwable throwable) { in setException() method in SettableFuture
55 return super.setException(throwable); in setException()
DCombinedFuture.java110 CombinedFuture.this.setException(e); in execute()
142 CombinedFuture.this.setException(((ExecutionException) error).getCause()); in afterRanInterruptiblyFailure()
146 CombinedFuture.this.setException(error); in afterRanInterruptiblyFailure()
/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowNativeFont.java133 reflector(FontBuilderReflector.class, realFontBuilder).setException(e); in __constructor__()
148 .setException(new FileNotFoundException(resId + " not found")); in __constructor__()
154 .setException(new FileNotFoundException(resId + " must be font file.")); in __constructor__()
161 reflector(FontBuilderReflector.class, realFontBuilder).setException(e); in __constructor__()
232 void setException(IOException e); in setException() method
/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/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/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