Home
last modified time | relevance | path

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

123

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DCarUserManagerUnitTest.java175 AndroidFuture<UserSwitchResult> future = mMgr.switchUser(11); in testSwitchUser_success() local
188 AndroidFuture<UserSwitchResult> future = mMgr.switchUser(11); in testSwitchUser_noUserSwitchability() local
201 AndroidFuture<UserSwitchResult> future = mMgr.switchUser(11); in testSwitchUser_remoteException() local
250 AndroidFuture<UserCreationResult> future = mMgr.createUser("dude", "sweet", 42); in testCreateUser_withType_success() local
271 AndroidFuture<UserCreationResult> future = mMgr.createUser("dude", "sweet", 42); in testCreateUser_withType_remoteException() local
286 AndroidFuture<UserCreationResult> future = mMgr.createUser("dude", 42); in testCreateUser_success() local
307 AndroidFuture<UserCreationResult> future = mMgr.createUser("dude", 42); in testCreateUser_remoteException() local
322 AndroidFuture<UserCreationResult> future = mMgr.createGuest("dudeGuest"); in testCreateGuest_success() local
344 AndroidFuture<UserCreationResult> future = mMgr.createGuest("dudeGuest"); in testCreateGuest_remoteException() local
427 AndroidFuture<UserIdentificationAssociationResponse> future = in testSetUserIdentificationAssociation_remoteException() local
[all …]
DExperimentalCarUserManagerUnitTest.java75 AndroidFuture<UserCreationResult> future = mManager.createDriver(name, true); in testCreateDriver_Success_Admin() local
89 AndroidFuture<UserCreationResult> future = mManager.createDriver(name, false); in testCreateDriver_Success_NonAdmin() local
101 AndroidFuture<UserCreationResult> future = mManager.createDriver("test driver", false); in testCreateDriver_Error() local
125 AndroidFuture<UserSwitchResult> future = mManager.switchDriver(10); in testSwitchDriver_Success() local
133 AndroidFuture<UserSwitchResult> future = mManager.switchDriver(20); in testSwitchDriver_Error() local
189 AndroidFuture<UserCreationResult> future = new AndroidFuture<>(); in expectCreateDriverSucceed() local
212 AndroidFuture<UserSwitchResult> future = (AndroidFuture<UserSwitchResult>) invocation in expectSwitchDriverSucceed() local
/packages/apps/Dialer/java/com/android/dialer/metrics/
DFutureTimer.java75 public <T> void applyTiming(ListenableFuture<T> future, String eventName) { in applyTiming()
84 ListenableFuture<T> future, String eventName, @LogCatMode int logCatMode) { in applyTiming()
95 ListenableFuture<T> future, Function<T, String> eventNameFromResultFunction) { in applyTiming()
100 ListenableFuture<T> future, in applyTiming()
/packages/apps/Contacts/src/com/android/contacts/util/concurrent/
DFuturesUtil.java26 public static <V> ListenableFuture<V> withTimeout(final ListenableFuture<V> future, long time, in withTimeout()
39 public static <V> ListenableFuture<V> withTimeout(final ListenableFuture<V> future, long time, in withTimeout()
/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/metadatasynchronizer/
DMetadataPoolImpl.java71 ListenableFuture<TotalCaptureResultProxy> future = getOrCreateFuture(timestamp); in removeMetadataFuture() local
92 SettableFuture<TotalCaptureResultProxy> future = getOrCreateFuture(timestamp); in update() local
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/util/
DFutureListener.java20 public void onFutureDone(Future<T> future); in onFutureDone()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DJobLimiter.java53 public synchronized void setFuture(Future<T> future) { in setFuture()
137 JobWrapper<T> future = new JobWrapper<T>(Utils.checkNotNull(job), listener); in submit() local
155 public synchronized void onFutureDone(Future future) { in onFutureDone()
/packages/services/Car/service/src/com/android/car/garagemode/
DController.java77 public void onStateChanged(int state, CompletableFuture<Void> future) { in onStateChanged()
146 void initiateGarageMode(CompletableFuture<Void> future) { in initiateGarageMode()
190 private void handleShutdownPrepare(CompletableFuture<Void> future) { in handleShutdownPrepare()
DGarageMode.java205 void enterGarageMode(CompletableFuture<Void> future) { in enterGarageMode()
290 private void updateFuture(CompletableFuture<Void> future) { in updateFuture()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarLocationServiceTest.java334 CompletableFuture<Void> future = new CompletableFuture<>(); in testStoresLocationUponShutdownPrepare() local
380 CompletableFuture<Void> future = new CompletableFuture<>(); in testDoesNotStoreNullLocation() local
425 CompletableFuture<Void> future = new CompletableFuture<>(); in testDeletesCacheFileUponSuspendExitWhileMoving() local
445 CompletableFuture<Void> future = new CompletableFuture<>(); in testRegistersForDrivingStateChangesUponSuspendExit() local
/packages/apps/Car/Settings/src/com/android/car/settings/users/
DUserHelper.java166 private UserInfo getUserInfo(AndroidFuture<UserCreationResult> future) { in getUserInfo()
217 AndroidFuture<UserCreationResult> future = in createNewAdminUser() local
237 AndroidFuture<UserCreationResult> future = mCarUserManager.createGuest(mDefaultGuestName); in createNewOrFindExistingGuest() local
DAddNewUserTask.java50 AndroidFuture<UserCreationResult> future = mCarUserManager.createUser(userNames[0], in doInBackground() local
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DRemoveAccountPreferenceControllerTest.java197 AccountManagerFuture<Bundle> future = mock(AccountManagerFuture.class); in confirmRemove_shouldRemoveAccount() local
231 AccountManagerFuture<Bundle> future = mock(AccountManagerFuture.class); in confirmRemove_activityGone_shouldSilentlyRemoveAccount() local
/packages/apps/Dialer/java/com/android/dialer/precall/
DPreCallCoordinator.java72 ListenableFuture<OutputT> future, in listen()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DPanoramaMetadataSupport.java78 public void onFutureDone(Future<PanoramaMetadata> future) { in onFutureDone()
/packages/apps/Dialer/java/com/android/voicemail/impl/protocol/
DVvm3Subscriber.java246 RequestFuture<String> future = RequestFuture.newFuture(); in getSelfProvisionResponse() local
275 RequestFuture<String> future = RequestFuture.newFuture(); in clickSubscribeLink() local
304 RequestFuture<String> future = RequestFuture.newFuture(); in vvm3XmlRequest() local
/packages/services/Car/car-lib/src/android/car/user/
DCarUserManager.java217 AndroidFuture<UserSwitchResult> future = new AndroidFuture<UserSwitchResult>() { in switchUser() local
241 AndroidFuture<UserSwitchResult> future = new AndroidFuture<>(); in newSwitchResuiltForFailure() local
257 AndroidFuture<UserCreationResult> future = new AndroidFuture<UserCreationResult>() { in createUser() local
486 AndroidFuture<UserIdentificationAssociationResponse> future = in setUserIdentificationAssociation() local
/packages/apps/Camera2/src/com/android/camera/async/
DFutures2.java72 final ListenableFuture<T> future) { in nonCancellationPropagating()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DBitmapLoader.java49 public void onFutureDone(Future<Bitmap> future) { in onFutureDone()
/packages/apps/DocumentsUI/src/com/android/documentsui/services/
DFileOperationService.java254 Future<?> future = getExecutorService(operation.getOpType()).submit(job); in handleOperation() local
495 private final Future<?> future; field in FileOperationService.JobRecord
497 public JobRecord(Job job, Future<?> future) { in JobRecord()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/users/
DAddNewUserTaskTest.java120 AndroidFuture<UserCreationResult> future = new AndroidFuture<>(); in mockCreateUser() local
DUserHelperTest.java494 AndroidFuture<UserCreationResult> future = new AndroidFuture<>(); in mockCreateUserFail() local
502 AndroidFuture<UserCreationResult> future = new AndroidFuture<>(); in mockCreateUser() local
508 AndroidFuture<UserCreationResult> future = new AndroidFuture<>(); in mockCreateGuest() local
514 AndroidFuture<UserSwitchResult> future = new AndroidFuture<>(); in mockSwitchUserSuccess() local
/packages/services/Car/car-test-lib/src/android/car/test/mocks/
DAndroidMockitoHelper.java239 public static <T> T getResult(@NonNull AndroidFuture<T> future) in getResult()
248 public static <T> T getResult(@NonNull AndroidFuture<T> future, long timeoutMs) in getResult()
/packages/apps/Dialer/java/com/android/dialer/common/concurrent/
DUiListener.java92 @NonNull ListenableFuture<OutputT> future, in listen()
DSupportUiListener.java94 @NonNull ListenableFuture<OutputT> future, in listen()

123