/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() 1092 public UserInfo getUserInfo(@UserIdInt int userHandle) { in getUserInfo() 1280 public UserInfo createUser(String name, int flags) { in createUser() 1281 UserInfo user = null; in createUser() 1302 public UserInfo createGuest(Context context, String name) { in createGuest() 1303 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 | 44 import android.content.pm.UserInfo; 180 UserInfo.FLAG_MANAGED_PROFILE 181 | UserInfo.FLAG_EPHEMERAL 182 | UserInfo.FLAG_RESTRICTED 183 | UserInfo.FLAG_GUEST; 226 UserInfo info; 451 UserInfo currentGuestUser = findCurrentGuestUser(); in systemReady() 467 ArrayList<UserInfo> partials = new ArrayList<>(); in cleanupPartialUsers() 471 UserInfo ui = mUsers.valueAt(i).info; in cleanupPartialUsers() 481 UserInfo ui = partials.get(i); in cleanupPartialUsers() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DpmMockContext.java | 32 import android.content.pm.UserInfo; 273 private final ArrayList<UserInfo> mUserInfos = new ArrayList<>(); 310 systemUserDataDir = addUser(UserHandle.USER_SYSTEM, UserInfo.FLAG_PRIMARY); in DpmMockContext() 319 final UserInfo uh = new UserInfo(userId, "user" + userId, flags); in addUser() 327 new Answer<UserInfo>() { in addUser() 329 public UserInfo answer(InvocationOnMock invocation) throws Throwable { in addUser() 331 for (UserInfo ui : mUserInfos) { in addUser() 341 new Answer<List<UserInfo>>() { in addUser() 343 public List<UserInfo> answer(InvocationOnMock invocation) throws Throwable { in addUser() 354 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 | 58 import android.content.pm.UserInfo; 209 if (UserInfo.isSystemOnly(oldUserId)) { in stopRunningUsersLocked() 259 final UserInfo parent = getUserManager().getProfileParent(userId); in finishUserBoot() 339 UserInfo parent = getUserManager().getProfileParent(userId); in finishUserUnlocked() 357 final UserInfo info = getUserInfo(userId); in finishUserUnlocked() 387 final UserInfo userInfo = getUserInfo(userId); in finishUserUnlockedCompleted() 644 UserInfo.NO_PROFILE_GROUP_ID); in getUsersToStopLocked() 650 UserInfo.NO_PROFILE_GROUP_ID); in getUsersToStopLocked() 651 boolean sameGroup = (userGroupId != UserInfo.NO_PROFILE_GROUP_ID) in getUsersToStopLocked() 690 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 | 40 import android.content.pm.UserInfo; 136 final UserInfo parent = mUserManager.getProfileParent(mUserId); in interceptQuietProfileIfNeeded() 159 final UserInfo parent = mUserManager.getProfileParent(mUserId); in interceptSuspendPackageIfNeed() 197 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; 195 List<UserInfo> profiles, Message finished, int remaining) { in StatsObserver() 201 for (UserInfo userInfo : profiles) { in StatsObserver() 353 final List<UserInfo> users = userManager.getUsers(); in measureExactStorage() 354 final List<UserInfo> currentProfiles = userManager.getEnabledProfiles( in measureExactStorage() 367 for (UserInfo currentUserInfo : currentProfiles) { in measureExactStorage() 388 for (UserInfo user : users) { in measureExactStorage() 423 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/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; 191 List<UserInfo> infos = mUserManager.getUsers(true); in refreshUsers() 198 UserInfo currentUserInfo = null; in refreshUsers() 201 for (UserInfo info : infos) { in refreshUsers() 346 UserInfo guest = mUserManager.createGuest( in switchTo() 424 UserInfo info = mUserManager.getUserInfo(mLastNonGuestUser); in exitGuest() 447 UserInfo userInfo = mUserManager.getUserInfo(currentUserId); 468 UserInfo userInfo = mUserManager.getUserInfo(currentUser); 482 final UserInfo userInfo = mUserManager.getUserInfo(currentId); 713 public final UserInfo info; [all …]
|
/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()
|
/frameworks/base/services/core/java/com/android/server/ |
D | LockSettingsService.java | 34 import android.content.pm.UserInfo; 300 final List<UserInfo> users = mUserManager.getUsers(); in maybeShowEncryptionNotifications() 302 UserInfo user = users.get(i); in maybeShowEncryptionNotifications() 311 UserInfo parent = mUserManager.getProfileParent(user.id); in maybeShowEncryptionNotifications() 396 List<UserInfo> profiles = mUserManager.getProfiles(userId); in onUnlockUser() 398 UserInfo profile = profiles.get(i); in onUnlockUser() 421 final UserInfo parentInfo = mUserManager.getProfileParent(userHandle); 468 List<UserInfo> users = mUserManager.getUsers(); in migrateOldData() 503 List<UserInfo> users = mUserManager.getUsers(); in migrateOldData() 529 final List<UserInfo> users = mUserManager.getUsers(); in migrateOldData() [all …]
|
/frameworks/base/core/tests/coretests/src/android/provider/ |
D | SettingsProviderTest.java | 26 import android.content.pm.UserInfo; 167 UserInfo otherUser = um.createUser("TestUser1", UserInfo.FLAG_GUEST); in testSettingsChangeForOtherUser() 271 for (UserInfo user : um.getUsers()) { in findUser() 288 UserInfo user = um.createUser("TestUser1", UserInfo.FLAG_GUEST); in testPerUserSettings()
|