Home
last modified time | relevance | path

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

12

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DCarUserServiceTest.java325 spy.removeUser(42, mUserRemovalFuture); in testRemoveUser_binderMethod()
327 verify(spy).removeUser(42, NO_CALLER_RESTRICTIONS, mUserRemovalFuture); in testRemoveUser_binderMethod()
883 UserInfo removeUser = mRegularUser; in testRemoveUser_currentUser_successSetEphemeral() local
884 mockRemoveUserNoCallback(removeUser, UserManager.REMOVE_RESULT_SET_EPHEMERAL); in testRemoveUser_currentUser_successSetEphemeral()
886 removeUser(removeUser.id, mUserRemovalFuture); in testRemoveUser_currentUser_successSetEphemeral()
897 UserInfo removeUser = mRegularUser; in testRemoveUser_alreadyBeingRemoved_success() local
898 mockRemoveUser(removeUser, UserManager.REMOVE_RESULT_ALREADY_BEING_REMOVED); in testRemoveUser_alreadyBeingRemoved_success()
900 removeUser(removeUser.id, mUserRemovalFuture); in testRemoveUser_alreadyBeingRemoved_success()
903 assertHalRemove(currentUser, removeUser); in testRemoveUser_alreadyBeingRemoved_success()
911 UserInfo removeUser = mAdminUser; in testRemoveUser_currentLastAdmin_successSetEphemeral() local
[all …]
DCarUserManagerUnitTest.java253 UserRemovalResult result = mMgr.removeUser(100); in testRemoveUser_success()
260 doThrow(new RemoteException("D'OH!")).when(mService).removeUser(eq(100), any()); in testRemoveUser_remoteException()
263 UserRemovalResult result = mMgr.removeUser(100); in testRemoveUser_remoteException()
270 doThrow(new RuntimeException("D'OH!")).when(mService).removeUser(eq(100), any()); in testRemoveUser_runtimeException()
272 UserRemovalResult result = mMgr.removeUser(100); in testRemoveUser_runtimeException()
614 }).when(mService).removeUser(eq(userId), notNull()); in expectServiceRemoveUserSucceeds()
DUserPreCreatorTest.java179 verify(mUserManager).removeUser(user.id); in verifyUserRemoved()
210 when(mUserManager.removeUser(userId)).thenAnswer(syncRemoveStatus); in mockRemoveUser()
/packages/services/Car/tests/carservice_unit_test/src/android/car/admin/
DCarDevicePolicyManagerUnitTest.java67 RemoveUserResult result = mMgr.removeUser(UserHandle.of(100)); in testRemoveUser_success()
75 doThrow(new RemoteException("D'OH!")).when(mService).removeUser(eq(100), notNull()); in testRemoveUser_remoteException()
78 RemoveUserResult result = mMgr.removeUser(UserHandle.of(100)); in testRemoveUser_remoteException()
86 doThrow(new SecurityException("D'OH!")).when(mService).removeUser(eq(100), notNull()); in testRemoveUser_securityException()
88 assertThrows(SecurityException.class, () -> mMgr.removeUser(UserHandle.of(100))); in testRemoveUser_securityException()
93 assertThrows(NullPointerException.class, () -> mMgr.removeUser(null)); in testRemoveUser_nullUser()
191 }).when(mService).removeUser(eq(userId), notNull()); in mockRemoveUser()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarDevicePolicyManagerTest.java68 RemoveUserResult result = mCarDpm.removeUser(user.getUserHandle()); in testRemoveUser()
95 RemoveUserResult result = mCarDpm.removeUser(user.getUserHandle()); in testRemoveUser_currentUserSetEphemeral()
135 removeUser(user.getIdentifier()); in testCreateUser()
154 removeUser(user.id); in testStartUserInBackground()
173 removeUser(user.id); in testStopUser()
DCarMultiUserTestBase.java140 boolean removed = mUserManager.removeUser(user.id); in setMultiUserFixtures()
169 removeUser(userId); in cleanupUserState()
300 protected void removeUser(@UserIdInt int userId) { in removeUser() method in CarMultiUserTestBase
303 UserRemovalResult result = mCarUserManager.removeUser(userId); in removeUser()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/profiles/
DProfileHelperTest.java305 verify(mMockCarUserManager).removeUser(nonAdminUserId); in testRemoveUser_isAdmin_canRemoveOtherUsers()
324 verify(mMockCarUserManager, never()).removeUser(user2.id); in testRemoveUser_isNonAdmin_cannotRemoveOtherUsers()
349 verify(mMockCarUserManager).removeUser(adminUser.id); in testRemoveUser_removesLastAdminUser_createsAndSwitchesToNewAdminUser()
371 verify(mMockCarUserManager, never()).removeUser(adminUser.id); in testRemoveUser_removesLastAdminUserFailsCreateNewUser_doesNotRemoveOrSwitchUser()
413 verify(mMockCarUserManager).removeUser(removedUser.id); in assertUserRemoved()
511 when(mMockCarUserManager.removeUser(userId)).thenReturn(new UserRemovalResult(status)); in mockRemoveUser()
515 when(mMockCarUserManager.removeUser(anyInt())) in mockRemoveUserSuccess()
/packages/apps/Settings/src/com/android/settings/users/
DUserDetailsSettings.java186 (dialog, which) -> removeUser()); in onCreateDialog()
219 mUserManager.removeUser(mUserInfo.id);
377 private void removeUser() {
378 mUserManager.removeUser(mUserInfo.id);
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/admin/
DCarDevicePolicyServiceTest.java64 mService.removeUser(42, mUserRemovalResult); in testRemoveUser()
66 verify(mCarUserService).removeUser(eq(42), /* hasCallerRestrictions= */ eq(true), in testRemoveUser()
/packages/services/Car/service/src/com/android/car/admin/
DCarDevicePolicyService.java70 public void removeUser(@UserIdInt int userId, AndroidFuture<UserRemovalResult> receiver) { in removeUser() method in CarDevicePolicyService
71 mCarUserService.removeUser(userId, /* hasCallerRestrictions= */ true, receiver); in removeUser()
/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/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/users/
DUserFragment.java124 mRemoveUserButton.setOnClickListener((v) -> removeUser()); in onViewCreated()
197 private void removeUser() { in removeUser() method in UserFragment
200 UserRemovalResult result = mCarUserManager.removeUser(userId); in removeUser()
DProfileUserFragment.java123 removeUser(); in onViewCreated()
203 private void removeUser() { in removeUser() method in ProfileUserFragment
216 mUserManager.removeUser(userToRemove); in removeUser()
/packages/services/Car/service/src/com/android/car/user/
DUserPreCreator.java156 mUserManager.removeUser(userId); in managePreCreatedUsers()
196 mUserManager.removeUser(userId); in removePreCreatedUsers()
DInitialUserSetter.java372 if (!mUm.removeUser(currentUser.id)) { in replaceUser()
456 if (!mUm.removeUser(userId)) { in switchUser()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/admin/
DDevicePolicyFragment.java132 mRemoveUserButton.setOnClickListener((v) -> removeUser()); in onViewCreated()
203 private void removeUser() { in removeUser() method in DevicePolicyFragment
206 RemoveUserResult result = mCarDevicePolicyManager.removeUser(UserHandle.of(userId)); in removeUser()
/packages/services/Car/car-lib/src/android/car/admin/
DCarDevicePolicyManager.java139 public RemoveUserResult removeUser(@NonNull UserHandle user) { in removeUser() method in CarDevicePolicyManager
148 mService.removeUser(userId, future); in removeUser()
DICarDevicePolicyService.aidl27 void removeUser(int userId, in AndroidFuture<UserRemovalResult> receiver); in removeUser() method
/packages/apps/Settings/src/com/android/settings/accounts/
DRemoveUserFragment.java49 um.removeUser(userId); in onCreateDialog()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DUserHalServiceTest.java802 () -> myHalService.removeUser(new RemoveUserRequest())); in testRemoveUser_noHalSupported()
810 () -> mUserHalService.removeUser(request)); in testRemoveUser_nullRequest()
818 () -> mUserHalService.removeUser(request)); in testRemoveUser_noRequestId()
827 () -> mUserHalService.removeUser(request)); in testRemoveUser_noRemovedUserInfo()
837 () -> mUserHalService.removeUser(request)); in testRemoveUser_noUsersInfo()
848 mUserHalService.removeUser(request); in testRemoveUser_HalCalledWithCorrectProp()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowUserHelper.java81 public int removeUser(Context context, UserInfo userInfo) { in removeUser() method in ShadowUserHelper
/packages/services/Car/car-lib/src/android/car/
DICarUserService.aidl38 void removeUser(int userId, in AndroidFuture<UserRemovalResult> receiver); in removeUser() method
/packages/services/Car/tests/CarSecurityPermissionTest/src/com/android/car/admin/
DCarDevicePolicyManagerPermissionTest.java65 () -> mManager.removeUser(UserHandle.of(100))); in testRemoveUserPermission()
/packages/services/Car/tests/CarSecurityPermissionTest/src/com/android/car/user/
DCarUserManagerPermissionTest.java117 () -> mCarUserManager.removeUser(100)); in testRemoveUserPermission()
/packages/services/Car/car-lib/src/android/car/user/
DCarUserManager.java485 public UserRemovalResult removeUser(@UserIdInt int userId) { in removeUser() method in CarUserManager
491 mService.removeUser(userId, future); in removeUser()

12