/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/ |
D | CarUserServiceTest.java | 325 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 …]
|
D | CarUserManagerUnitTest.java | 253 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()
|
D | UserPreCreatorTest.java | 179 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/ |
D | CarDevicePolicyManagerUnitTest.java | 67 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/ |
D | CarDevicePolicyManagerTest.java | 68 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()
|
D | CarMultiUserTestBase.java | 140 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/ |
D | ProfileHelperTest.java | 305 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/ |
D | UserDetailsSettings.java | 186 (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/ |
D | CarDevicePolicyServiceTest.java | 64 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/ |
D | CarDevicePolicyService.java | 70 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/ |
D | RestrictedProfileModel.java | 87 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/ |
D | UserFragment.java | 124 mRemoveUserButton.setOnClickListener((v) -> removeUser()); in onViewCreated() 197 private void removeUser() { in removeUser() method in UserFragment 200 UserRemovalResult result = mCarUserManager.removeUser(userId); in removeUser()
|
D | ProfileUserFragment.java | 123 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/ |
D | UserPreCreator.java | 156 mUserManager.removeUser(userId); in managePreCreatedUsers() 196 mUserManager.removeUser(userId); in removePreCreatedUsers()
|
D | InitialUserSetter.java | 372 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/ |
D | DevicePolicyFragment.java | 132 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/ |
D | CarDevicePolicyManager.java | 139 public RemoveUserResult removeUser(@NonNull UserHandle user) { in removeUser() method in CarDevicePolicyManager 148 mService.removeUser(userId, future); in removeUser()
|
D | ICarDevicePolicyService.aidl | 27 void removeUser(int userId, in AndroidFuture<UserRemovalResult> receiver); in removeUser() method
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
D | RemoveUserFragment.java | 49 um.removeUser(userId); in onCreateDialog()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/ |
D | UserHalServiceTest.java | 802 () -> 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/ |
D | ShadowUserHelper.java | 81 public int removeUser(Context context, UserInfo userInfo) { in removeUser() method in ShadowUserHelper
|
/packages/services/Car/car-lib/src/android/car/ |
D | ICarUserService.aidl | 38 void removeUser(int userId, in AndroidFuture<UserRemovalResult> receiver); in removeUser() method
|
/packages/services/Car/tests/CarSecurityPermissionTest/src/com/android/car/admin/ |
D | CarDevicePolicyManagerPermissionTest.java | 65 () -> mManager.removeUser(UserHandle.of(100))); in testRemoveUserPermission()
|
/packages/services/Car/tests/CarSecurityPermissionTest/src/com/android/car/user/ |
D | CarUserManagerPermissionTest.java | 117 () -> mCarUserManager.removeUser(100)); in testRemoveUserPermission()
|
/packages/services/Car/car-lib/src/android/car/user/ |
D | CarUserManager.java | 485 public UserRemovalResult removeUser(@UserIdInt int userId) { in removeUser() method in CarUserManager 491 mService.removeUser(userId, future); in removeUser()
|