Class of android.os · UserManager.java · Android's reference
public class UserManager
The device's one user, unlocked.
public UserManager() empty body sourcepublic boolean isUserUnlocked() sourcepublic boolean isUserUnlocked(UserHandle user) sourcepublic boolean isDemoUser() sourcepublic boolean isManagedProfile() sourcepublic boolean isSystemUser() sourcepublic boolean isUserAGoat() sourcepublic boolean isUserRunning(UserHandle user) sourcepublic UserHandle getUserForSerialNumber(long serial) sourcepublic long getSerialNumberForUser(UserHandle user) sourcepublic java.util.List<UserHandle> getUserProfiles() sourcepublic Bundle getUserRestrictions() sourcepublic Bundle getApplicationRestrictions(String packageName) sourceNo device policy sets restrictions here.
public boolean hasUserRestriction(String key) sourcepublic static boolean supportsMultipleUsers() sourceMade from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.