Home
last modified time | relevance | path

Searched refs:completeExceptionally (Results 1 – 25 of 35) sorted by relevance

12

/packages/services/Car/car-lib/src/android/car/util/concurrent/
DAndroidFuture.java82 completeExceptionally(readThrowable(in)); in AndroidFuture()
127 public boolean completeExceptionally(@NonNull Throwable ex) { in completeExceptionally() method in AndroidFuture
128 boolean changed = super.completeExceptionally(ex); in completeExceptionally()
275 completeExceptionally(new TimeoutException()); in triggerTimeout()
331 completeExceptionally(err); in accept()
349 completeExceptionally(t); in run()
390 completeExceptionally(err); in accept()
402 completeExceptionally(t); in run()
437 completeExceptionally(err); in accept()
457 completeExceptionally(t); in accept()
[all …]
/packages/modules/AppSearch/service/java/com/android/server/appsearch/contactsindexer/
DAppSearchHelper.java199 future.completeExceptionally( in createAppSearchSessionAsync()
256 future.completeExceptionally( in setPersonSchemaAsync()
371 future.completeExceptionally( in indexContactsAsync()
392 future.completeExceptionally(throwable); in indexContactsAsync()
471 future.completeExceptionally( in removeContactsByIdAsync()
492 future.completeExceptionally(throwable); in removeContactsByIdAsync()
539 future.completeExceptionally(throwable);
631 future.completeExceptionally(
/packages/services/Car/tests/carservice_unit_test/src/android/car/util/concurrent/
DAndroidFutureTest.java67 boolean changed = mUncompletedFuture.completeExceptionally(origException); in testCompleteExceptionally_uncompleted()
77 boolean changed = mCompletedFuture.completeExceptionally( in testCompleteExceptionally_alreadyCompleted()
128 mUncompletedFuture.completeExceptionally(origException); in testWhenComplete_completeExceptionally()
198 original.completeExceptionally(exception); in testWriteToParcel_completedExceptionally()
228 fromParcel.completeExceptionally(exception); in testWriteToParcel_uncompleted_Exception()
/packages/providers/MediaProvider/apex/framework/java/android/provider/
DAsyncContentProvider.java64 future.completeExceptionally( in setResult()
68 future.completeExceptionally( in setResult()
/packages/services/Iwlan/test/com/google/android/iwlan/epdg/
DNaptrDnsResolverTest.java93 mNaptrDnsResult.completeExceptionally(new UnknownHostException()); in NaptrDnsResolverTest()
99 mNaptrDnsResult.completeExceptionally(error); in NaptrDnsResolverTest()
DSrvDnsResolverTest.java119 mSrvDnsResult.completeExceptionally(new UnknownHostException()); in SrvDnsResolverTest()
125 mSrvDnsResult.completeExceptionally(error); in SrvDnsResolverTest()
/packages/modules/NetworkStack/src/com/android/networkstack/util/
DDnsUtils.java112 resultRef.completeExceptionally(new UnknownHostException()); in getAllByName()
121 resultRef.completeExceptionally(e); in getAllByName()
/packages/modules/AppSearch/testing/coretests/src/android/app/appsearch/
DAppSearchSessionUnitTest.java90 putDocumentsFuture.completeExceptionally(throwable); in testGetEmptyNextPage()
148 putDocumentsFuture.completeExceptionally(throwable); in testGetEmptyNextPage_multiPages()
/packages/modules/AppSearch/testing/contactsindexertests/src/com/android/server/appsearch/contactsindexer/
DTestUtils.java158 future.completeExceptionally(throwable); in getDocsByIdAsync()
178 future.completeExceptionally( in getNextPageAsync()
/packages/modules/Permission/framework-s/java/android/app/role/
DRoleControllerManager.java253 future.completeExceptionally(exception); in getLegacyFallbackDisabledRoles()
281 future.completeExceptionally(exception); in createBooleanRemoteCallback()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/appsindexer/
DSyncAppSearchBase.java86 futureResult.completeExceptionally(throwable); in executeAppSearchBatchResultOperation()
/packages/modules/Connectivity/thread/tests/integration/src/android/net/thread/
DThreadNetworkControllerTest.java167 future.completeExceptionally(e); in newOutcomeReceiver()
/packages/modules/Permission/service/java/com/android/role/
DRoleShellCommand.java55 completeExceptionally(new RuntimeException("Failed")); in createCallback()
DRoleService.java349 future.completeExceptionally(new RuntimeException()); in maybeGrantDefaultRolesInternal()
891 future.completeExceptionally(new RuntimeException()); in setBrowserRoleHolder()
/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/
DImageResolver.java165 future.completeExceptionally(ex); in getBitmaps()
/packages/apps/Car/Cluster/ClusterOsDouble/src/com/android/car/cluster/view/
DImageResolver.java150 future.completeExceptionally(ex); in getBitmaps()
/packages/modules/Connectivity/thread/tests/integration/src/android/net/thread/utils/
DThreadNetworkControllerWrapper.java204 future.completeExceptionally(e); in newOutcomeReceiver()
DFullThreadDevice.java523 future.completeExceptionally(e); in readLine()
/packages/services/Telephony/tests/src/com/android/
DTestExecutorService.java104 mFuture.completeExceptionally(e); in completeTask()
/packages/modules/Connectivity/thread/service/java/com/android/server/thread/
DThreadNetworkShellCommand.java260 future.completeExceptionally(new ThreadNetworkException(errorCode, errorMessage)); in newOperationReceiver()
/packages/services/Iwlan/src/com/google/android/iwlan/epdg/
DEpdgSelector.java528 result.completeExceptionally(error); in getIP()
1209 naptrDnsResult.completeExceptionally(new UnknownHostException()); in resolutionMethodVisitedCountry()
1215 naptrDnsResult.completeExceptionally(error); in resolutionMethodVisitedCountry()
DSrvDnsResolver.java253 result.completeExceptionally(error); in queryDns()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DEthernetManagerTest.kt300 available.completeExceptionally(IllegalStateException("onUnavailable was called")) in <lambda>()
319 result.completeExceptionally(e) in <lambda>()
/packages/modules/Connectivity/Tethering/tests/privileged/src/com/android/networkstack/tethering/
DBpfMapTest.java503 future.completeExceptionally(e); in runBenchmarkThread()
/packages/modules/Connectivity/thread/tests/unit/src/com/android/server/thread/
DThreadNetworkControllerServiceTest.java558 future.completeExceptionally(new ThreadNetworkException(errorCode, errorMessage)); in newOperationReceiver()

12