Home
last modified time | relevance | path

Searched refs:mockAmStartUserInBackground (Results 1 – 3 of 3) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/android/car/test/mocks/
DAndroidMockitoHelperTest.java21 import static android.car.test.mocks.AndroidMockitoHelper.mockAmStartUserInBackground;
137 mockAmStartUserInBackground(TEST_USER_ID, true); in testMockAmStartUserInBackground_true()
144 mockAmStartUserInBackground(TEST_USER_ID, false); in testMockAmStartUserInBackground_false()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DCarUserServiceTest.java19 import static android.car.test.mocks.AndroidMockitoHelper.mockAmStartUserInBackground;
2420 mockAmStartUserInBackground(TEST_USER_ID, true); in testStartUser_onDefaultDisplay_notPassengerOnly()
2438 mockAmStartUserInBackground(TEST_USER_ID, true); in testStartUser_withoutDisplayId_startsUserInBackground()
2453 mockAmStartUserInBackground(newUser.getIdentifier(), true); in testStartUserInBackground_success()
2477 mockAmStartUserInBackground(TEST_USER_ID, false); in testStartUserInBackground_fail()
2491 mockAmStartUserInBackground(newUser.getIdentifier(), true); in testStartUserInBackground_currentUser()
2504 mockAmStartUserInBackground(TEST_USER_ID, true); in testStartUserInBackground_userDoesNotExist()
/packages/services/Car/libs/car-test-lib/src/android/car/test/mocks/
DAndroidMockitoHelper.java107 public static void mockAmStartUserInBackground(@UserIdInt int userId, boolean result) in mockAmStartUserInBackground() method in AndroidMockitoHelper