Home
last modified time | relevance | path

Searched refs:stopUser (Results 1 – 13 of 13) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/android/car/admin/
DCarDevicePolicyManagerUnitTest.java162 StopUserResult result = mMgr.stopUser(UserHandle.of(100)); in testStopUser_success()
170 doThrow(new RemoteException("D'OH!")).when(mService).stopUser(eq(100), notNull()); in testStopUser_remoteException()
173 StopUserResult result = mMgr.stopUser(UserHandle.of(100)); in testStopUser_remoteException()
181 assertThrows(NullPointerException.class, () -> mMgr.stopUser(null)); in testStopUser_nullUser()
221 }).when(mService).stopUser(eq(userId), notNull()); in mockStopUser()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/admin/
DCarDevicePolicyServiceTest.java121 mService.stopUser(42, mUserStopResult); in testStopUser()
123 verify(mCarUserService).stopUser(42, mUserStopResult); in testStopUser()
/packages/services/Car/service/src/com/android/car/admin/
DCarDevicePolicyService.java113 public void stopUser(@UserIdInt int userId, AndroidFuture<UserStopResult> receiver) { in stopUser() method in CarDevicePolicyService
114 mCarUserService.stopUser(userId, receiver); in stopUser()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/admin/
DDevicePolicyFragment.java135 mStopUserButton.setOnClickListener((v) -> stopUser()); in onViewCreated()
252 private void stopUser() { in stopUser() method in DevicePolicyFragment
255 StopUserResult result = mCarDevicePolicyManager.stopUser(UserHandle.of(userId)); in stopUser()
/packages/services/Car/car-lib/src/android/car/admin/
DCarDevicePolicyManager.java260 public StopUserResult stopUser(@NonNull UserHandle user) { in stopUser() method in CarDevicePolicyManager
269 mService.stopUser(userId, future); in stopUser()
DICarDevicePolicyService.aidl30 void stopUser(int userId, in AndroidFuture<UserStopResult> receiver); in stopUser() method
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/users/
DProfileUserFragment.java131 stopUser(); in onViewCreated()
225 private void stopUser() { in stopUser() method in ProfileUserFragment
238 am.stopUser(userToUpdate, /* force= */ false, /* callback= */ null); in stopUser()
/packages/services/Car/tests/CarSecurityPermissionTest/src/com/android/car/admin/
DCarDevicePolicyManagerPermissionTest.java89 () -> mManager.stopUser(UserHandle.of(100))); in testStopUserPermission()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DCarUserServiceTest.java555 when(mMockedIActivityManager.stopUser(user2, true, null)) in testBackgroundUsersStartStopKeepBackgroundUserList()
571 stopUser(userId, userStopResult); in testStopUser_success()
585 assertThrows(SecurityException.class, () -> stopUser(userId, userStopResult)); in testStopUser_permissionDenied()
595 stopUser(userId, userStopResult); in testStopUser_fail()
609 stopUser(userId, userStopResult); in testStopUser_userDoesNotExist()
622 stopUser(UserHandle.USER_SYSTEM, userStopResult); in testStopUser_systemUser()
636 stopUser(userId, userStopResult); in testStopUser_currentUser()
2375 private void stopUser(@UserIdInt int userId, in stopUser() method in CarUserServiceTest
2377 mCarUserService.stopUser(userId, userStopResultFuture); in stopUser()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarUserManagerLifeCycleTest.java185 am.stopUser(userId, /* force=*/ true, /* listener= */ null); in forceStopUser()
DCarDevicePolicyManagerTest.java165 StopUserResult result = mCarDpm.stopUser(user.getUserHandle()); in testStopUser()
/packages/services/Car/car-lib/api/
Dtest-current.txt35 …ifest.permission.CREATE_USERS}) public android.car.admin.StopUserResult stopUser(@NonNull android.…
/packages/services/Car/service/src/com/android/car/user/
DCarUserService.java1987 public void stopUser(@UserIdInt int userId, @NonNull AndroidFuture<UserStopResult> receiver) { in stopUser() method