Searched refs:overrideDevicePolicy (Results 1 – 3 of 3) sorted by relevance
/packages/services/Car/libs/car-test-lib/src/android/car/test/mocks/ |
D | AndroidMockitoHelper.java | 346 UserInfo user, boolean overrideDevicePolicy, @RemoveResult int result, in mockUmRemoveUserWhenPossible() argument 348 when(um.removeUserWhenPossible(user.getUserHandle(), overrideDevicePolicy)) in mockUmRemoveUserWhenPossible() 364 UserHandle user, boolean overrideDevicePolicy, @RemoveResult int result, in mockUmRemoveUserWhenPossible() argument 366 when(um.removeUserWhenPossible(user, overrideDevicePolicy)).thenAnswer((inv) -> { in mockUmRemoveUserWhenPossible()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/ |
D | BaseCarUserServiceTestCase.java | 689 protected void mockRemoveUser(@NonNull UserHandle user, boolean overrideDevicePolicy) { in mockRemoveUser() argument 690 mockRemoveUser(user, overrideDevicePolicy, UserManager.REMOVE_RESULT_REMOVED); in mockRemoveUser() 693 protected void mockRemoveUser(@NonNull UserHandle user, boolean overrideDevicePolicy, in mockRemoveUser() argument 695 mockUmRemoveUserWhenPossible(mMockedUserManager, user, overrideDevicePolicy, result, in mockRemoveUser() 703 protected void mockRemoveUserNoCallback(@NonNull UserHandle user, boolean overrideDevicePolicy, in mockRemoveUserNoCallback() argument 705 mockUmRemoveUserWhenPossible(mMockedUserManager, user, overrideDevicePolicy, result, in mockRemoveUserNoCallback() 1074 boolean overrideDevicePolicy) { in assertHalRemove() argument 1075 verify(mMockedUserManager).removeUserWhenPossible(removeUser, overrideDevicePolicy); in assertHalRemove()
|
/packages/services/Car/service/src/com/android/car/user/ |
D | CarUserService.java | 1168 boolean overrideDevicePolicy = hasCallerRestrictions; in handleRemoveUser() 1169 int result = mUserManager.removeUserWhenPossible(user, overrideDevicePolicy); in handleRemoveUser()
|