Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/sim/smartForwarding/
DEnableSmartForwardingTask.java282 SettableFuture<Boolean> resultFuture = SettableFuture.create(); field in EnableSmartForwardingTask.QueryCallWaitingCommand
292 return resultFuture.get(); in process()
306 resultFuture.set(true); in queryStatusCallBack()
308 resultFuture.set(false); in queryStatusCallBack()
315 SettableFuture<Boolean> resultFuture = SettableFuture.create(); field in EnableSmartForwardingTask.QueryCallForwardingCommand
330 resultFuture.set(true); in process()
336 resultFuture.set(false); in process()
339 return resultFuture.get(); in process()
349 SettableFuture<Boolean> resultFuture = SettableFuture.create(); field in EnableSmartForwardingTask.UpdateCallWaitingCommand
362 return resultFuture.get(); in process()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/callfiltering/
DBlockCheckerFilter.java67 CompletableFuture<CallFilteringResult> resultFuture = new CompletableFuture<>(); in startFilterLookup() local
80 getBlockStatus(resultFuture); in startFilterLookup()
89 getBlockStatus(resultFuture); in startFilterLookup()
92 getBlockStatus(resultFuture); in startFilterLookup()
94 return resultFuture; in startFilterLookup()
98 CompletableFuture<CallFilteringResult> resultFuture) { in getBlockStatus() argument
116 .thenApplyAsync((x) -> completeResult(resultFuture, x), in getBlockStatus()
120 private int completeResult(CompletableFuture<CallFilteringResult> resultFuture, in completeResult() argument
147 resultFuture.complete(result); in completeResult()
DCallScreeningServiceFilter.java63 public CallScreeningAdapter(CompletableFuture<CallFilteringResult> resultFuture) { in CallScreeningAdapter() argument
64 mResultFuture = resultFuture; in CallScreeningAdapter()
214 public CallScreeningServiceConnection(CompletableFuture<CallFilteringResult> resultFuture) { in CallScreeningServiceConnection() argument
215 mResultFuture = resultFuture; in CallScreeningServiceConnection()
292 CompletableFuture<CallFilteringResult> resultFuture = new CompletableFuture<>(); in startFilterLookup() local
294 bindCallScreeningService(resultFuture); in startFilterLookup()
295 return resultFuture; in startFilterLookup()
315 CompletableFuture<CallFilteringResult> resultFuture) { in bindCallScreeningService() argument
316 mConnection = new CallScreeningServiceConnection(resultFuture); in bindCallScreeningService()
320 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()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DDirectToVoicemailFilterTest.java89 CompletionStage<CallFilteringResult> resultFuture = mFilter.startFilterLookup(PASS_RESULT); in testSendToVoicemail() local
92 assertEquals(DIRECT_TO_VOICEMAIL_RESULT, resultFuture.toCompletableFuture() in testSendToVoicemail()
101 CompletionStage<CallFilteringResult> resultFuture = mFilter.startFilterLookup(PASS_RESULT); in testDontSendToVoicemail() local
104 assertEquals(PASS_RESULT, resultFuture.toCompletableFuture() in testDontSendToVoicemail()
113 CompletionStage<CallFilteringResult> resultFuture = mFilter.startFilterLookup(PASS_RESULT); in testNullResponseAndDifferentHandleFromLookupHelper() local
116 assertEquals(PASS_RESULT, resultFuture.toCompletableFuture() in testNullResponseAndDifferentHandleFromLookupHelper()
123 CompletionStage<CallFilteringResult> resultFuture = mFilter.startFilterLookup(PASS_RESULT); in testNullResponseAndSameHandleFromLookupHelper() local
126 assertEquals(PASS_RESULT, resultFuture.toCompletableFuture() in testNullResponseAndSameHandleFromLookupHelper()
DCallScreeningServiceFilterTest.java242 CompletionStage<CallFilteringResult> resultFuture = filter.startFilterLookup(inputResult); in testAllowCall() local
256 resultFuture.toCompletableFuture().get( in testAllowCall()
278 CompletionStage<CallFilteringResult> resultFuture = filter.startFilterLookup(inputResult); in testDisallowCall() local
294 resultFuture.toCompletableFuture().get( in testDisallowCall()
315 CompletionStage<CallFilteringResult> resultFuture = filter.startFilterLookup(inputResult); in testSilenceCall() local
329 resultFuture.toCompletableFuture().get( in testSilenceCall()
350 CompletionStage<CallFilteringResult> resultFuture = filter.startFilterLookup(inputResult); in testScreenCallFurther() local
367 resultFuture.toCompletableFuture().get( in testScreenCallFurther()
DBlockCheckerFilterTest.java113 CompletionStage<CallFilteringResult> resultFuture = mFilter.startFilterLookup(PASS_RESULT); in testBlockNumberWhenEnhancedBlockingEnabled() local
115 assertEquals(BLOCK_RESULT, resultFuture.toCompletableFuture() in testBlockNumberWhenEnhancedBlockingEnabled()
139 CompletionStage<CallFilteringResult> resultFuture = mFilter.startFilterLookup(PASS_RESULT); in testDontBlockNumberWhenEnhancedBlockingEnabled() local
141 assertEquals(PASS_RESULT, resultFuture.toCompletableFuture() in testDontBlockNumberWhenEnhancedBlockingEnabled()
DIncomingCallFilterGraphTest.java94 CompletableFuture<CallFilteringResult> resultFuture = new CompletableFuture<>(); in startFilterLookup() local
95 handler.postDelayed(() -> resultFuture.complete(PASS_CALL_RESULT), 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.java171 Future<File> resultFuture = mExecutorService.submit( in createCombinedTzS2Ranges() local
173 resultFutureList.addLast(resultFuture); in createCombinedTzS2Ranges()
183 Future<File> resultFuture = resultIterator.next(); in createCombinedTzS2Ranges() local
184 if (resultFuture.isDone()) { in createCombinedTzS2Ranges()
188 result = resultFuture.get(); in createCombinedTzS2Ranges()
/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/Telephony/src/com/android/phone/settings/
DRadioInfo.java1142 CompletableFuture<NetworkSlicingConfig> resultFuture = new CompletableFuture<>(); in updateNrStats() local
1143 mTelephonyManager.getNetworkSlicingConfiguration(simpleExecutor, resultFuture::complete); in updateNrStats()
1146 resultFuture.get(DEFAULT_TIMEOUT_MS, MILLISECONDS); in updateNrStats()