Home
last modified time | relevance | path

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

12

/packages/services/Car/tests/carservice_unit_test/src/android/car/admin/
DCarDevicePolicyManagerUnitTest.java166 StopUserResult result = mMgr.stopUser(UserHandle.of(100)); in testStopUser_success()
174 doThrow(new RemoteException("D'OH!")).when(mService).stopUser(eq(100), notNull()); in testStopUser_remoteException()
177 StopUserResult result = mMgr.stopUser(UserHandle.of(100)); in testStopUser_remoteException()
185 assertThrows(NullPointerException.class, () -> mMgr.stopUser(null)); in testStopUser_nullUser()
226 }).when(mService).stopUser(eq(userId), notNull()); in mockStopUser()
/packages/services/Car/car-lib/src/android/car/admin/
DICarDevicePolicyService.aidl32 void stopUser(int userId, in AndroidFuture<UserStopResult> receiver); in stopUser() method
DCarDevicePolicyManager.java283 public StopUserResult stopUser(@NonNull UserHandle user) { in stopUser() method in CarDevicePolicyManager
292 mService.stopUser(userId, future); in stopUser()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/profiles/
DAddNewProfileTaskTest.java156 verify(mCarUserManager).stopUser(any(), any(), captor.capture()); in userCreatedOnPassenger_success_stopsAndStartsUser()
184 verify(mCarUserManager).stopUser(any(), any(), captor.capture()); in userCreatedOnPassenger_failure_doesNotStartUser()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/admin/
DDevicePolicyFragment.java147 mStopUserButton.setOnClickListener((v) -> stopUser()); in onViewCreated()
264 private void stopUser() { in stopUser() method in DevicePolicyFragment
267 StopUserResult result = mCarDevicePolicyManager.stopUser(UserHandle.of(userId)); in stopUser()
/packages/services/Car/service/src/com/android/car/admin/
DCarDevicePolicyService.java192 public void stopUser(@UserIdInt int userId, AndroidFuture<UserStopResult> receiver) { in stopUser() method in CarDevicePolicyService
193 mCarUserService.stopUser(userId, receiver); in stopUser()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/admin/
DCarDevicePolicyServiceTest.java204 mService.stopUser(42, mUserStopResult); in testStopUser()
206 verify(mCarUserService).stopUser(42, mUserStopResult); in testStopUser()
/packages/services/Car/car-lib/src/android/car/
DICarUserService.aidl44 void stopUser(in UserStopRequest request, in ResultCallbackImpl<UserStopResponse> callback); in stopUser() method
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/users/
DSimpleUserPickerFragment.java171 mStopUserButton.setOnClickListener(v -> stopUser()); in onViewCreated()
276 private void stopUser() { in stopUser() method in SimpleUserPickerFragment
306 mCarUserManager.stopUser(request, Runnable::run, in stopUser()
DProfileUserFragment.java131 stopUser(); in onViewCreated()
225 private void stopUser() { in stopUser() method in ProfileUserFragment
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DCarUserServiceTest.java791 stopUser(TEST_USER_ID, userStopResult); in testStopUser_success()
804 assertThrows(SecurityException.class, () -> stopUser(TEST_USER_ID, userStopResult)); in testStopUser_permissionDenied()
812 stopUser(TEST_USER_ID, userStopResult); in testStopUser_fail()
824 stopUser(TEST_USER_ID, userStopResult); in testStopUser_userDoesNotExist()
837 stopUser(userId, userStopResult); in testStopUser_systemUser()
850 stopUser(userId, userStopResult); in testStopUser_amThrowsRuntimeException()
862 stopUser(TEST_USER_ID, userStopResult); in testStopUser_currentUser()
875 stopUser(request, mUserStopResultCallbackImpl); in testStopUser_withDelayedLocking_success()
888 assertThrows(SecurityException.class, () -> stopUser(request, mUserStopResultCallbackImpl)); in testStopUser_withDelayedLocking_permissionDenied()
897 stopUser(request, mUserStopResultCallbackImpl); in testStopUser_withDelayedLocking_fail()
[all …]
DBaseCarUserServiceTestCase.java520 protected void stopUser(@UserIdInt int userId, in stopUser() method in BaseCarUserServiceTestCase
522 mCarUserService.stopUser(userId, userStopResultFuture); in stopUser()
526 protected void stopUser(UserStopRequest request, in stopUser() method in BaseCarUserServiceTestCase
528 mCarUserService.stopUser(request, callback); in stopUser()
/packages/apps/Car/Settings/src/com/android/car/settings/profiles/
DAddNewProfileTask.java96 mCarUserManager.stopUser( in onPostExecute()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/qc/
DProfileSwitcherTest.java395 verify(mCarUserManager, never()).stopUser(any(), any(), any()); in onUserPressed_alreadyStartedUser_doesNothing()
425 }).when(mCarUserManager).stopUser(any(), any(), any()); in onUserPressed_secondaryUser_stopsAndStartsNewUser()
432 verify(mCarUserManager).stopUser(stopRequestCaptor.capture(), any(), any()); in onUserPressed_secondaryUser_stopsAndStartsNewUser()
/packages/services/Car/tests/carservice_unit_test/src/android/car/test/mocks/
DAndroidMockitoHelperTest.java171 assertThat(ActivityManagerHelper.stopUser(TEST_USER_ID, /* force= */ true)).isEqualTo(42); in testMockForceStopUser()
179 () -> ActivityManagerHelper.stopUser(TEST_USER_ID, /* force= */ true)); in testMockForceStopUserThrows()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/userpicker/
DUserEventManagerTest.java144 verify(mMockCarUserManager).stopUser(any(), any(), any()); in checkStopUser_requestStopUser_StopUser()
/packages/services/Car/libs/car-test-lib/src/android/car/test/mocks/
DAndroidMockitoHelper.java134 .when(() -> ActivityManagerHelper.stopUser(userId, /* force= */ true)); in mockForceStopUser()
146 doThrow(throwable).when(() -> ActivityManagerHelper.stopUser(userId, /* force= */ true)); in mockForceStopUserThrows()
/packages/services/Car/car-builtin-lib/src/android/car/builtin/app/
DActivityManagerHelper.java108 public static int stopUser(@UserIdInt int userId, boolean force) { in stopUser() method in ActivityManagerHelper
/packages/services/Car/tools/GenericCarApiBuilder/res/
DTest1.txt89 UserStopResponse response = mService.stopUser(request);
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarDevicePolicyManagerTest.java217 StopUserResult result = mCarDpm.stopUser(user.getUserHandle()); in testStopUser()
DCarMultiUserTestBase.java369 mCarUserManager.stopUser(request, Runnable::run, in forceStopUser()
/packages/services/Car/tests/CarTestDpc/src/com/android/car/testdpc/
DDpcShellCommand.java303 int status = mDpm.stopUser(mAdmin, user); in runStopUser()
/packages/services/Car/service/src/com/android/car/user/
DCarUserService.java2260 public void stopUser(@UserIdInt int userId, @NonNull AndroidFuture<UserStopResult> receiver) { in stopUser() method in CarUserService
2278 public void stopUser(UserStopRequest request, in stopUser() method in CarUserService
2311 r = ActivityManagerHelper.stopUser(userId, forceStop); in stopBackgroundUserInternal()
2527 stopUser(userId, new AndroidFuture<UserStopResult>()); in assignVisibleUserToZone()
2594 stopUser(userId, new AndroidFuture<UserStopResult>()); in startLauncherForVisibleUser()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/userpicker/
DUserEventManager.java401 carUserManager.stopUser(new UserStopRequest.Builder(UserHandle.of(userId)).build(), in stopUserUnchecked()
/packages/services/Car/car-lib-module/api/
Dtest-current.txt33 …ifest.permission.CREATE_USERS}) public android.car.admin.StopUserResult stopUser(@NonNull android.…

12