Home
last modified time | relevance | path

Searched refs:oldUserId (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/services/core/java/com/android/server/am/
DUserController.java919 private void stopGuestOrEphemeralUserIfBackground(int oldUserId) {
920 if (DEBUG_MU) Slog.i(TAG, "Stop guest or ephemeral user if background: " + oldUserId);
922 UserState oldUss = mStartedUsers.get(oldUserId);
923 if (oldUserId == UserHandle.USER_SYSTEM || oldUserId == mCurrentUserId || oldUss == null
930 UserInfo userInfo = getUserInfo(oldUserId);
932 LocalServices.getService(UserManagerInternal.class).onEphemeralUserStop(oldUserId);
937 stopUsersLU(oldUserId, true, null, null);
1031 final int oldUserId = getCurrentUserId();
1032 if (oldUserId == userId) {
1166 oldUserId));
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DUserControllerTest.java240 int oldUserId = reportMsg.arg1; in testDispatchUserSwitch() local
244 mUserController.dispatchUserSwitch(userState, oldUserId, newUserId); in testDispatchUserSwitch()
270 int oldUserId = reportMsg.arg1; in testDispatchUserSwitchBadReceiver() local
274 mUserController.dispatchUserSwitch(userState, oldUserId, newUserId); in testDispatchUserSwitchBadReceiver()
288 int oldUserId = reportMsg.arg1; in testContinueUserSwitch() local
292 mUserController.continueUserSwitch(userState, oldUserId, newUserId); in testContinueUserSwitch()
305 int oldUserId = reportMsg.arg1; in testContinueUserSwitchUIDisabled() local
309 mUserController.continueUserSwitch(userState, oldUserId, newUserId); in testContinueUserSwitchUIDisabled()
460 int oldUserId = reportMsg.arg1; in addForegroundUserAndContinueUserSwitch() local
461 assertEquals(expectedOldUserId, oldUserId); in addForegroundUserAndContinueUserSwitch()
[all …]
/frameworks/base/services/core/java/com/android/server/vr/
DVrManagerService.java851 private void updateOverlayStateLocked(String exemptedPackage, int newUserId, int oldUserId) { in updateOverlayStateLocked() argument
855 if (oldUserId != newUserId) { in updateOverlayStateLocked()
857 false, mOverlayToken, null, oldUserId); in updateOverlayStateLocked()
869 String oldVrServicePackage, int oldUserId) { in updateDependentAppOpsLocked() argument
877 updateOverlayStateLocked(newVrServicePackage, newUserId, oldUserId); in updateDependentAppOpsLocked()
915 final int oldUserId = mCurrentVrModeUser; in updateCurrentVrServiceLocked() local
978 oldVrServicePackage, oldUserId); in updateCurrentVrServiceLocked()
/frameworks/base/services/core/java/com/android/server/media/
DMediaRouterService.java476 final int oldUserId = mCurrentUserId; in switchUser() local
479 UserRecord oldUser = mUserRecords.get(oldUserId); in switchUser()