Lines Matching refs:UserInfo
23 import android.content.pm.UserInfo;
55 List<UserInfo> list = mUserManager.getUsers();
57 for (UserInfo user : list) {
69 UserInfo userInfo = mUserManager.createUser("Guest 1", UserInfo.FLAG_GUEST);
70 assertTrue(userInfo != null);
72 List<UserInfo> list = mUserManager.getUsers();
74 for (UserInfo user : list) {
75 if (user.id == userInfo.id && user.name.equals("Guest 1")
86 removeUser(userInfo.id);
90 UserInfo user1 = mUserManager.createUser("Guest 1", UserInfo.FLAG_GUEST);
91 UserInfo user2 = mUserManager.createUser("User 2", UserInfo.FLAG_ADMIN);
104 UserInfo userInfo = mUserManager.createUser("Guest 1", UserInfo.FLAG_GUEST);
105 removeUser(userInfo.id);
107 assertFalse(findUser(userInfo.id));
111 UserInfo userInfo1 = mUserManager.createUser("Guest 1", UserInfo.FLAG_GUEST);
112 UserInfo userInfo2 = mUserManager.createUser("Guest 2", UserInfo.FLAG_GUEST);
122 UserInfo userInfo1 = mUserManager.createProfileForUser("Managed 1",
123 UserInfo.FLAG_MANAGED_PROFILE, UserHandle.USER_OWNER);
124 UserInfo userInfo2 = mUserManager.createProfileForUser("Managed 2",
125 UserInfo.FLAG_MANAGED_PROFILE, UserHandle.USER_OWNER);
135 List<UserInfo> list = mUserManager.getUsers();
137 for (UserInfo user : list) {
146 UserInfo user1 = mUserManager.createUser("User 1", UserInfo.FLAG_RESTRICTED);
151 UserInfo user2 = mUserManager.createUser("User 2", UserInfo.FLAG_RESTRICTED);
162 List<UserInfo> created = new ArrayList<UserInfo>();
165 UserInfo ui = mUserManager.createUser("User " + count, 0);
171 UserInfo extra = null;
177 UserInfo user = created.remove(0);
183 List<UserInfo> users = mUserManager.getUsers();