/packages/services/Car/tests/carservice_unit_test/src/android/car/admin/ |
D | CarDevicePolicyManagerUnitTest.java | 166 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/ |
D | ICarDevicePolicyService.aidl | 32 void stopUser(int userId, in AndroidFuture<UserStopResult> receiver); in stopUser() method
|
D | CarDevicePolicyManager.java | 283 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/ |
D | AddNewProfileTaskTest.java | 156 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/ |
D | DevicePolicyFragment.java | 147 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/ |
D | CarDevicePolicyService.java | 192 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/ |
D | CarDevicePolicyServiceTest.java | 204 mService.stopUser(42, mUserStopResult); in testStopUser() 206 verify(mCarUserService).stopUser(42, mUserStopResult); in testStopUser()
|
/packages/services/Car/car-lib/src/android/car/ |
D | ICarUserService.aidl | 44 void stopUser(in UserStopRequest request, in ResultCallbackImpl<UserStopResponse> callback); in stopUser() method
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/users/ |
D | SimpleUserPickerFragment.java | 171 mStopUserButton.setOnClickListener(v -> stopUser()); in onViewCreated() 276 private void stopUser() { in stopUser() method in SimpleUserPickerFragment 306 mCarUserManager.stopUser(request, Runnable::run, in stopUser()
|
D | ProfileUserFragment.java | 131 stopUser(); in onViewCreated() 225 private void stopUser() { in stopUser() method in ProfileUserFragment
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/ |
D | CarUserServiceTest.java | 791 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 …]
|
D | BaseCarUserServiceTestCase.java | 520 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/ |
D | AddNewProfileTask.java | 96 mCarUserManager.stopUser( in onPostExecute()
|
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/qc/ |
D | ProfileSwitcherTest.java | 395 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/ |
D | AndroidMockitoHelperTest.java | 171 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/ |
D | UserEventManagerTest.java | 144 verify(mMockCarUserManager).stopUser(any(), any(), any()); in checkStopUser_requestStopUser_StopUser()
|
/packages/services/Car/libs/car-test-lib/src/android/car/test/mocks/ |
D | AndroidMockitoHelper.java | 134 .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/ |
D | ActivityManagerHelper.java | 108 public static int stopUser(@UserIdInt int userId, boolean force) { in stopUser() method in ActivityManagerHelper
|
/packages/services/Car/tools/GenericCarApiBuilder/res/ |
D | Test1.txt | 89 UserStopResponse response = mService.stopUser(request);
|
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | CarDevicePolicyManagerTest.java | 217 StopUserResult result = mCarDpm.stopUser(user.getUserHandle()); in testStopUser()
|
D | CarMultiUserTestBase.java | 369 mCarUserManager.stopUser(request, Runnable::run, in forceStopUser()
|
/packages/services/Car/tests/CarTestDpc/src/com/android/car/testdpc/ |
D | DpcShellCommand.java | 303 int status = mDpm.stopUser(mAdmin, user); in runStopUser()
|
/packages/services/Car/service/src/com/android/car/user/ |
D | CarUserService.java | 2260 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/ |
D | UserEventManager.java | 401 carUserManager.stopUser(new UserStopRequest.Builder(UserHandle.of(userId)).build(), in stopUserUnchecked()
|
/packages/services/Car/car-lib-module/api/ |
D | test-current.txt | 33 …ifest.permission.CREATE_USERS}) public android.car.admin.StopUserResult stopUser(@NonNull android.…
|