Home
last modified time | relevance | path

Searched refs:removeUser (Results 1 – 25 of 25) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/android/car/userlib/
DCarUserManagerHelperTest.java465 assertThat(mCarUserManagerHelper.removeUser(mSystemUser, GUEST_USER_NAME)).isFalse(); in testCannotRemoveSystemUser()
473 doReturn(true).when(mUserManager).removeUser(idToRemove); in testAdminsCanRemoveOtherUsers()
477 assertThat(mCarUserManagerHelper.removeUser(userToRemove, GUEST_USER_NAME)).isTrue(); in testAdminsCanRemoveOtherUsers()
478 verify(mUserManager).removeUser(idToRemove); in testAdminsCanRemoveOtherUsers()
489 doReturn(true).when(mUserManager).removeUser(anyInt()); in testNonAdminsCanNotRemoveOtherUsers()
492 assertThat(mCarUserManagerHelper.removeUser(otherUser, GUEST_USER_NAME)).isFalse(); in testNonAdminsCanNotRemoveOtherUsers()
493 verify(mUserManager, never()).removeUser(otherUser.id); in testNonAdminsCanNotRemoveOtherUsers()
499 assertThat(mCarUserManagerHelper.removeUser(mSystemUser, GUEST_USER_NAME)).isFalse(); in testRemoveLastActiveUser()
504 assertThat(mCarUserManagerHelper.removeUser(adminInfo, GUEST_USER_NAME)) in testRemoveLastActiveUser()
521 mCarUserManagerHelper.removeUser(adminInfo, GUEST_USER_NAME); in testRemoveLastAdminUser()
[all …]
/packages/apps/Settings/src/com/android/settings/users/
DRestrictedProfileSettings.java127 removeUser(); in onCreateDialog()
149 private void removeUser() { in removeUser() method in RestrictedProfileSettings
152 mUserManager.removeUser(mUser.getIdentifier()); in removeUser()
DUserDetailsSettings.java175 removeUser(); in onCreateDialog()
210 void removeUser() {
211 mUserManager.removeUser(mUserInfo.id);
DUserSettings.java725 mUserManager.removeUser(mRemovingUserId); in removeUserNow()
740 getContext().getSystemService(UserManager.class).removeUser(UserHandle.myUserId()); in removeThisUser()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/users/
DRestrictedProfileSettings.java127 removeUser(); in onCreateDialog()
149 private void removeUser() { in removeUser() method in RestrictedProfileSettings
152 mUserManager.removeUser(mUser.getIdentifier()); in removeUser()
DUserDetailsSettings.java175 removeUser(); in onCreateDialog()
210 void removeUser() {
211 mUserManager.removeUser(mUserInfo.id);
DUserSettings.java721 mUserManager.removeUser(mRemovingUserId); in removeUserNow()
736 getContext().getSystemService(UserManager.class).removeUser(UserHandle.myUserId()); in removeThisUser()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/users/
DChooseNewAdminPreferenceControllerTest.java124 verify(mCarUserManagerHelper).removeUser(eq(TEST_ADMIN_USER), anyString()); in testAssignNewAdminAndRemoveOldAdmin_removeUserCalled()
129 when(mCarUserManagerHelper.removeUser(TEST_ADMIN_USER, in testAssignNewAdminAndRemoveOldAdmin_success_noErrorDialog()
140 when(mCarUserManagerHelper.removeUser(TEST_ADMIN_USER, in testAssignNewAdminAndRemoveOldAdmin_failure_errorDialog()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/
DRestrictedProfileModel.java87 public void removeUser() { in removeUser() method in RestrictedProfileModel
94 mUserManager.removeUser(restrictedUserHandle); in removeUser()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowCarUserManagerHelper.java162 protected boolean removeUser(UserInfo userInfo, String guestUserName) { in removeUser() method in ShadowCarUserManagerHelper
163 return sMockInstance.removeUser(userInfo, guestUserName); in removeUser()
/packages/services/Car/tests/robotests/src/com/android/car/users/
DCarUserManagerHelperRoboTest.java183 mHelper.removeUser(user1, "testGuest"); in testRemoveCurrentProcessUserSwitchesToGuestUser()
187 assertThat(shadowUserManager.removeUser(10)).isTrue(); in testRemoveCurrentProcessUserSwitchesToGuestUser()
/packages/services/Car/user/car-user-lib/src/android/car/userlib/
DCarUserManagerHelper.java875 public boolean removeUser(UserInfo userInfo, String guestUserName) { in removeUser() method in CarUserManagerHelper
902 return mUserManager.removeUser(userInfo.id); in removeUser()
918 return mUserManager.removeUser(userInfo.id); in removeLastAdmin()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accounts/
DRemoveUserFragment.java49 um.removeUser(userId); in onCreateDialog()
/packages/apps/Settings/src/com/android/settings/accounts/
DRemoveUserFragment.java49 um.removeUser(userId); in onCreateDialog()
/packages/apps/Car/Settings/src/com/android/car/settings/users/
DChooseNewAdminPreferenceController.java92 if (!getCarUserManagerHelper().removeUser(mAdminInfo, in removeOldAdmin()
DUserDetailsBaseFragment.java46 if (mCarUserManagerHelper.removeUser(
/packages/services/Car/tests/robotests/src/com/android/car/testutils/shadow/
DShadowUserManager.java111 public boolean removeUser(int userId) { in removeUser() method in ShadowUserManager
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarPowerManagementServiceTest.java740 verify(mUserManager, times(1)).removeUser(userId); in verifyUserRemoved()
744 verify(mUserManager, never()).removeUser(userId); in verifyUserNotRemoved()
/packages/apps/TimeZoneData/testing/xts/src/com/android/timezone/xts/
DTimeZoneUpdateHostTest.java251 device.removeUser(userId); in testInstallNewerRulesVersion_secondaryUser()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/
DPreProvisioningActivity.java260 mController.removeUser(d.getUserId()); in onPositiveButtonClick()
DPreProvisioningController.java743 public void removeUser(int userProfileId) { in removeUser() method in PreProvisioningController
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DSecurityFragment.java396 mRestrictedProfile.removeUser(); in pinFragmentDone()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/specialaccess/deviceadmin/
DDeviceAdminAdd.java369 um.removeUser(userId); in onCreate()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/deviceadmin/
DDeviceAdminAdd.java418 um.removeUser(userId); in onCreate()
/packages/services/Car/service/src/com/android/car/
DCarPowerManagementService.java473 mUserManager.removeUser(targetUserId); in switchUserOnResumeIfNecessary()