Home
last modified time | relevance | path

Searched refs:switchUser (Results 1 – 25 of 49) sorted by relevance

12

/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/user/domain/interactor/
H A DGuestUserInteractorTest.kt176 switchUser = switchUser,
198 switchUser = switchUser,
221 switchUser = switchUser,
226 verify(switchUser).invoke(mainUserId)
244 switchUser = switchUser,
266 switchUser = switchUser,
285 switchUser = switchUser,
302 switchUser = switchUser,
321 switchUser = switchUser,
340 switchUser = switchUser,
[all …]
H A DUserInteractorTest.kt193 verify(activityManager).switchUser(userInfos[1].id)
211 verify(activityManager).switchUser(userInfos.last().id)
238 verify(activityManager).switchUser(userInfos.last().id)
579 verify(activityManager).switchUser(guestUserInfo.id)
639 verify(activityManager).switchUser(userInfos[1].id)
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/user/domain/interactor/
H A DGuestUserInteractor.kt124 switchUser: (userId: Int) -> Unit,
161 remove(currentUserInfo.id, newUserId, showDialog, dismissDialog, switchUser)
164 switchUser(newUserId)
190 switchUser: (userId: Int) -> Unit,
221 mainUser?.let { switchUser(it) }
241 switchUser(newGuestId)
253 switchUser(targetUserId)
H A DUserInteractor.kt445 switchUser(newlySelectedUserId)
508 switchUser = this::switchUser,
599 private fun switchUser(userId: Int) { regex
603 activityManager.switchUser(userId)
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DUserLifecycleStressTest.java126 switchUser(USER_SYSTEM); in switchToExistingGuestAndStartOverStressTest()
140 switchUser(currentGuestId); in switchToExistingGuestAndStartOverStressTest()
155 switchUser(newGuest.id); in switchToExistingGuestAndStartOverStressTest()
165 switchUser(USER_SYSTEM); in switchToExistingGuestAndStartOverStressTest()
195 private void switchUser(int userId) { in switchUser() method in UserLifecycleStressTest
200 .that(mActivityManager.switchUser(userId)).isTrue(); in switchUser()
H A DUserManagerTest.java329 switchUser(testUser.id); in testRemoveUserShouldNotRemoveCurrentUser()
336 switchUser(startUser); in testRemoveUserShouldNotRemoveCurrentUser()
348 switchUser(testUser.id); in testRemoveUserShouldNotRemoveCurrentUser_DuringUserSwitch()
377 switchUser(startUser); in testRemoveUserShouldNotRemoveTargetUser_DuringUserSwitch()
453 switchUser(currentUser); in testRemoveUserWhenPossible_permanentAdminMainUserReturnsError()
471 switchUser(user1.id); in testRemoveUserWhenPossible_currentUserSetEphemeral()
480 switchUser(startUser); in testRemoveUserWhenPossible_currentUserSetEphemeral()
493 switchUser(testUser.id); in testRemoveUserWhenPossible_currentUserSetEphemeral_duringUserSwitch()
527 switchUser(startUser); in testRemoveUserWhenPossible_targetUserSetEphemeral_duringUserSwitch()
1280 switchUser(user.id); in testSwitchUser()
[all …]
/aosp14/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/
H A DUserLifecycleTests.java472 switchUser(userId); in switchUser()
493 switchUser(userId); in switchUser_realistic()
513 switchUser(testUser); in switchUser_stopped()
543 switchUser(userId); in switchUser_stopped_realistic()
569 switchUser(testUser); in switchUser_stopped_staticWallpaper()
591 switchUser(testUser); in switchUser_running()
613 switchUser(testUser); in switchUser_running_initializedUser()
638 switchUser(testUser); in switchUser_running_staticWallpaper()
752 switchUser(userId); in ephemeralUserStopped()
781 switchUser(userId); in ephemeralUserStopped_realistic()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
H A DDeviceProvisionedControllerImplTest.kt182 switchUser(otherUser)
206 switchUser(10)
268 switchUser(10)
287 private fun switchUser(toUser: Int) { regex
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/wallpaper/
H A DWallpaperManagerServiceTests.java289 mService.switchUser(USER_SYSTEM, null); in testDataCorrectAfterBoot()
309 mService.switchUser(testUserId, null); in testSetThenClearComponent()
330 mService.switchUser(testUserId, null); in testSetCurrentComponent()
370 mService.switchUser(userId, null); in testSwitchMultipleUsers()
401 mService.switchUser(userId, null); in testSwitchThenUnlockMultipleUsers()
459 mService.switchUser(wallpaper.userId, null); in testWallpaperManagerCallbackInRightOrder()
474 mService.switchUser(USER_SYSTEM, null); in testSetWallpaperDimAmount()
484 mService.switchUser(testUserId, null); in testGetAdjustedWallpaperColorsOnDimming()
/aosp14/frameworks/base/tests/RollbackTest/MultiUserRollbackTest/src/com/android/tests/rollback/host/
H A DMultiUserRollbackTest.java105 assertTrue(getDevice().switchUser(mSecondaryUserId)); in testBadUpdateRollback()
134 assertTrue(getDevice().switchUser(mOriginalUserId)); in removeSecondaryUserIfNecessary()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/pipeline/domain/interactor/
H A DCurrentTilesInteractorImplTest.kt339 switchUser(USER_INFO_1)
357 switchUser(USER_INFO_1)
379 switchUser(USER_INFO_1)
399 switchUser(USER_INFO_1)
444 switchUser(USER_INFO_1)
517 switchUser(USER_INFO_1)
689 switchUser(user)
694 private suspend fun switchUser(user: UserInfo) {
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/testutils/com/android/settingslib/testutils/shadow/
H A DShadowActivityManager.java44 protected boolean switchUser(int userId) { in switchUser() method in ShadowActivityManager
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/user/
H A DCreateUserActivity.java177 mActivityManager.switchUser(userId); in switchToUser()
/aosp14/frameworks/base/services/core/java/com/android/server/
H A DMasterClearReceiver.java140 if (!ActivityManager.getService().switchUser(UserHandle.USER_SYSTEM)) { in wipeUser()
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DActivityTaskManagerInternal.java530 public abstract boolean switchUser(int userId, UserState userState); in switchUser() method in ActivityTaskManagerInternal
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wmshell/
H A DBubblesTest.java1138 switchUser(secondUserId); in testOnUserChanged_overflowState()
1169 switchUser(secondUserId); in testOnUserChanged_bubblesRestored()
1182 switchUser(firstUserId); in testOnUserChanged_bubblesRestored()
2067 private void switchUser(int userId) { in switchUser() method in BubblesTest
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/app/
H A DGameManagerServiceTests.java260 private void switchUser(GameManagerService gameManagerService, int from, int to) { in switchUser() method in GameManagerServiceTests
1749 switchUser(gameManagerService, USER_ID_2, USER_ID_1); in testVerifyInterventionList()
1799 switchUser(gameManagerService, USER_ID_1, USER_ID_2); in testSwitchUser()
1806 switchUser(gameManagerService, USER_ID_2, USER_ID_1); in testSwitchUser()
/aosp14/frameworks/base/core/java/android/app/
H A DActivityManager.java4801 public boolean switchUser(int userid) { in switchUser() method in ActivityManager
4803 return getService().switchUser(userid); in switchUser()
4820 public boolean switchUser(@NonNull UserHandle user) { in switchUser() method in ActivityManager
4823 return switchUser(user.getIdentifier()); in switchUser()
H A DIActivityManager.aidl402 boolean switchUser(int userid); in switchUser() method
/aosp14/frameworks/base/services/core/java/com/android/server/tv/interactive/
H A DTvInteractiveAppManagerService.java441 switchUser(intent.getIntExtra(Intent.EXTRA_USER_HANDLE, 0)); in registerBroadcastReceivers()
455 private void switchUser(int userId) { in switchUser() method in TvInteractiveAppManagerService
523 switchUser(UserHandle.USER_SYSTEM); in removeUser()
548 switchUser(ActivityManager.getCurrentUser()); in stopUser()
/aosp14/frameworks/base/services/core/java/com/android/server/policy/
H A DLegacyGlobalActions.java562 ActivityManager.getService().switchUser(user.id);
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DWindowStateTests.java631 window.switchUser(mWm.mCurrentUserId); in testVisibilityChangeSwitchUser()
636 window.switchUser(mWm.mCurrentUserId); in testVisibilityChangeSwitchUser()
/aosp14/frameworks/base/services/core/java/com/android/server/tv/
H A DTvInputManagerService.java300 switchUser(intent.getIntExtra(Intent.EXTRA_USER_HANDLE, 0)); in registerBroadcastReceivers()
485 switchUser(ActivityManager.getCurrentUser()); in stopUser()
501 private void switchUser(int userId) { in switchUser() method in TvInputManagerService
663 switchUser(UserHandle.USER_SYSTEM); in removeUser()
/aosp14/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
H A DVoiceInteractionManagerService.java228 mServiceStub.switchUser(to.getUserIdentifier()); in onUserSwitching()
675 public void switchUser(@UserIdInt int userHandle) { in switchUser() method in VoiceInteractionManagerService.VoiceInteractionManagerServiceStub
/aosp14/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DAccessibilityManagerService.java871 switchUser(intent.getIntExtra(Intent.EXTRA_USER_HANDLE, 0)); in registerBroadcastReceivers()
1465 switchUser(userId); in changeCurrentUserForTestAutomationIfNeededLocked()
1486 switchUser(currentUserId); in restoreCurrentUserAfterTestAutomationIfNeededLocked()
1794 private void switchUser(int userId) { in switchUser() method in AccessibilityManagerService

12