/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserManagerTest.java | 23 import android.content.pm.UserInfo; 72 List<UserInfo> list = mUserManager.getUsers(); in removeExistingUsers() 73 for (UserInfo user : list) { in removeExistingUsers() 89 UserInfo userInfo = createUser("Guest 1", UserInfo.FLAG_GUEST); in testAddUser() 92 List<UserInfo> list = mUserManager.getUsers(); in testAddUser() 94 for (UserInfo user : list) { in testAddUser() 109 UserInfo user1 = createUser("Guest 1", UserInfo.FLAG_GUEST); in testAdd2Users() 110 UserInfo user2 = createUser("User 2", UserInfo.FLAG_ADMIN); in testAdd2Users() 121 UserInfo userInfo = createUser("Guest 1", UserInfo.FLAG_GUEST); in testRemoveUser() 128 UserInfo userInfo1 = createUser("Guest 1", UserInfo.FLAG_GUEST); in testAddGuest() [all …]
|
D | PackageManagerSettingsTests.java | 27 import android.content.pm.UserInfo; 53 private @NonNull List<UserInfo> createFakeUsers() { in createFakeUsers() 54 ArrayList<UserInfo> users = new ArrayList<>(); in createFakeUsers() 55 users.add(new UserInfo(UserHandle.USER_SYSTEM, "test user", UserInfo.FLAG_INITIALIZED)); in createFakeUsers()
|
/frameworks/base/core/java/android/content/pm/ |
D | UserInfo.java | 29 public class UserInfo implements Parcelable { class 112 public UserInfo(int id, String name, int flags) { in UserInfo() method in UserInfo 116 public UserInfo(int id, String name, String iconPath, int flags) { in UserInfo() method in UserInfo 216 public UserInfo() { in UserInfo() method in UserInfo 219 public UserInfo(UserInfo orig) { in UserInfo() method in UserInfo 262 public static final Parcelable.Creator<UserInfo> CREATOR 263 = new Parcelable.Creator<UserInfo>() { 264 public UserInfo createFromParcel(Parcel source) { 265 return new UserInfo(source); 267 public UserInfo[] newArray(int size) { [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/connectivity/ |
D | VpnTest.java | 19 import static android.content.pm.UserInfo.FLAG_ADMIN; 20 import static android.content.pm.UserInfo.FLAG_MANAGED_PROFILE; 21 import static android.content.pm.UserInfo.FLAG_PRIMARY; 22 import static android.content.pm.UserInfo.FLAG_RESTRICTED; 30 import android.content.pm.UserInfo; 59 static final UserInfo primaryUser = new UserInfo(27, "Primary", FLAG_ADMIN | FLAG_PRIMARY); 60 static final UserInfo secondaryUser = new UserInfo(15, "Secondary", FLAG_ADMIN); 61 static final UserInfo restrictedProfileA = new UserInfo(40, "RestrictedA", FLAG_RESTRICTED); 62 static final UserInfo restrictedProfileB = new UserInfo(42, "RestrictedB", FLAG_RESTRICTED); 63 static final UserInfo managedProfileA = new UserInfo(45, "ManagedA", FLAG_MANAGED_PROFILE); [all …]
|
/frameworks/base/core/java/android/os/ |
D | IUserManager.aidl | 22 import android.content.pm.UserInfo; 38 UserInfo createUser(in String name, int flags); in createUser() 39 UserInfo createProfileForUser(in String name, int flags, int userHandle); in createProfileForUser() 40 UserInfo createRestrictedProfile(String name, int parentUserHandle); in createRestrictedProfile() 46 UserInfo getPrimaryUser(); in getPrimaryUser() 47 List<UserInfo> getUsers(boolean excludeDying); in getUsers() 48 List<UserInfo> getProfiles(int userHandle, boolean enabledOnly); in getProfiles() 51 UserInfo getProfileParent(int userHandle); in getProfileParent() 53 UserInfo getUserInfo(int userHandle); in getUserInfo()
|
D | UserManager.java | 34 import android.content.pm.UserInfo; 813 UserInfo user = getUserInfo(UserHandle.myUserId()); in isPrimaryUser() 843 UserInfo user = getUserInfo(userId); in isUserAdmin() 879 UserInfo user = getUserInfo(UserHandle.myUserId()); in isGuestUser() 945 final UserInfo user = getUserInfo(userId); in isUserEphemeral() 1088 public UserInfo getUserInfo(@UserIdInt int userHandle) { in getUserInfo() 1276 public UserInfo createUser(String name, int flags) { in createUser() 1277 UserInfo user = null; in createUser() 1298 public UserInfo createGuest(Context context, String name) { in createGuest() 1299 UserInfo guest = null; in createGuest() [all …]
|
D | UserManagerInternal.java | 20 import android.content.pm.UserInfo; 128 public abstract UserInfo createUserEvenWhenDisallowed(String name, int flags); in createUserEvenWhenDisallowed()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserManagerService.java | 42 import android.content.pm.UserInfo; 178 UserInfo.FLAG_MANAGED_PROFILE 179 | UserInfo.FLAG_EPHEMERAL 180 | UserInfo.FLAG_RESTRICTED 181 | UserInfo.FLAG_GUEST 182 | UserInfo.FLAG_DEMO; 225 UserInfo info; 450 UserInfo currentGuestUser = findCurrentGuestUser(); in systemReady() 466 ArrayList<UserInfo> partials = new ArrayList<>(); in cleanupPartialUsers() 470 UserInfo ui = mUsers.valueAt(i).info; in cleanupPartialUsers() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DpmMockContext.java | 39 import android.content.pm.UserInfo; 276 private final ArrayList<UserInfo> mUserInfos = new ArrayList<>(); 314 systemUserDataDir = addUser(UserHandle.USER_SYSTEM, UserInfo.FLAG_PRIMARY); in DpmMockContext() 323 final UserInfo uh = new UserInfo(userId, "user" + userId, flags); in addUser() 331 new Answer<UserInfo>() { in addUser() 333 public UserInfo answer(InvocationOnMock invocation) throws Throwable { in addUser() 335 for (UserInfo ui : mUserInfos) { in addUser() 345 new Answer<List<UserInfo>>() { in addUser() 347 public List<UserInfo> answer(InvocationOnMock invocation) throws Throwable { in addUser() 358 List<UserInfo> profiles = getProfiles(userId); in addUser() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | ManagedProfileController.java | 23 import android.content.pm.UserInfo; 37 private final LinkedList<UserInfo> mProfiles; 44 mProfiles = new LinkedList<UserInfo>(); in ManagedProfileController() 63 for (UserInfo ui : mProfiles) { in setWorkModeEnabled() 83 for (UserInfo ui : mUserManager.getEnabledProfiles(user)) { in reloadManagedProfiles() 107 for (UserInfo ui : mProfiles) { in isWorkModeEnabled()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiConfigurationUtilTest.java | 22 import android.content.pm.UserInfo; 40 static final List<UserInfo> PROFILES = Arrays.asList( 41 new UserInfo(CURRENT_USER_ID, "owner", 0), 42 new UserInfo(CURRENT_USER_MANAGED_PROFILE_USER_ID, "managed profile", 0));
|
D | ConfigurationMapTest.java | 24 import android.content.pm.UserInfo; 63 private static final SparseArray<List<UserInfo>> USER_PROFILES = new SparseArray<>(); 66 new UserInfo(UserHandle.USER_SYSTEM, "Owner", 0), in USER_PROFILES.put() 67 new UserInfo(12, "Managed Profile", 0))); in USER_PROFILES.put() 68 USER_PROFILES.put(10, Arrays.asList(new UserInfo(10, "Alice", 0))); 69 USER_PROFILES.put(11, Arrays.asList(new UserInfo(11, "Bob", 0))); 86 public List<UserInfo> answer(int userId) { in setUp()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiConfigurationUtil.java | 19 import android.content.pm.UserInfo; 37 public static boolean isVisibleToAnyProfile(WifiConfiguration config, List<UserInfo> profiles) { in isVisibleToAnyProfile() 42 for (UserInfo profile : profiles) { in isVisibleToAnyProfile()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | UserController.java | 60 import android.content.pm.UserInfo; 211 if (UserInfo.isSystemOnly(oldUserId)) { in stopRunningUsersLocked() 264 final UserInfo parent = getUserManager().getProfileParent(userId); in finishUserBoot() 344 UserInfo parent = getUserManager().getProfileParent(userId); in finishUserUnlocked() 362 final UserInfo info = getUserInfo(userId); in finishUserUnlocked() 392 final UserInfo userInfo = getUserInfo(userId); in finishUserUnlockedCompleted() 664 UserInfo.NO_PROFILE_GROUP_ID); in getUsersToStopLocked() 670 UserInfo.NO_PROFILE_GROUP_ID); in getUsersToStopLocked() 671 boolean sameGroup = (userGroupId != UserInfo.NO_PROFILE_GROUP_ID) in getUsersToStopLocked() 710 UserInfo userInfo = getUserInfo(oldUserId); in stopGuestOrEphemeralUserIfBackground() [all …]
|
D | UserSwitchingDialog.java | 21 import android.content.pm.UserInfo; 55 public UserSwitchingDialog(ActivityManagerService service, Context context, UserInfo oldUser, in UserSwitchingDialog() 56 UserInfo newUser, boolean aboveSystem) { in UserSwitchingDialog()
|
D | ActivityStartInterceptor.java | 41 import android.content.pm.UserInfo; 137 final UserInfo parent = mUserManager.getProfileParent(mUserId); in interceptQuietProfileIfNeeded() 160 final UserInfo parent = mUserManager.getProfileParent(mUserId); in interceptSuspendPackageIfNeed() 198 final UserInfo parent = mUserManager.getProfileParent(mUserId); in interceptWorkProfileChallengeIfNeeded()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/ |
D | StorageMeasurement.java | 28 import android.content.pm.UserInfo; 202 List<UserInfo> profiles, Message finished, int remaining) { in StatsObserver() 208 for (UserInfo userInfo : profiles) { in StatsObserver() 360 final List<UserInfo> users = userManager.getUsers(); in measureExactStorage() 361 final List<UserInfo> currentProfiles = userManager.getEnabledProfiles( in measureExactStorage() 374 for (UserInfo currentUserInfo : currentProfiles) { in measureExactStorage() 395 for (UserInfo user : users) { in measureExactStorage() 430 for (UserInfo user : users) { in measureExactStorage()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | GuestResumeSessionReceiver.java | 27 import android.content.pm.UserInfo; 67 UserInfo currentUser; in onReceive() 97 UserInfo currentUser; in wipeGuestSession() 120 UserInfo newGuest = userManager.createGuest(context, currentUser.name); in wipeGuestSession()
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | RegisteredServicesCacheTest.java | 60 private List<UserInfo> mUsers; 71 mUsers.add(new UserInfo(0, "Owner", UserInfo.FLAG_ADMIN)); in setUp() 72 mUsers.add(new UserInfo(1, "User1", 0)); in setUp() 240 protected List<UserInfo> getUsers() { in getUsers() 245 protected UserInfo getUser(int userId) { in getUser() 246 for (UserInfo user : getUsers()) { in getUser()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | IntentForwarderActivity.java | 29 import android.content.pm.UserInfo; 178 List<UserInfo> relatedUsers = userManager.getProfiles(UserHandle.myUserId()); in getManagedProfile() 179 for (UserInfo userInfo : relatedUsers) { in getManagedProfile() 193 UserInfo parent = userManager.getProfileParent(UserHandle.myUserId()); in getProfileParent()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/storage/ |
D | AppCollectorTest.java | 19 import android.content.pm.UserInfo; 57 private List<UserInfo> mUsers; 72 mUsers.add(new UserInfo(0, "", 0)); in setUp() 145 mUsers.add(new UserInfo(1, "", 0)); in testMultipleUsersOneApp()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | RestrictedLockUtils.java | 25 import android.content.pm.UserInfo; 146 for (UserInfo userInfo : um.getProfiles(userId)) { in checkIfKeyguardFeaturesDisabled() 315 List<UserInfo> userProfiles = um.getProfiles(userId); in getManagedProfileId() 316 for (UserInfo uInfo : userProfiles) { in getManagedProfileId() 415 for (UserInfo userInfo : um.getProfiles(userId)) { in checkIfPasswordQualityIsSet() 474 final List<UserInfo> profiles = um.getProfiles(userId); in checkIfMaximumTimeToLockIsSet() 480 final UserInfo userInfo = profiles.get(i); in checkIfMaximumTimeToLockIsSet() 644 for (UserInfo userInfo : um.getProfiles(UserHandle.myUserId())) { in isCurrentUserOrProfile() 656 for (UserInfo userInfo : um.getProfiles(UserHandle.myUserId())) { in isAdminInCurrentUserOrProfile()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | UserSwitcherController.java | 30 import android.content.pm.UserInfo; 190 List<UserInfo> infos = mUserManager.getUsers(true); in refreshUsers() 197 UserInfo currentUserInfo = null; in refreshUsers() 200 for (UserInfo info : infos) { in refreshUsers() 345 UserInfo guest = mUserManager.createGuest( in switchTo() 423 UserInfo info = mUserManager.getUserInfo(mLastNonGuestUser); in exitGuest() 446 UserInfo userInfo = mUserManager.getUserInfo(currentUserId); 467 UserInfo userInfo = mUserManager.getUserInfo(currentUser); 481 final UserInfo userInfo = mUserManager.getUserInfo(currentId); 712 public final UserInfo info; [all …]
|
/frameworks/base/services/core/java/com/android/server/storage/ |
D | AppCollector.java | 25 import android.content.pm.UserInfo; 146 List<UserInfo> users = mUm.getUsers(); in handleMessage() 154 for (UserInfo user : users) { in handleMessage()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | TaskPersisterTest.java | 19 import android.content.pm.UserInfo; 73 UserInfo user = mUserManager.createUser(name, flags); in createUser()
|