/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/users/ |
D | RestrictedProfileTest.java | 86 verify(mActivityManager, times(1)).switchUser(eq(mProfileInfo.id)); in testEnterUser_isOwner_profileExists() 93 verify(mActivityManager, never()).switchUser(anyInt()); in testEnterUser_isOwner_profileDoesNotExist() 100 verify(mActivityManager, never()).switchUser(anyInt()); in testEnterUser_isProfile() 107 verify(mActivityManager, never()).switchUser(anyInt()); in testExitUser_isOwner() 114 verify(mActivityManager, times(1)).switchUser(eq(mOwnerInfo.id)); in testExitUser_isProfile() 122 verify(mActivityManager, times(1)).switchUser(eq(mSystemInfo.id)); in testExitUser_isProfile_legacyParent()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/ |
D | CarUserServiceTest.java | 1173 () -> switchUser(mAdminUserId, ASYNC_CALL_TIMEOUT_MS, null)); in testSwitchUser_nullCallback() 1178 switchUser(NON_EXISTING_USER, ASYNC_CALL_TIMEOUT_MS, mUserSwitchResultCallbackImpl); in testSwitchUser_nonExistingTarget() 1192 switchUser(mGuestUserId, ASYNC_CALL_TIMEOUT_MS, mUserSwitchResultCallbackImpl); in testSwitchUser_noUserSwitchability() 1203 switchUser(mAdminUserId, ASYNC_CALL_TIMEOUT_MS, mUserSwitchResultCallbackImpl); in testSwitchUser_targetSameAsCurrentUser() 1217 switchUser(mRegularUserId, ASYNC_CALL_TIMEOUT_MS, mUserSwitchResultCallbackImpl); in testSwitchUser_halNotSupported_success() 1236 switchUser(mRegularUserId, ASYNC_CALL_TIMEOUT_MS, mUserSwitchResultCallbackImpl); in testSwitchUser_halNotSupported_failure() 1253 switchUser(mGuestUserId, ASYNC_CALL_TIMEOUT_MS, mUserSwitchResultCallbackImpl); in testSwitchUser_HalSuccessAndroidSuccess() 1274 switchUser(mGuestUserId, ASYNC_CALL_TIMEOUT_MS, mUserSwitchResultCallbackImpl); in testSwitchUser_HalSuccessAndroidFailure() 1289 switchUser(mGuestUserId, ASYNC_CALL_TIMEOUT_MS, mUserSwitchResultCallbackImpl); in testSwitchUser_HalFailure() 1302 switchUser(mGuestUserId, ASYNC_CALL_TIMEOUT_MS, mUserSwitchResultCallbackImpl); in testSwitchUser_nullHalResponse() [all …]
|
D | BaseCarUserServiceTestCase.java | 484 protected void switchUser(@UserIdInt int userId, int timeoutMs, in switchUser() method in BaseCarUserServiceTestCase 486 mCarUserService.switchUser(userId, timeoutMs, callback, /* ignoreUxRestriction= */ false); in switchUser() 492 mCarUserService.switchUser(userId, timeoutMs, callback, /* ignoreUxRestriction= */ true); in switchUserIgnoringUxRestriction() 792 doAnswer(blockingAnswer).when(mUserHal).switchUser(eq(request), eq(ASYNC_CALL_TIMEOUT_MS), in mockHalSwitchLateResponse() 817 }).when(mUserHal).switchUser(eq(request), eq(ASYNC_CALL_TIMEOUT_MS), notNull()); in mockHalSwitch() 984 verify(mMockedActivityManager).switchUser(any()); in verifyAnyUserSwitch() 988 verify(mMockedActivityManager, never()).switchUser(any()); in verifyNoUserSwitch() 1048 verify(mUserHal).switchUser(isSwitchUserRequest(0, currentId, targetId), in assertHalSwitch() 1053 verify(mUserHal).switchUser(any(), eq(ASYNC_CALL_TIMEOUT_MS), any()); in assertHalSwitchAnyUser() 1057 verify(mUserHal, never()).switchUser(any(), anyInt(), any()); in assertNoHalUserSwitch()
|
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/ |
D | ActivityManagerCompat.java | 37 public boolean switchUser(int userid) { in switchUser() method in ActivityManagerCompat 38 return mActivityManager.switchUser(userid); in switchUser()
|
/packages/apps/Settings/src/com/android/settings/users/ |
D | UserDetailsSettings.java | 163 switchUser(); in onPreferenceClick() 241 switchUser(); in onCreateDialog() 255 (dialog, which) -> switchUser()); in onCreateDialog() 258 (dialog, which) -> switchUser()); in onCreateDialog() 455 void switchUser() { 468 ActivityManager.getService().switchUser(mUserInfo.id);
|
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | CarUserManagerTest.java | 240 switchUser(guestUserId); in testGuestUserResumeToNewGuestUser() 301 switchUser(guestUserId); in testSecuredGuestUserResumeToSameUser() 340 switchUser(newUserId); in testPersistentUserResumeToUser() 366 mCarUserManager.switchUser( in testSwitchUserUxRestrictionFailure() 377 switchUser(initialUserId); in testSwitchUserUxRestrictionFailure()
|
D | CarMultiUserTestBase.java | 145 switchUser(properUser.id); in setMultiUserFixtures() 180 switchUser(initialUserId); in cleanupUserState() 306 protected void switchUser(@UserIdInt int userId) throws Exception { in switchUser() method in CarMultiUserTestBase 322 mCarUserManager.switchUser(new UserSwitchRequest.Builder( in switchUser()
|
D | CarUserManagerLifeCycleTest.java | 93 switchUser(newUserId); in testLifecycleListener() 132 switchUser(initialUserId); in testLifecycleListener()
|
D | CarUserManagerLifecycleEventFilterTest.java | 157 switchUser(newUserId); in testUserLifecycleEventFilter() 160 switchUser(initialUserId); in testUserLifecycleEventFilter()
|
D | CarDevicePolicyManagerTest.java | 94 switchUser(user.id); in testRemoveUser_currentUserSetEphemeral() 110 switchUser(initialUserId); in testRemoveUser_currentUserSetEphemeral()
|
/packages/modules/AdServices/sdksandbox/tests/testutils/src/android/app/sdksandbox/hosttestutils/ |
D | SecondaryUserUtils.java | 67 assertThat(mTest.getDevice().switchUser(mOriginalUserId)).isTrue(); in removeSecondaryUserIfNecessary() 74 mTest.getDevice().switchUser(mSecondaryUserId); in switchToSecondaryUser()
|
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitSystemUI/src/com/android/systemui/car/qc/ |
D | CarUiPortraitProfileSwitcher.java | 70 switchUser(userInfo.id); in createUserProfileRowForCurrentProfile() 83 switchUser(guest.id); in createGuestProfileRowForCurrentProfile()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/ |
D | UserHalServiceTest.java | 627 () -> myHalService.switchUser(createUserSwitchRequest(mUser100, mUsersInfo), in testSwitchUser_noHalSupported() 634 .switchUser(createUserSwitchRequest(mUser100, mUsersInfo), 0, noOpCallback())); in testSwitchUser_invalidTimeout() 636 .switchUser(createUserSwitchRequest(mUser100, mUsersInfo), -1, noOpCallback())); in testSwitchUser_invalidTimeout() 642 .switchUser(createUserSwitchRequest(mUser100, null), HAL_TIMEOUT_MS, in testSwitchUser_noUsersInfo() 649 .switchUser(createUserSwitchRequest(mUser100, mUsersInfo), HAL_TIMEOUT_MS, null)); in testSwitchUser_noCallback() 655 .switchUser(null, HAL_TIMEOUT_MS, noOpCallback())); in testSwitchUser_nullRequest() 661 .switchUser(createUserSwitchRequest(null, mUsersInfo), HAL_TIMEOUT_MS, in testSwitchUser_noTarget() 671 mUserHalService.switchUser(createUserSwitchRequest(mUser100, mUsersInfo), in testSwitchUser_halSetTimedOut() 688 mUserHalService.switchUser(createUserSwitchRequest(mUser100, mUsersInfo), in testSwitchUser_halDidNotReply() 708 mUserHalService.switchUser(createUserSwitchRequest(mUser100, mUsersInfo), in testSwitchUser_halReplyWithWrongRequestId() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | ConfigurationMapTest.java | 147 private void switchUser(int newUserId) { in switchUser() method in ConfigurationMapTest 265 switchUser(10); in testGettersAndHandleUserSwitch() 269 switchUser(11); in testGettersAndHandleUserSwitch() 283 switchUser(UserHandle.getUserHandleForUid(config1.creatorUid).getIdentifier()); in testPutRemoveClear()
|
/packages/services/Car/tests/CarLibUnitTest/src/android/car/user/ |
D | CarUserManagerUnitTest.java | 287 mMgr.switchUser(new UserSwitchRequest.Builder( in testSwitchUser_success() 300 AsyncFuture<UserSwitchResult> future = mMgr.switchUser(11); in testSwitchUserId_success() 313 mMgr.switchUser(new UserSwitchRequest.Builder( in testSwitchUser_remoteException() 327 AsyncFuture<UserSwitchResult> future = mMgr.switchUser(11); in testSwitchUserId_remoteException() 339 mMgr.switchUser(new UserSwitchRequest.Builder( in testSwitchUser_runtimeException() 352 AsyncFuture<UserSwitchResult> future = mMgr.switchUser(11); in testSwitchUserId_runtimeException() 791 }).when(mService).switchUser(eq(userId), anyInt(), notNull(), anyBoolean()); in expectServiceSwitchUserSucceeds() 795 doThrow(e).when(mService).switchUser(eq(userId), anyInt(), notNull(), anyBoolean()); in expectServiceSwitchUserFails()
|
/packages/services/Car/service/src/com/android/car/user/ |
D | InitialUserSetter.java | 362 switchUser(info, /* fallback= */ true); in set() 407 switchUser(new Builder(TYPE_SWITCH) in replaceUser() 425 switchUser(new Builder(TYPE_SWITCH) in executeDefaultBehavior() 445 switchUser(new Builder(TYPE_SWITCH) in executeDefaultBehavior() 469 private void switchUser(@NonNull InitialUserInfo info, boolean fallback) { in switchUser() method in InitialUserSetter 598 switchUser(new Builder(TYPE_SWITCH) in createAndSwitchUser()
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/userswitcher/ |
D | UserGridRecyclerView.java | 322 switchUser(guest.id); in onBindViewHolder() 338 switchUser(userRecord.mInfo.id); in onBindViewHolder() 530 private void switchUser(@UserIdInt int userId) { in switchUser() method in UserGridRecyclerView.UserAdapter 533 mCarUserManager.switchUser(userId); in switchUser() 592 switchUser(user.id); in onPostExecute()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/profiles/ |
D | ProfileHelperTest.java | 347 verify(mMockCarUserManager).switchUser(newAdminInfo.id); in testRemoveUser_removesLastAdminUser_createsAndSwitchesToNewAdminUser() 369 verify(mMockCarUserManager, never()).switchUser(anyInt()); in testRemoveUser_removesLastAdminUserFailsCreateNewUser_doesNotRemoveOrSwitchUser() 411 verify(mMockCarUserManager).switchUser(newUser.id); in assertUserRemoved() 544 when(mMockCarUserManager.switchUser(anyInt())).thenReturn(new AndroidAsyncFuture<>(future)); in mockSwitchUserSuccess() 551 when(mMockCarUserManager.switchUser(anyInt())).thenReturn(new AndroidAsyncFuture<>(future)); in mockSwitchUserFailure()
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/qc/ |
D | ProfileSwitcher.java | 221 switchUser(userInfo.id); in createUserProfileRow() 235 switchUser(guest.id); in createGuestProfileRow() 282 protected void switchUser(@UserIdInt int userId) { in switchUser() method in ProfileSwitcher 312 mCarUserManager.switchUser( in switchForegroundUser() 524 switchUser(user.id); in onPostExecute()
|
/packages/services/Car/car-lib/src/android/car/user/ |
D | CarUserManager.java | 510 switchUser(userSwitchRequest, executor, callback, /* ignoreUxRestriction=*/ true); in switchUserIgnoringUxRestriction() 525 public void switchUser(@NonNull UserSwitchRequest userSwitchRequest, in switchUser() method in CarUserManager 528 switchUser(userSwitchRequest, executor, callback, /* ignoreUxRestriction=*/ false); in switchUser() 532 private void switchUser(@NonNull UserSwitchRequest userSwitchRequest, in switchUser() method in CarUserManager 558 mService.switchUser(targetUserId, HAL_TIMEOUT_MS, resultCallbackImpl, in switchUser() 580 public AsyncFuture<UserSwitchResult> switchUser(@UserIdInt int targetUserId) { in switchUser() method in CarUserManager 584 switchUser(userSwitchRequest, Runnable::run, future::complete); in switchUser()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/display/ |
D | SelfManagedVirtualDisplayView.java | 88 mSwitchUserButton.setOnClickListener((v) -> switchUser()); in SelfManagedVirtualDisplayView() 106 private void switchUser() { in switchUser() method in SelfManagedVirtualDisplayView
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/users/ |
D | UserFragment.java | 127 mSwitchUserButton.setOnClickListener((v) -> switchUser()); in onViewCreated() 216 private void switchUser() { in switchUser() method in UserFragment 221 mCarUserManager.switchUser(new UserSwitchRequest.Builder(UserHandle.of(userId)).build(), in switchUser()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/profiles/ |
D | AddNewProfileTaskTest.java | 106 verify(mCarUserManager).switchUser(newUser.id); in userCreated_switchToNewUser() 121 verify(mCarUserManager).switchUser(mNewUserId); in userCreated_successCalled()
|
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/qc/ |
D | ProfileSwitcherTest.java | 133 when(mCarUserManager.switchUser(anyInt())).thenReturn(switchResultFuture); in setUp() 340 verify(mCarUserManager).switchUser(requestCaptor.capture(), any(), any()); in onUserPressed_triggersSwitch() 371 verify(mCarUserManager).switchUser(requestCaptor.capture(), any(), any()); in onGuestPressed_createsAndSwitches() 394 verify(mCarUserManager, never()).switchUser(secondaryUserId); in onUserPressed_alreadyStartedUser_doesNothing()
|
/packages/services/Car/car-lib/src/android/car/ |
D | ICarUserService.aidl | 37 void switchUser(int targetUserId, int timeoutMs, in switchUser() method
|