Home
last modified time | relevance | path

Searched defs:future (Results 1 – 25 of 123) sorted by relevance

12345

/frameworks/base/core/java/com/android/internal/inputmethod/
DCompletableFutureUtil.java44 private static <T> T getValueOrRethrowErrorInternal(@NonNull CompletableFuture<T> future) { in getValueOrRethrowErrorInternal()
66 private static <T> T getValueOrNullInternal(@NonNull CompletableFuture<T> future, in getValueOrNullInternal()
145 public static <T> T getResult(@NonNull CompletableFuture<T> future) { in getResult()
158 public static boolean getBooleanResult(@NonNull CompletableFuture<Boolean> future) { in getBooleanResult()
171 public static int getIntegerResult(@NonNull CompletableFuture<Integer> future) { in getIntegerResult()
193 public static boolean getResultOrFalse(@NonNull CompletableFuture<Boolean> future, in getResultOrFalse()
220 public static int getResultOrZero(@NonNull CompletableFuture<Integer> future, in getResultOrZero()
248 public static <T> T getResultOrNull(@NonNull CompletableFuture<T> future, @Nullable String tag, in getResultOrNull()
DIInputMethodPrivilegedOperations.aidl33 in AndroidFuture future /* T=IBinder */); in createInputContentUriToken()
35 void setInputMethod(String id, in AndroidFuture future /* T=Void */); in setInputMethod()
37 in AndroidFuture future /* T=Void */); in setInputMethodAndSubtype()
39 in AndroidFuture future /* T=Void */); in hideMySoftInput()
41 in AndroidFuture future /* T=Void */); in showMySoftInput()
43 void switchToPreviousInputMethod(in AndroidFuture future /* T=Boolean */); in switchToPreviousInputMethod()
44 void switchToNextInputMethod(boolean onlyCurrentIme, in AndroidFuture future /* T=Boolean */); in switchToNextInputMethod()
45 void shouldOfferSwitchingToNextInputMethod(in AndroidFuture future /* T=Boolean */); in shouldOfferSwitchingToNextInputMethod()
DInputMethodPrivilegedOperations.java180 final AndroidFuture<IBinder> future = new AndroidFuture<>(); in createInputContentUriToken() local
241 final AndroidFuture<Void> future = new AndroidFuture<>(); in setInputMethod() local
264 final AndroidFuture<Void> future = new AndroidFuture<>(); in setInputMethodAndSubtype() local
286 final AndroidFuture<Void> future = new AndroidFuture<>(); in hideMySoftInput() local
308 final AndroidFuture<Void> future = new AndroidFuture<>(); in showMySoftInput() local
351 final AndroidFuture<Boolean> future = new AndroidFuture<>(); in switchToNextInputMethod() local
372 final AndroidFuture<Boolean> future = new AndroidFuture<>(); in shouldOfferSwitchingToNextInputMethod() local
DIRemoteInputConnection.aidl41 in AndroidFuture future /* T=CharSequence */); in getTextBeforeCursor()
44 in AndroidFuture future /* T=CharSequence */); in getTextAfterCursor()
47 in AndroidFuture future /* T=Integer */); in getCursorCapsMode()
50 int flags, in AndroidFuture future /* T=ExtractedText */); in getExtractedText()
106 in AndroidFuture future /* T=CharSequence */); in getSelectedText()
109 int imeDisplayId, in AndroidFuture future /* T=Boolean */); in requestCursorUpdates()
113 in AndroidFuture future /* T=Boolean */); in requestCursorUpdatesWithFilter()
119 int flags, in Bundle opts, in AndroidFuture future /* T=Boolean */); in commitContent()
122 int afterLength, int flags, in AndroidFuture future /* T=SurroundingText */); in getSurroundingText()
DCancellationGroup.java65 boolean tryRegisterFutureOrCancelImmediately(@NonNull CompletableFuture<?> future) { in tryRegisterFutureOrCancelImmediately()
82 void unregisterFuture(@NonNull CompletableFuture<?> future) { in unregisterFuture()
DIRemoteAccessibilityInputConnectionInvoker.java131 final AndroidFuture<SurroundingText> future = new AndroidFuture<>(); in getSurroundingText() local
134 future); in getSurroundingText() local
209 final AndroidFuture<Integer> future = new AndroidFuture<>(); in getCursorCapsMode() local
211 mConnection.getCursorCapsMode(createHeader(), reqModes, future); in getCursorCapsMode() local
/frameworks/base/tests/AttestationVerificationTest/src/android/security/attestationverification/
DSystemAttestationVerificationTest.kt54 val future = CompletableFuture<Int>() in <lambda>() constant
66 val future = CompletableFuture<Int>() in <lambda>() constant
78 val future = CompletableFuture<Int>() in <lambda>() constant
89 val future = CompletableFuture<Int>() in <lambda>() constant
100 val future = CompletableFuture<Int>() in <lambda>() constant
114 val future = CompletableFuture<Int>() in <lambda>() constant
128 val future = CompletableFuture<Int>() in <lambda>() constant
139 val future = CompletableFuture<Int>() in <lambda>() constant
152 val future = CompletableFuture<VerificationToken>() in <lambda>() constant
DPeerDeviceSystemAttestationVerificationTest.kt50 val future = CompletableFuture<Int>() in <lambda>() constant
62 val future = CompletableFuture<Int>() in <lambda>() constant
74 val future = CompletableFuture<Int>() in <lambda>() constant
98 val future = CompletableFuture<Int>() in <lambda>() constant
112 val future = CompletableFuture<Int>() in <lambda>() constant
126 val future = CompletableFuture<Int>() in <lambda>() constant
/frameworks/base/media/tests/mediatestutils/tests/src/java/com/android/media/mediatestutils/
DGetFutureForIntentTest.java54 final var future = getFutureForIntent(mContext, INTENT_ACTION, mPred); in futureCompletes_afterBroadcastFiresPredicatePasses() local
63 final var future = getFutureForIntent(mContext, INTENT_ACTION, mPred); in futureDoesNotComplete_afterBroadcastFiresPredicateFails() local
79 final var future = in futureCompletesExceptionally_afterBroadcastFiresPredicateThrows() local
98 final var future = getFutureForIntent(mContext, INTENT_ACTION, mPred); in doesNotThrow_whenDoubleSet() local
109 final ListenableFuture<Void> future = in unregisterListener_whenComplete() local
125 final ListenableFuture<Void> future = in unregisterListener_whenCancel() local
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/emergency/
DEmergencyStateTrackerTest.java283 CompletableFuture<Integer> future = emergencyStateTracker.startEmergencyCall(testPhone, in startEmergencyCall_radioOff_turnOnRadioHangupCallTurnOffRadio() local
319 CompletableFuture<Integer> future = emergencyStateTracker.startEmergencyCall(testPhone, in startEmergencyCall_radioOnFails_returnsDisconnectCausePowerOff() local
396 CompletableFuture<Integer> future = emergencyStateTracker.startEmergencyCall(testPhone, in startEmergencyCall_satelliteOffFails_returnsDisconnectCauseSatelliteEnabled() local
551 CompletableFuture<Integer> future = emergencyStateTracker.startEmergencyCall(testPhone, in setEmergencyModeDone_notifiesListenersAndCompletesFuture() local
944 CompletableFuture<Integer> future = emergencyStateTracker.startEmergencyCall(phone0, in testStartEmergencyCallWithTestEmergencyNumber() local
974 CompletableFuture<Integer> future = emergencyStateTracker.startEmergencyCall(phone0, in testStartEmergencyCallDuringActiveCall() local
1010 CompletableFuture<Integer> future = emergencyStateTracker.startEmergencyCall(phone0, in testStartEmergencyCallInEcm() local
1038 CompletableFuture<Integer> future = emergencyStateTracker.startEmergencyCall(phone1, in testStartEmergencyCallUsingDifferenPhone() local
1057 CompletableFuture<Integer> future = emergencyStateTracker.startEmergencyCall(phone0, in testEndCallInEcm() local
1128 CompletableFuture<Integer> future = emergencyStateTracker.startEmergencySms(phone0, in testStartEmergencySms() local
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/domainselection/
DSmsDomainSelectionConnectionTest.java109 CompletableFuture<Integer> future = in testRequestDomainSelection() local
121 CompletableFuture<Integer> future = in testOnWlanSelected() local
136 CompletableFuture<Integer> future = in testOnSelectionTerminated() local
149 CompletableFuture<Integer> future = in testOnDomainSelectedPs() local
166 CompletableFuture<Integer> future = in testOnDomainSelectedCs() local
183 CompletableFuture<Integer> future = in testFinishSelection() local
200 CompletableFuture<Integer> future = in testCancelSelection() local
DEmergencySmsDomainSelectionConnectionTest.java124 CompletableFuture<Integer> future = in testOnWlanSelected() local
145 CompletableFuture<Integer> future = in testOnWlanSelectedWithDifferentTransportType() local
183 CompletableFuture<Integer> future = in testOnWlanSelectedWithDifferentTransportTypeAndImsPdn() local
208 CompletableFuture<Integer> future = in testOnWlanSelectedWithDifferentTransportTypeWhilePreferredTransportChanged() local
258 CompletableFuture<Integer> future = in testOnDomainSelectedPs() local
277 CompletableFuture<Integer> future = in testOnDomainSelectedPsWithDifferentTransportType() local
313 CompletableFuture<Integer> future = in testOnDomainSelectedPsWithDifferentTransportTypeAndImsPdn() local
335 CompletableFuture<Integer> future = in testOnDomainSelectedPsWithDifferentTransportTypeAndNotChanged() local
368 CompletableFuture<Integer> future = in testOnDomainSelectedPsWithDifferentTransportTypeWhilePreferredTransportChanged() local
407 CompletableFuture<Integer> future = in testOnDomainSelectedCs() local
[all …]
DNormalCallDomainSelectionConnectionTest.java101 CompletableFuture<Integer> future = in testSelectDomainWifi() local
124 CompletableFuture<Integer> future = in testSelectDomainCs() local
150 CompletableFuture<Integer> future = in testSelectDomainPs() local
176 CompletableFuture<Integer> future = mNormalCallDomainSelectionConnection in testOnSelectionTerminated() local
DEmergencyCallDomainSelectionConnectionTest.java129 CompletableFuture<Integer> future = in testSelectDomainWifi() local
178 CompletableFuture<Integer> future = in testSelectDomainCs() local
216 CompletableFuture<Integer> future = in testSelectDomainPs() local
/frameworks/base/core/java/android/inputmethodservice/
DIRemoteInputConnectionInvoker.java197 final AndroidFuture<CharSequence> future = new AndroidFuture<>(); in getTextAfterCursor() local
199 mConnection.getTextAfterCursor(createHeader(), length, flags, future); in getTextAfterCursor() local
218 final AndroidFuture<CharSequence> future = new AndroidFuture<>(); in getTextBeforeCursor() local
220 mConnection.getTextBeforeCursor(createHeader(), length, flags, future); in getTextBeforeCursor() local
238 final AndroidFuture<CharSequence> future = new AndroidFuture<>(); in getSelectedText() local
240 mConnection.getSelectedText(createHeader(), flags, future); in getSelectedText() local
262 final AndroidFuture<SurroundingText> future = new AndroidFuture<>(); in getSurroundingText() local
265 future); in getSurroundingText() local
283 final AndroidFuture<Integer> future = new AndroidFuture<>(); in getCursorCapsMode() local
285 mConnection.getCursorCapsMode(createHeader(), reqModes, future); in getCursorCapsMode() local
[all …]
/frameworks/base/core/tests/coretests/src/android/animation/
DAutoCancelTest.java66 private void setupAnimators(long startDelay, boolean startLater, final FutureWaiter future) { in setupAnimators()
132 final FutureWaiter future = new FutureWaiter(); in testAutoCancel() local
146 final FutureWaiter future = new FutureWaiter(); in testAutoCancelDelayed() local
160 final FutureWaiter future = new FutureWaiter(); in testAutoCancelTestLater() local
174 final FutureWaiter future = new FutureWaiter(); in testAutoCancelDelayedTestLater() local
DEventsTest.java81 public Canceler(Animator anim, FutureWaiter future) { in Canceler()
111 public Ender(Animator anim, FutureWaiter future) { in Ender()
134 public Pauser(Animator anim, FutureWaiter future) { in Pauser()
157 public Resumer(Animator anim, FutureWaiter future) { in Resumer()
180 public FutureReleaseListener(FutureWaiter future) { in FutureReleaseListener()
189 public FutureReleaseListener(FutureWaiter future, long timeout) { in FutureReleaseListener()
DViewPropertyAnimatorTest.java80 public Canceler(ViewPropertyAnimator anim, FutureWaiter future) { in Canceler()
109 public FutureReleaseListener(FutureWaiter future) { in FutureReleaseListener()
118 public FutureReleaseListener(FutureWaiter future, long timeout) { in FutureReleaseListener()
/frameworks/native/cmds/dumpstate/
DDumpPool.h47 inline void WaitForTask(std::future<std::string> future) { in WaitForTask()
115 auto future = post(duration_title, func); in enqueueTask() local
135 auto future = post(duration_title, func); in enqueueTaskWithFd() local
166 auto future = packaged_task.get_future(); in post() local
/frameworks/base/core/tests/coretests/src/com/android/internal/infra/
DAndroidFutureTest.java45 AndroidFuture<Integer> future = new AndroidFuture<>(); in testGet() local
52 AndroidFuture<Integer> future = new AndroidFuture<>(); in testWhenComplete_AlreadyComplete() local
65 AndroidFuture<Integer> future = new AndroidFuture<>(); in testWhenComplete_NotYetComplete() local
80 AndroidFuture<Integer> future = new AndroidFuture<>(); in testCompleteExceptionally() local
90 AndroidFuture<Integer> future = new AndroidFuture<>(); in testCompleteExceptionally_Listener() local
/frameworks/native/libs/ftl/
Dfuture_test.cpp31 auto future = ftl::defer([](int x) { return x + 1; }, 99); in TEST() local
35 auto future = ftl::yield(42); in TEST() local
40 auto future = ftl::yield(std::move(ptr)); in TEST() local
44 auto future = ftl::yield(123); in TEST() local
108 auto future = ftl::yield(42); in TEST() local
/frameworks/base/core/java/com/android/internal/statusbar/
DAppClipsServiceConnector.java53 CompletableFuture<Boolean> future = new CompletableFuture<>(); in canLaunchCaptureContentActivityForNote() local
63 private void connectToServiceAndProcessRequest(int taskId, CompletableFuture<Boolean> future) { in connectToServiceAndProcessRequest()
/frameworks/base/services/core/java/com/android/server/ondeviceintelligence/callbacks/
DListenableDownloadCallback.java39 private final AndroidFuture future; field in ListenableDownloadCallback
51 AndroidFuture future, in ListenableDownloadCallback()
/frameworks/base/core/java/android/view/inputmethod/
DRemoteInputConnectionImpl.java474 AndroidFuture future /* T=CharSequence */) { in getTextAfterCursor()
496 AndroidFuture future /* T=CharSequence */) { in getTextBeforeCursor()
518 AndroidFuture future /* T=CharSequence */) { in getSelectedText()
540 int afterLength, int flags, AndroidFuture future /* T=SurroundingText */) { in getSurroundingText()
568 AndroidFuture future /* T=Integer */) { in getCursorCapsMode()
585 int flags, AndroidFuture future /* T=ExtractedText */) { in getExtractedText()
1066 int imeDisplayId, AndroidFuture future /* T=Boolean */) { in requestCursorUpdates()
1080 AndroidFuture future /* T=Boolean */) { in requestCursorUpdatesWithFilter()
1154 AndroidFuture future /* T=Boolean */) { in commitContent()
1443 final AndroidFuture<T> future = untypedFuture; in dispatchWithTracing() local
/frameworks/base/services/core/java/com/android/server/pm/
DGentleUpdateHelper.java88 public final CompletableFuture<InstallConstraintsResult> future; field in GentleUpdateHelper.PendingInstallConstraintsCheck
96 CompletableFuture<InstallConstraintsResult> future, in PendingInstallConstraintsCheck()
195 var future = new CompletableFuture<Boolean>(); in checkDeviceIdle() local
254 var future = pendingCheck.future; in processPendingCheck() local

12345