Merge "fix: isMultiUserSupported in TestDevice does not reflect real value"
This commit is contained in:
@@ -314,6 +314,8 @@ class PackageManagerShellCommand extends ShellCommand {
|
|||||||
return runRemoveUser();
|
return runRemoveUser();
|
||||||
case "set-user-restriction":
|
case "set-user-restriction":
|
||||||
return runSetUserRestriction();
|
return runSetUserRestriction();
|
||||||
|
case "supports-multiple-users":
|
||||||
|
return runSupportsMultipleUsers();
|
||||||
case "get-max-users":
|
case "get-max-users":
|
||||||
return runGetMaxUsers();
|
return runGetMaxUsers();
|
||||||
case "get-max-running-users":
|
case "get-max-running-users":
|
||||||
@@ -3014,6 +3016,12 @@ class PackageManagerShellCommand extends ShellCommand {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int runSupportsMultipleUsers() {
|
||||||
|
getOutPrintWriter().println("Is multiuser supported: "
|
||||||
|
+ UserManager.supportsMultipleUsers());
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
public int runGetMaxUsers() {
|
public int runGetMaxUsers() {
|
||||||
getOutPrintWriter().println("Maximum supported users: "
|
getOutPrintWriter().println("Maximum supported users: "
|
||||||
+ UserManager.getMaxSupportedUsers());
|
+ UserManager.getMaxSupportedUsers());
|
||||||
|
|||||||
Reference in New Issue
Block a user