Searched refs:guestUser (Results 1 – 4 of 4) sorted by relevance
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/profiles/ |
D | ProfileHelperTest.java | 382 UserInfo guestUser = createGuestUser(baseId + 1); in testRemoveUser_removeForegroundUser_callsSwitchToGuest() local 384 mockCreateGuest(DEFAULT_GUEST_NAME, UserCreationResult.STATUS_SUCCESSFUL, guestUser); in testRemoveUser_removeForegroundUser_callsSwitchToGuest() 387 assertUserRemoved(ProfileHelper.REMOVE_PROFILE_RESULT_SUCCESS, guestUser, currentUser); in testRemoveUser_removeForegroundUser_callsSwitchToGuest() 399 UserInfo guestUser = createGuestUser(baseId + 1); in testRemoveUser_removeForegroundUser_switchFails_returnsSetEphemeralResult() local 401 mockCreateGuest(DEFAULT_GUEST_NAME, UserCreationResult.STATUS_SUCCESSFUL, guestUser); in testRemoveUser_removeForegroundUser_switchFails_returnsSetEphemeralResult() 404 assertUserRemoved(ProfileHelper.REMOVE_PROFILE_RESULT_SWITCH_FAILED, guestUser, in testRemoveUser_removeForegroundUser_switchFails_returnsSetEphemeralResult() 456 UserInfo guestUser = createGuestUser(13); in testCreateNewOrFindExistingGuest_ifGuestExists_returnsExistingGuest() local 458 mockGetUsers(user1, user2, guestUser); in testCreateNewOrFindExistingGuest_ifGuestExists_returnsExistingGuest() 461 when(mMockUserManager.findCurrentGuestUser()).thenReturn(guestUser); in testCreateNewOrFindExistingGuest_ifGuestExists_returnsExistingGuest() 464 assertThat(guest).isEqualTo(guestUser); in testCreateNewOrFindExistingGuest_ifGuestExists_returnsExistingGuest()
|
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | CarUserManagerTest.java | 228 UserInfo guestUser = createGuest(); in testGuestUserResumeToNewGuestUser() 229 int guestUserId = guestUser.id; in testGuestUserResumeToNewGuestUser() 269 .that(newGuest.name).isNotEqualTo(guestUser.name); in testGuestUserResumeToNewGuestUser() 288 UserInfo guestUser = createGuest(); in testSecuredGuestUserResumeToSameUser() 289 int guestUserId = guestUser.id; in testSecuredGuestUserResumeToSameUser() 313 assertWithMessage("current user remains guest user (%s)", guestUser) in testSecuredGuestUserResumeToSameUser()
|
/packages/apps/Car/Settings/src/com/android/car/settings/profiles/ |
D | ProfileHelper.java | 186 UserInfo guestUser = createNewOrFindExistingGuest(context); in removeThisProfileAndSwitchToGuest() local 187 if (guestUser == null) { in removeThisProfileAndSwitchToGuest() 198 if (!switchProfile(guestUser.id)) { in removeThisProfileAndSwitchToGuest()
|
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/permission/domain/usecase/ |
D | GetPermissionUsageUseCaseTest.kt | 71 private val guestUser = UserHandle.of(345) constant 116 PackageAppOpUsageModel(guestUserPkgName, guestAppOpsUsage, guestUser.identifier) in <lambda>()
|