Loading services/core/java/com/android/server/am/UserController.java +5 −3 Original line number Diff line number Diff line Loading @@ -985,11 +985,13 @@ class UserController implements Handler.Callback { * <ul> * <li>{@link Intent#ACTION_USER_STARTED} - sent to registered receivers of the new user * <li>{@link Intent#ACTION_USER_BACKGROUND} - sent to registered receivers of the outgoing * user and all profiles of this user. Sent only if {@code foreground} parameter is true * user and all profiles of this user. Sent only if {@code foreground} parameter is * {@code false} * <li>{@link Intent#ACTION_USER_FOREGROUND} - sent to registered receivers of the new * user and all profiles of this user. Sent only if {@code foreground} parameter is true * user and all profiles of this user. Sent only if {@code foreground} parameter is * {@code true} * <li>{@link Intent#ACTION_USER_SWITCHED} - sent to registered receivers of the new user. * Sent only if {@code foreground} parameter is true * Sent only if {@code foreground} parameter is {@code true} * <li>{@link Intent#ACTION_USER_STARTING} - ordered broadcast sent to registered receivers * of the new fg user * <li>{@link Intent#ACTION_LOCKED_BOOT_COMPLETED} - ordered broadcast sent to receivers of Loading services/core/java/com/android/server/pm/UserManagerService.java +15 −7 Original line number Diff line number Diff line Loading @@ -3683,6 +3683,11 @@ public class UserManagerService extends IUserManager.Stub { long now = System.currentTimeMillis(); final long nowRealtime = SystemClock.elapsedRealtime(); final int currentUser = LocalServices.getService(ActivityManagerInternal.class) .getCurrentUserId(); pw.print("Current user: "); pw.println(currentUser); StringBuilder sb = new StringBuilder(); synchronized (mPackagesLock) { synchronized (mUsersLock) { Loading @@ -3696,6 +3701,7 @@ public class UserManagerService extends IUserManager.Stub { final int userId = userInfo.id; pw.print(" "); pw.print(userInfo); pw.print(" serialNo="); pw.print(userInfo.serialNumber); pw.print(" isPrimary="); pw.print(userInfo.isPrimary()); if (mRemovingUserIds.get(userId)) { pw.print(" <removing> "); } Loading Loading @@ -3778,13 +3784,15 @@ public class UserManagerService extends IUserManager.Stub { synchronized (mUserStates) { pw.println(" Started users state: " + mUserStates); } } // synchronized (mPackagesLock) // Dump some capabilities pw.println(); pw.println(" Max users: " + UserManager.getMaxSupportedUsers()); pw.println(" Supports switchable users: " + UserManager.supportsMultipleUsers()); pw.println(" All guests ephemeral: " + Resources.getSystem().getBoolean( com.android.internal.R.bool.config_guestUserEphemeral)); } pw.println(" Is split-system user: " + UserManager.isSplitSystemUser()); } private static void dumpTimeAgo(PrintWriter pw, StringBuilder sb, long nowTime, long time) { Loading Loading
services/core/java/com/android/server/am/UserController.java +5 −3 Original line number Diff line number Diff line Loading @@ -985,11 +985,13 @@ class UserController implements Handler.Callback { * <ul> * <li>{@link Intent#ACTION_USER_STARTED} - sent to registered receivers of the new user * <li>{@link Intent#ACTION_USER_BACKGROUND} - sent to registered receivers of the outgoing * user and all profiles of this user. Sent only if {@code foreground} parameter is true * user and all profiles of this user. Sent only if {@code foreground} parameter is * {@code false} * <li>{@link Intent#ACTION_USER_FOREGROUND} - sent to registered receivers of the new * user and all profiles of this user. Sent only if {@code foreground} parameter is true * user and all profiles of this user. Sent only if {@code foreground} parameter is * {@code true} * <li>{@link Intent#ACTION_USER_SWITCHED} - sent to registered receivers of the new user. * Sent only if {@code foreground} parameter is true * Sent only if {@code foreground} parameter is {@code true} * <li>{@link Intent#ACTION_USER_STARTING} - ordered broadcast sent to registered receivers * of the new fg user * <li>{@link Intent#ACTION_LOCKED_BOOT_COMPLETED} - ordered broadcast sent to receivers of Loading
services/core/java/com/android/server/pm/UserManagerService.java +15 −7 Original line number Diff line number Diff line Loading @@ -3683,6 +3683,11 @@ public class UserManagerService extends IUserManager.Stub { long now = System.currentTimeMillis(); final long nowRealtime = SystemClock.elapsedRealtime(); final int currentUser = LocalServices.getService(ActivityManagerInternal.class) .getCurrentUserId(); pw.print("Current user: "); pw.println(currentUser); StringBuilder sb = new StringBuilder(); synchronized (mPackagesLock) { synchronized (mUsersLock) { Loading @@ -3696,6 +3701,7 @@ public class UserManagerService extends IUserManager.Stub { final int userId = userInfo.id; pw.print(" "); pw.print(userInfo); pw.print(" serialNo="); pw.print(userInfo.serialNumber); pw.print(" isPrimary="); pw.print(userInfo.isPrimary()); if (mRemovingUserIds.get(userId)) { pw.print(" <removing> "); } Loading Loading @@ -3778,13 +3784,15 @@ public class UserManagerService extends IUserManager.Stub { synchronized (mUserStates) { pw.println(" Started users state: " + mUserStates); } } // synchronized (mPackagesLock) // Dump some capabilities pw.println(); pw.println(" Max users: " + UserManager.getMaxSupportedUsers()); pw.println(" Supports switchable users: " + UserManager.supportsMultipleUsers()); pw.println(" All guests ephemeral: " + Resources.getSystem().getBoolean( com.android.internal.R.bool.config_guestUserEphemeral)); } pw.println(" Is split-system user: " + UserManager.isSplitSystemUser()); } private static void dumpTimeAgo(PrintWriter pw, StringBuilder sb, long nowTime, long time) { Loading