Searched refs:guestUser (Results 1 – 3 of 3) sorted by relevance
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | CarUserManagerTest.java | 102 UserInfo guestUser = createGuest(); in testGuestUserResumeToNewGuestUser() local 103 int guestUserId = guestUser.id; in testGuestUserResumeToNewGuestUser() 139 .that(newGuest.name).isNotEqualTo(guestUser.name); in testGuestUserResumeToNewGuestUser() 150 UserInfo guestUser = createGuest(); in testSecuredGuestUserResumeToSameUser() local 151 int guestUserId = guestUser.id; in testSecuredGuestUserResumeToSameUser() 172 assertWithMessage("current user remains guest user (%s)", guestUser) in testSecuredGuestUserResumeToSameUser()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/profiles/ |
D | ProfileHelperTest.java | 383 UserInfo guestUser = createGuestUser(baseId + 1); in testRemoveUser_removeForegroundUser_callsSwitchToGuest() local 385 mockCreateGuest(DEFAULT_GUEST_NAME, UserCreationResult.STATUS_SUCCESSFUL, guestUser); in testRemoveUser_removeForegroundUser_callsSwitchToGuest() 388 assertUserRemoved(ProfileHelper.REMOVE_PROFILE_RESULT_SUCCESS, guestUser, currentUser); in testRemoveUser_removeForegroundUser_callsSwitchToGuest() 400 UserInfo guestUser = createGuestUser(baseId + 1); in testRemoveUser_removeForegroundUser_switchFails_returnsSetEphemeralResult() local 402 mockCreateGuest(DEFAULT_GUEST_NAME, UserCreationResult.STATUS_SUCCESSFUL, guestUser); in testRemoveUser_removeForegroundUser_switchFails_returnsSetEphemeralResult() 405 assertUserRemoved(ProfileHelper.REMOVE_PROFILE_RESULT_SWITCH_FAILED, guestUser, in testRemoveUser_removeForegroundUser_switchFails_returnsSetEphemeralResult() 457 UserInfo guestUser = createGuestUser(13); in testCreateNewOrFindExistingGuest_ifGuestExists_returnsExistingGuest() local 459 mockGetUsers(user1, user2, guestUser); in testCreateNewOrFindExistingGuest_ifGuestExists_returnsExistingGuest() 462 when(mMockUserManager.findCurrentGuestUser()).thenReturn(guestUser); in testCreateNewOrFindExistingGuest_ifGuestExists_returnsExistingGuest() 465 assertThat(guest).isEqualTo(guestUser); in testCreateNewOrFindExistingGuest_ifGuestExists_returnsExistingGuest()
|
/packages/apps/Car/Settings/src/com/android/car/settings/profiles/ |
D | ProfileHelper.java | 177 UserInfo guestUser = createNewOrFindExistingGuest(context); in removeThisProfileAndSwitchToGuest() local 178 if (guestUser == null) { in removeThisProfileAndSwitchToGuest() 189 if (!switchProfile(guestUser.id)) { in removeThisProfileAndSwitchToGuest()
|