Home
last modified time | relevance | path

Searched refs:resultFuture (Results 1 – 23 of 23) sorted by relevance

/packages/apps/Settings/src/com/android/settings/sim/smartForwarding/
DEnableSmartForwardingTask.java275 SettableFuture<Boolean> resultFuture = SettableFuture.create(); field in EnableSmartForwardingTask.QueryCallWaitingCommand
285 return resultFuture.get(); in process()
299 resultFuture.set(true); in queryStatusCallBack()
301 resultFuture.set(false); in queryStatusCallBack()
308 SettableFuture<Boolean> resultFuture = SettableFuture.create(); field in EnableSmartForwardingTask.QueryCallForwardingCommand
323 resultFuture.set(true); in process()
329 resultFuture.set(false); in process()
332 return resultFuture.get(); in process()
342 SettableFuture<Boolean> resultFuture = SettableFuture.create(); field in EnableSmartForwardingTask.UpdateCallWaitingCommand
355 return resultFuture.get(); in process()
[all …]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DVoipCallTransactionTest.java78 CompletableFuture<VoipCallTransactionResult> resultFuture = new CompletableFuture<>(); in processTransaction() local
82 resultFuture.complete( in processTransaction()
87 resultFuture.complete( in processTransaction()
92 resultFuture.complete( in processTransaction()
97 return resultFuture; in processTransaction()
135 CompletableFuture<VoipCallTransactionResult> resultFuture = new CompletableFuture<>(); in testSerialTransactionSuccess() local
137 resultFuture::complete; in testSerialTransactionSuccess()
142 resultFuture.get(5000L, TimeUnit.MILLISECONDS).getResult()); in testSerialTransactionSuccess()
196 CompletableFuture<VoipCallTransactionResult> resultFuture = new CompletableFuture<>(); in testParallelTransactionSuccess() local
198 resultFuture::complete; in testParallelTransactionSuccess()
[all …]
DDirectToVoicemailFilterTest.java88 CompletionStage<CallFilteringResult> resultFuture = mFilter.startFilterLookup(PASS_RESULT); in testSendToVoicemail() local
91 assertEquals(DIRECT_TO_VOICEMAIL_RESULT, resultFuture.toCompletableFuture() in testSendToVoicemail()
100 CompletionStage<CallFilteringResult> resultFuture = mFilter.startFilterLookup(PASS_RESULT); in testDontSendToVoicemail() local
103 assertEquals(PASS_RESULT, resultFuture.toCompletableFuture() in testDontSendToVoicemail()
112 CompletionStage<CallFilteringResult> resultFuture = mFilter.startFilterLookup(PASS_RESULT); in testNullResponseAndDifferentHandleFromLookupHelper() local
115 assertEquals(PASS_RESULT, resultFuture.toCompletableFuture() in testNullResponseAndDifferentHandleFromLookupHelper()
122 CompletionStage<CallFilteringResult> resultFuture = mFilter.startFilterLookup(PASS_RESULT); in testNullResponseAndSameHandleFromLookupHelper() local
125 assertEquals(PASS_RESULT, resultFuture.toCompletableFuture() in testNullResponseAndSameHandleFromLookupHelper()
DDndCallFilteringTests.java104 CompletionStage<CallFilteringResult> resultFuture = filter.startFilterLookup(BASE_RESULT); in testShouldSuppressCall() local
106 Assert.assertEquals(CALL_SUPPRESSED_RESULT, resultFuture.toCompletableFuture() in testShouldSuppressCall()
126 CompletionStage<CallFilteringResult> resultFuture = filter.startFilterLookup(BASE_RESULT); in testCallShouldRingAndNotBeSuppressed() local
129 Assert.assertEquals(CALL_NOT_SUPPRESSED_RESULT, resultFuture.toCompletableFuture() in testCallShouldRingAndNotBeSuppressed()
DCallScreeningServiceFilterTest.java269 CompletionStage<CallFilteringResult> resultFuture = filter.startFilterLookup(inputResult); in testAllowCall() local
283 resultFuture.toCompletableFuture().get( in testAllowCall()
305 CompletionStage<CallFilteringResult> resultFuture = filter.startFilterLookup(inputResult); in testDisallowCall() local
321 resultFuture.toCompletableFuture().get( in testDisallowCall()
342 CompletionStage<CallFilteringResult> resultFuture = filter.startFilterLookup(inputResult); in testSilenceCall() local
356 resultFuture.toCompletableFuture().get( in testSilenceCall()
377 CompletionStage<CallFilteringResult> resultFuture = filter.startFilterLookup(inputResult); in testScreenCallFurther() local
394 resultFuture.toCompletableFuture().get( in testScreenCallFurther()
DBlockCheckerFilterTest.java114 CompletionStage<CallFilteringResult> resultFuture = mFilter.startFilterLookup(PASS_RESULT); in testBlockNumberWhenEnhancedBlockingEnabled() local
116 assertEquals(BLOCK_RESULT, resultFuture.toCompletableFuture() in testBlockNumberWhenEnhancedBlockingEnabled()
140 CompletionStage<CallFilteringResult> resultFuture = mFilter.startFilterLookup(PASS_RESULT); in testDontBlockNumberWhenEnhancedBlockingEnabled() local
142 assertEquals(PASS_RESULT, resultFuture.toCompletableFuture() in testDontBlockNumberWhenEnhancedBlockingEnabled()
DIncomingCallFilterGraphTest.java95 CompletableFuture<CallFilteringResult> resultFuture = new CompletableFuture<>(); in startFilterLookup() local
96 handler.postDelayed(() -> resultFuture.complete(PASS_CALL_RESULT), in startFilterLookup()
DCallsManagerTest.java3232 CompletableFuture<String> resultFuture = new CompletableFuture<>(); in testQueryCurrentLocationCheckOnReceiveResult() local
3239 resultFuture.complete("onReceiveResult"); in testQueryCurrentLocationCheckOnReceiveResult()
3243 resultFuture.complete("Exception : " + e); in testQueryCurrentLocationCheckOnReceiveResult()
3246 String result = resultFuture.get(1000L, TimeUnit.MILLISECONDS); in testQueryCurrentLocationCheckOnReceiveResult()
/packages/services/Telecomm/src/com/android/server/telecom/callfiltering/
DBlockCheckerFilter.java122 CompletableFuture<CallFilteringResult> resultFuture = new CompletableFuture<>(); in startFilterLookup() local
135 getBlockStatus(resultFuture); in startFilterLookup()
144 getBlockStatus(resultFuture); in startFilterLookup()
147 getBlockStatus(resultFuture); in startFilterLookup()
149 return resultFuture; in startFilterLookup()
153 CompletableFuture<CallFilteringResult> resultFuture) { in getBlockStatus() argument
179 .thenApplyAsync((x) -> completeResult(resultFuture, x), in getBlockStatus()
183 private int completeResult(CompletableFuture<CallFilteringResult> resultFuture, in completeResult() argument
210 resultFuture.complete(result); in completeResult()
DCallScreeningServiceFilter.java64 public CallScreeningAdapter(CompletableFuture<CallFilteringResult> resultFuture) { in CallScreeningAdapter() argument
65 mResultFuture = resultFuture; in CallScreeningAdapter()
215 public CallScreeningServiceConnection(CompletableFuture<CallFilteringResult> resultFuture) { in CallScreeningServiceConnection() argument
216 mResultFuture = resultFuture; in CallScreeningServiceConnection()
295 CompletableFuture<CallFilteringResult> resultFuture = new CompletableFuture<>(); in startFilterLookup() local
297 bindCallScreeningService(resultFuture); in startFilterLookup()
298 return resultFuture; in startFilterLookup()
318 CompletableFuture<CallFilteringResult> resultFuture) { in bindCallScreeningService() argument
320 resultFuture); in bindCallScreeningService()
324 resultFuture.complete(mPriorStageResult); in bindCallScreeningService()
DDirectToVoicemailFilter.java44 CompletableFuture<CallFilteringResult> resultFuture = new CompletableFuture<>(); in startFilterLookup() local
51 resultFuture.complete(new CallFilteringResult.Builder() in startFilterLookup()
70 resultFuture.complete(IncomingCallFilterGraph.DEFAULT_RESULT); in startFilterLookup()
80 return resultFuture; in startFilterLookup()
DDndCallFilter.java50 CompletableFuture<CallFilteringResult> resultFuture = new CompletableFuture<>(); in startFilterLookup() local
62 resultFuture.complete(new CallFilteringResult.Builder() in startFilterLookup()
69 return resultFuture; in startFilterLookup()
/packages/apps/Dialer/java/com/android/dialer/common/concurrent/
DUiThreadExecutor.java63 final SettableFuture<V> resultFuture = SettableFuture.create(); in submit() local
67 resultFuture.set(task.call()); in submit()
70 resultFuture.setException(e); in submit()
74 return resultFuture; in submit()
/packages/modules/GeoTZ/data_pipeline/src/main/java/com/android/timezone/location/data_pipeline/steps/
DMergeTzS2Ranges.java170 Future<File> resultFuture = mExecutorService.submit( in createCombinedTzS2Ranges() local
172 resultFutureList.addLast(resultFuture); in createCombinedTzS2Ranges()
182 Future<File> resultFuture = resultIterator.next(); in createCombinedTzS2Ranges() local
183 if (resultFuture.isDone()) { in createCombinedTzS2Ranges()
187 result = resultFuture.get(); in createCombinedTzS2Ranges()
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/display/
DDisplayHelper.java138 @NonNull SettableFuture<SurfacePackage> resultFuture) { in createWebView() argument
160 resultFuture.set(surfacePackage); in createWebView()
163 resultFuture.setException(e); in createWebView()
/packages/services/Telephony/src/com/android/phone/callcomposer/
DCallComposerPictureManager.java325 CompletableFuture<GbaCredentials> resultFuture = new CompletableFuture<>(); in getGbaCredentials() local
336 resultFuture.complete(creds); in getGbaCredentials()
342 resultFuture.complete(null); in getGbaCredentials()
346 return resultFuture; in getGbaCredentials()
DCallComposerPictureTransfer.java225 CompletableFuture<Network> resultFuture = new CompletableFuture<>(); in getNetworkForCallComposer() local
230 resultFuture.complete(network); in getNetworkForCallComposer()
233 return resultFuture; in getNetworkForCallComposer()
/packages/services/Car/service/src/com/android/car/
DAidlVehicleStub.java382 AndroidFuture<VhalResultType> resultFuture = new AndroidFuture(); in addRequest() local
383 mPendingRequestsByVhalRequestId.put(vhalRequestId, resultFuture); in addRequest()
384 return resultFuture; in addRequest()
982 AndroidFuture<VhalResultType> resultFuture = pendingSyncRequestPool.addRequest( in getOrSetSync() local
993 VhalResultType result = resultFuture.get(mSyncOpTimeoutInMs, in getOrSetSync()
1010 resultFuture = pendingSyncRequestPool.finishRequestIfFound(vhalRequestId); in getOrSetSync()
1012 resultFuture.cancel(/* mayInterruptIfRunning= */ false); in getOrSetSync()
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/federatedcompute/
DOdpExampleStoreService.java197 ListenableFuture<TrainingExamplesOutputParcel> resultFuture = in startQuery() local
217 resultFuture, in startQuery()
247 Futures.whenAllComplete(loadFuture, resultFuture) in startQuery()
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/training/
DIsolatedTrainingServiceImpl.java141 ListenableFuture<FLRunnerResult> resultFuture = in runTraining() local
157 resultFuture, in runTraining()
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/request/
DAppRequestFlow.java362 ListenableFuture<ExecuteOutputParcel> resultFuture, in createResultBundle() argument
372 ExecuteOutputParcel result = Futures.getDone(resultFuture); in createResultBundle()
/packages/modules/OnDevicePersonalization/samples/odpsamplenetwork/src/main/java/com/example/odpsamplenetwork/
DSampleHandler.java515 ListenableFuture<ExecuteOutput> resultFuture = in handleOnExecute() local
526 FluentFuture.from(resultFuture) in handleOnExecute()
/packages/services/Telephony/src/com/android/phone/settings/
DRadioInfo.java1412 CompletableFuture<NetworkSlicingConfig> resultFuture = new CompletableFuture<>(); in updateNrStats() local
1413 mTelephonyManager.getNetworkSlicingConfiguration(Runnable::run, resultFuture::complete); in updateNrStats()
1416 resultFuture.get(DEFAULT_TIMEOUT_MS, MILLISECONDS); in updateNrStats()