Searched refs:AndroidAsyncFuture (Results 1 – 12 of 12) sorted by relevance
35 import android.car.util.concurrent.AndroidAsyncFuture;522 AndroidAsyncFuture<UserCreationResult> asyncFuture = new AndroidAsyncFuture<>(future); in mockCreateUserFail()531 .thenReturn(new AndroidAsyncFuture<>(future)); in mockCreateUser()537 when(mMockCarUserManager.createGuest(name)).thenReturn(new AndroidAsyncFuture<>(future)); in mockCreateGuest()544 when(mMockCarUserManager.switchUser(anyInt())).thenReturn(new AndroidAsyncFuture<>(future)); in mockSwitchUserSuccess()551 when(mMockCarUserManager.switchUser(anyInt())).thenReturn(new AndroidAsyncFuture<>(future)); in mockSwitchUserFailure()
31 public final class AndroidAsyncFuture<T> implements AsyncFuture<T> { class36 public AndroidAsyncFuture(@NonNull AndroidFuture<T> future) { in AndroidAsyncFuture() method in AndroidAsyncFuture
44 private AndroidAsyncFuture<Integer> mAndroidAsyncFuture;52 mAndroidAsyncFuture = new AndroidAsyncFuture<Integer>(mFuture); in setupMocks()
43 import android.car.util.concurrent.AndroidAsyncFuture;585 return new AndroidAsyncFuture<>(future); in switchUser()616 return new AndroidAsyncFuture<>(future); in logoutUser()626 private AndroidAsyncFuture<UserSwitchResult> newSwitchResultForFailure( in newSwitchResultForFailure()630 return new AndroidAsyncFuture<>(future); in newSwitchResultForFailure()649 return new AndroidAsyncFuture<>(future); in createGuest()678 return new AndroidAsyncFuture<>(future); in createUser()1064 return new AndroidAsyncFuture<>(future); in setUserIdentificationAssociation()1070 return handleExceptionFromCarService(e, new AndroidAsyncFuture<>(future)); in setUserIdentificationAssociation()
93 private AndroidAsyncFuture<UserSwitchResult> privateMethod(97 return new AndroidAsyncFuture<>(future);
33 import android.car.util.concurrent.AndroidAsyncFuture;197 .thenReturn(new AndroidAsyncFuture<>(future)); in mockCreateUser()
38 import android.car.util.concurrent.AndroidAsyncFuture;128 .thenReturn(new AndroidAsyncFuture<>(future)); in newProfileConfirmed_invokesCreateNewUser()
785 android.car.util.concurrent AndroidAsyncFuture AndroidAsyncFuture AndroidAsyncFuture(AndroidFuture<…786 android.car.util.concurrent AndroidAsyncFuture T get()787 android.car.util.concurrent AndroidAsyncFuture T get(long timeout, TimeUnit unit)788 android.car.util.concurrent AndroidAsyncFuture AsyncFuture<T> whenCompleteAsync(BiConsumer<? super …
701 android.car.util.concurrent AndroidAsyncFuture T get()702 android.car.util.concurrent AndroidAsyncFuture T get(long timeout, TimeUnit unit)703 android.car.util.concurrent AndroidAsyncFuture AsyncFuture<T> whenCompleteAsync(BiConsumer<? super …
692 android.car.util.concurrent AndroidAsyncFuture T get()693 android.car.util.concurrent AndroidAsyncFuture T get(long timeout, TimeUnit unit)694 android.car.util.concurrent AndroidAsyncFuture AsyncFuture<T> whenCompleteAsync(BiConsumer<? super …
758 android.car.util.concurrent AndroidAsyncFuture AsyncFuture<T> whenCompleteAsync(BiConsumer<? super …759 android.car.util.concurrent AndroidAsyncFuture T get()760 android.car.util.concurrent AndroidAsyncFuture T get(long timeout, TimeUnit unit)
2210 class @hiddenOnly @hide AndroidAsyncFuture package android.car.util.concurrent