/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/ |
D | CarUserServiceTest.java | 262 spy.removeUser(42, mUserRemovalResultCallbackImpl); in testRemoveUser_binderMethod() 264 verify(spy).removeUser(42, /* hasCallerRestrictions= */ false, in testRemoveUser_binderMethod() 949 UserHandle removeUser = mRegularUser; in testRemoveUser_currentUser_successSetEphemeral() local 950 int removedUserId = removeUser.getIdentifier(); in testRemoveUser_currentUser_successSetEphemeral() 951 mockRemoveUserNoCallback(removeUser, UserManager.REMOVE_RESULT_DEFERRED); in testRemoveUser_currentUser_successSetEphemeral() 953 removeUser(removedUserId, mUserRemovalResultCallbackImpl); in testRemoveUser_currentUser_successSetEphemeral() 964 UserHandle removeUser = mRegularUser; in testRemoveUser_alreadyBeingRemoved_success() local 965 int removedUserId = removeUser.getIdentifier(); in testRemoveUser_alreadyBeingRemoved_success() 966 mockRemoveUser(removeUser, UserManager.REMOVE_RESULT_ALREADY_BEING_REMOVED); in testRemoveUser_alreadyBeingRemoved_success() 968 removeUser(removedUserId, mUserRemovalResultCallbackImpl); in testRemoveUser_alreadyBeingRemoved_success() [all …]
|
D | BaseCarUserServiceTestCase.java | 496 protected void removeUser(@UserIdInt int userId, in removeUser() method in BaseCarUserServiceTestCase 498 mCarUserService.removeUser(userId, resultCallbackImpl); in removeUser() 502 protected void removeUser(@UserIdInt int userId, boolean hasCallerRestrictions, in removeUser() method in BaseCarUserServiceTestCase 504 mCarUserService.removeUser(userId, hasCallerRestrictions, resultCallbackImpl); in removeUser() 975 verify(mMockedUserManager).removeUser(UserHandle.of(userId)); in verifyUserRemoved() 980 verify(mMockedUserManager, never()).removeUser(any()); in verifyNoUserRemoved() 1065 verify(mUserHal, never()).removeUser(any()); in assertNoHalUserRemoval() 1069 @NonNull UserHandle removeUser) { in assertHalRemove() argument 1070 assertHalRemove(currentUser, removeUser, /* overrideDevicePolicy= */ false); in assertHalRemove() 1073 protected void assertHalRemove(@NonNull UserHandle currentUser, @NonNull UserHandle removeUser, in assertHalRemove() argument [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/android/car/admin/ |
D | CarDevicePolicyManagerUnitTest.java | 71 RemoveUserResult result = mMgr.removeUser(UserHandle.of(100)); in testRemoveUser_success() 79 doThrow(new RemoteException("D'OH!")).when(mService).removeUser(eq(100), notNull()); in testRemoveUser_remoteException() 82 RemoveUserResult result = mMgr.removeUser(UserHandle.of(100)); in testRemoveUser_remoteException() 90 doThrow(new SecurityException("D'OH!")).when(mService).removeUser(eq(100), notNull()); in testRemoveUser_securityException() 92 assertThrows(SecurityException.class, () -> mMgr.removeUser(UserHandle.of(100))); in testRemoveUser_securityException() 97 assertThrows(NullPointerException.class, () -> mMgr.removeUser(null)); in testRemoveUser_nullUser() 196 }).when(mService).removeUser(eq(userId), notNull()); in mockRemoveUser()
|
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/data/repository/ |
D | FakeUserRepositoryTest.kt | 57 fun removeUser() = runTest { in <lambda>() method in com.android.intentresolver.data.repository.FakeUserRepositoryTest 61 repo.removeUser(workUser) in <lambda>() 64 repo.removeUser(personalUser) in <lambda>() 102 repo.removeUser(workUser) in <lambda>()
|
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | CarDevicePolicyManagerTest.java | 70 RemoveUserResult result = mCarDpm.removeUser(user.getUserHandle()); in testRemoveUser() 97 RemoveUserResult result = mCarDpm.removeUser(user.getUserHandle()); in testRemoveUser_currentUserSetEphemeral() 139 removeUser(user.getIdentifier()); in testCreateUser() 165 removeUser(user.getIdentifier()); in testCreateAdminUser() 193 removeUser(user.getIdentifier()); in testCreateGuestUser()
|
D | CarMultiUserTestBase.java | 154 boolean removed = mUserManager.removeUser(user.id); in setMultiUserFixtures() 187 mUserManager.removeUser(userId); in cleanupUserState() 340 protected void removeUser(@UserIdInt int userId) throws Exception { in removeUser() method in CarMultiUserTestBase 343 mCarUserManager.removeUser(new UserRemovalRequest.Builder( in removeUser()
|
/packages/services/Car/tests/CarLibUnitTest/src/android/car/user/ |
D | CarUserManagerUnitTest.java | 401 mMgr.removeUser(new UserRemovalRequest.Builder( in testRemoveUser_success() 411 UserRemovalResult result = mMgr.removeUser(100); in testRemoveUserId_success() 418 doThrow(new RemoteException("D'OH!")).when(mService).removeUser(eq(100), any()); in testRemoveUser_remoteException() 421 mMgr.removeUser(new UserRemovalRequest.Builder( in testRemoveUser_remoteException() 429 doThrow(new RemoteException("D'OH!")).when(mService).removeUser(eq(100), any()); in testRemoveUserId_remoteException() 432 UserRemovalResult result = mMgr.removeUser(100); in testRemoveUserId_remoteException() 439 doThrow(new RuntimeException("D'OH!")).when(mService).removeUser(eq(100), any()); in testRemoveUser_runtimeException() 441 mMgr.removeUser(new UserRemovalRequest.Builder( in testRemoveUser_runtimeException() 449 doThrow(new RuntimeException("D'OH!")).when(mService).removeUser(eq(100), any()); in testRemoveUserId_runtimeException() 451 UserRemovalResult result = mMgr.removeUser(100); in testRemoveUserId_runtimeException() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/profiles/ |
D | ProfileHelperTest.java | 304 verify(mMockCarUserManager).removeUser(nonAdminUserId); in testRemoveUser_isAdmin_canRemoveOtherUsers() 323 verify(mMockCarUserManager, never()).removeUser(user2.id); in testRemoveUser_isNonAdmin_cannotRemoveOtherUsers() 348 verify(mMockCarUserManager).removeUser(adminUser.id); in testRemoveUser_removesLastAdminUser_createsAndSwitchesToNewAdminUser() 370 verify(mMockCarUserManager, never()).removeUser(adminUser.id); in testRemoveUser_removesLastAdminUserFailsCreateNewUser_doesNotRemoveOrSwitchUser() 412 verify(mMockCarUserManager).removeUser(removedUser.id); in assertUserRemoved() 510 when(mMockCarUserManager.removeUser(userId)).thenReturn(new UserRemovalResult(status)); in mockRemoveUser() 514 when(mMockCarUserManager.removeUser(anyInt())) in mockRemoveUserSuccess()
|
/packages/modules/AdServices/sdksandbox/tests/testutils/src/android/app/sdksandbox/hosttestutils/ |
D | SecondaryUserUtils.java | 68 removeUser(userBeingRemoved); in removeSecondaryUserIfNecessary() 85 private void removeUser(int userId) throws Exception { in removeUser() method in SecondaryUserUtils
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/users/ |
D | RestrictedProfileModel.java | 83 public void removeUser() { in removeUser() method in RestrictedProfileModel 90 mUserManager.removeUser(restrictedUserHandle); in removeUser()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/ |
D | RestrictedProfileModel.java | 83 public void removeUser() { in removeUser() method in RestrictedProfileModel 90 mUserManager.removeUser(restrictedUserHandle); in removeUser()
|
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/ |
D | UserManagerCompat.java | 47 public boolean removeUser(@UserIdInt int userId) { in removeUser() method in UserManagerCompat 48 return mUserManager.removeUser(userId); in removeUser()
|
/packages/apps/Settings/src/com/android/settings/users/ |
D | UserDetailsSettings.java | 233 (dialog, which) -> removeUser()); in onCreateDialog() 323 mUserManager.removeUser(mUserInfo.id); 501 private void removeUser() { 502 mUserManager.removeUser(mUserInfo.id);
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/users/ |
D | UserFragment.java | 128 mRemoveUserButton.setOnClickListener((v) -> removeUser()); in onViewCreated() 202 private void removeUser() { in removeUser() method in UserFragment 205 UserRemovalResult result = mCarUserManager.removeUser(userId); in removeUser()
|
/packages/services/Car/car-lib/src/android/car/admin/ |
D | ICarDevicePolicyService.aidl | 29 void removeUser(int userId, in ResultCallbackImpl<UserRemovalResult> callback); in removeUser() method
|
D | CarDevicePolicyManager.java | 147 public RemoveUserResult removeUser(@NonNull UserHandle user) { in removeUser() method in CarDevicePolicyManager 160 mService.removeUser(user.getIdentifier(), resultCallbackImpl); in removeUser()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/admin/ |
D | DevicePolicyFragment.java | 144 mRemoveUserButton.setOnClickListener((v) -> removeUser()); in onViewCreated() 215 private void removeUser() { in removeUser() method in DevicePolicyFragment 218 RemoveUserResult result = mCarDevicePolicyManager.removeUser(UserHandle.of(userId)); in removeUser()
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
D | RemoveUserFragment.java | 49 um.removeUser(userId); in onCreateDialog()
|
/packages/services/Car/service/src/com/android/car/admin/ |
D | CarDevicePolicyService.java | 148 public void removeUser(@UserIdInt int userId, ResultCallbackImpl<UserRemovalResult> callback) { in removeUser() method in CarDevicePolicyService 149 mCarUserService.removeUser(userId, /* hasCallerRestrictions= */ true, callback); in removeUser()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/admin/ |
D | CarDevicePolicyServiceTest.java | 129 mService.removeUser(42, mUserRemovalResultCallbackImpl); in testRemoveUser() 131 verify(mCarUserService).removeUser(eq(42), /* hasCallerRestrictions= */ eq(true), in testRemoveUser()
|
/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/modules/IntentResolver/tests/shared/src/com/android/intentresolver/data/repository/ |
D | FakeUserRepository.kt | 40 fun removeUser(user: User) { in <lambda>() method
|
/packages/modules/Permission/service/java/com/android/safetycenter/ |
D | SafetyCenterService.java | 1134 removeUser(userId); in onReceive() 1206 removeUser(userId, /* clearDataPermanently= */ true); in removeUserAndData() 1209 private void removeUser(@UserIdInt int userId) { in removeUser() method in SafetyCenterService 1210 removeUser(userId, /* clearDataPermanently= */ false); in removeUser() 1213 private void removeUser(@UserIdInt int userId, boolean clearDataPermanently) { in removeUser() method in SafetyCenterService
|
/packages/services/Car/car-lib/src/android/car/ |
D | ICarUserService.aidl | 45 void removeUser(int userId, in ResultCallbackImpl<UserRemovalResult> callback); in removeUser() method
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/ |
D | IdleServiceTest.java | 361 removeUser(secondaryUser); in test_idle_maintenance_nonDemoDevice() 379 removeUser(secondaryUser); in test_idle_maintenance_nonDemoDevice() 418 private void removeUser(int userId) throws IOException { in removeUser() method in IdleServiceTest
|