/frameworks/base/core/java/android/os/ |
H A D | UserManager.java | 30 * Manages users and user details on a multi-user system. 45 * Returns whether the system supports multiple users. 46 * @return true if multiple users can be created, false if it is a single user device. 138 * user created, the new users will not be given the same serial number. 183 * Return the number of users currently created on the device. 186 List<UserInfo> users = getUsers(); 187 return users != null ? users.size() : 1; 191 * Returns information for all users on this device. 193 * @return the list of users tha [all...] |
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/ |
H A D | KeyguardMultiUserSelectorView.java | 77 ArrayList<UserInfo> users = new ArrayList<UserInfo>(userList); 78 Collections.sort(users, mOrderAddedComparator); 80 for (UserInfo user: users) {
|
H A D | KeyguardHostView.java | 1382 // if there are multiple users, we need to enable to multi-user switcher 1383 final List<UserInfo> users = um.getUsers(true); 1384 if (users == null) { 1387 Log.e(TAG, "list of users is null.", t); 1399 if (users.size() > 1) { 1404 multiUser.addUsers(users);
|
/frameworks/base/services/java/com/android/server/pm/ |
H A D | PackageSettingBase.java | 208 boolean isAnyInstalled(int[] users) { argument 209 for (int user: users) { 217 int[] queryInstalledUsers(int[] users, boolean installed) { argument 219 for (int user : users) { 226 for (int user : users) {
|
H A D | Settings.java | 434 List<UserInfo> users = getAllUsers(); 435 if (users != null && allowInstall) { 436 for (UserInfo user : users) { 441 // asked to install for all users, or this is the 472 List<UserInfo> users = getAllUsers(); 473 if (users != null) { 474 for (UserInfo user : users) { 505 List<UserInfo> users = getAllUsers(); 506 if (users != null) { 507 for (UserInfo user : users) { 1559 readLPw(List<UserInfo> users) argument [all...] |
H A D | UserManagerService.java | 80 private static final String TAG_USERS = "users"; 83 private static final String USER_INFO_DIR = "system" + File.separator + "users"; 164 // Prune out any partially created/partially removed users. 185 checkManageUsersPermission("query users"); 187 ArrayList<UserInfo> users = new ArrayList<UserInfo>(mUsers.size()); 194 users.add(ui); 197 return users; 230 checkManageUsersPermission("rename users"); 251 checkManageUsersPermission("update users"); 273 checkManageUsersPermission("read users"); [all...] |
H A D | PackageManagerService.java | 266 // This is where all application persistent data goes for secondary users. 441 // Stores a list of users whose package restrictions file needs to be updated 685 int[] users = sUserManager.getUserIds(); 686 for (int user : users) { 712 // Determine the set of users who are adding this 3568 * Until we fully support multiple users, return the directory we 3581 int[] users = sUserManager.getUserIds(); 3586 for (int user : users) { 3599 int[] users = sUserManager.getUserIds(); 3601 for (int user : users) { [all...] |
/frameworks/base/include/storage/ |
H A D | IMountService.h | 46 getStorageUsers(const String16& mountPoint, int32_t** users) = 0;
|
/frameworks/base/libs/storage/ |
H A D | IMountService.cpp | 196 int32_t getStorageUsers(const String16& mountPoint, int32_t** users) argument 211 *users = (int32_t*)malloc(sizeof(int32_t)*numUsers); 213 **users++ = reply.readInt32();
|
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/ |
H A D | ActivityTestMain.java | 133 List<UserInfo> users = um.getUsers(); 135 for (UserInfo ui : users) {
|
/frameworks/base/services/java/com/android/server/am/ |
H A D | ActiveServices.java | 1763 int[] users = mAm.getUsersLocked(); 1764 for (int ui=0; ui<users.length && res.size() < maxNum; ui++) { 1765 if (mServiceMap.getAllServices(users[ui]).size() > 0) { 1767 users[ui]).iterator(); 1872 int[] users = mAm.getUsersLocked(); 1873 for (int user : users) { 2069 int[] users = mAm.getUsersLocked(); 2071 for (int user : users) { 2090 for (int user : users) {
|
H A D | ActivityManagerService.java | 260 // Maximum number of users we allow to be running at a time. 449 * LRU list of history of current users. Most recently current is at the end. 454 * Constant array of the users that are currently started. 554 * for stickies that are sent to all users. 3569 int[] users = userId == UserHandle.USER_ALL 3571 for (int user : users) { 3824 Slog.w(TAG, "Can't force stop all processes of all users, that is insane!"); 3935 // stopping users, because we have some problems when doing this 5536 // of other users. 7745 final int[] users 11496 collectReceiverComponents(Intent intent, String resolvedType, int[] users) argument [all...] |
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
H A D | GlobalActions.java | 316 // one more thing: optionally add a list of users to switch to 349 List<UserInfo> users = ((UserManager) mContext.getSystemService(Context.USER_SERVICE)) 351 if (users.size() > 1) { 358 for (final UserInfo user : users) {
|
/frameworks/base/core/java/android/content/ |
H A D | SyncManager.java | 269 // Skip any partially created/removed users 443 // Register for account list updates for all users 499 * then all users' accounts are considered. 1082 List<UserInfo> users = getAllUsers(); 1083 if (users != null) { 1084 for (UserInfo user : users) { 1533 final List<UserInfo> users = getAllUsers(); 1534 if (users != null) { 1535 for (UserInfo user : users) {
|
/frameworks/base/services/java/com/android/server/ |
H A D | WallpaperManagerService.java | 608 List<UserInfo> users; 611 users = ((UserManager) mContext.getSystemService(Context.USER_SERVICE)).getUsers(); 615 for (UserInfo user: users) { 1138 // TODO: If necessary, make it work for secondary users as well. This currently assumes
|
/frameworks/base/cmds/pm/src/com/android/commands/pm/ |
H A D | Pm.java | 178 if ("get-max-users".equals(op)) { 236 } else if ("users".equals(type)) { 1039 List<UserInfo> users = mUm.getUsers(false); 1040 if (users == null) { 1041 System.err.println("Error: couldn't get users"); 1044 for (int i = 0; i < users.size(); i++) { 1045 System.out.println("\t" + users.get(i).toString()); 1055 System.out.println("Maximum supported users: " + UserManager.getMaxSupportedUsers()); 1461 System.err.println(" pm list users"); 1479 System.err.println(" pm get-max-users"); [all...] |
/frameworks/base/core/java/android/accounts/ |
H A D | AccountManagerService.java | 83 * {@link IAccountAuthenticator} services. This service is not accessed by users directly, 1304 // Only allow the system process to read accounts of other users 1516 * Returns accounts for all running users. 1533 final List<UserInfo> users = getUserManager().getUsers(); 1534 final int[] userIds = new int[users.size()]; 1536 userIds[i] = users.get(i).id; 1562 // Only allow the system process to read accounts of other users 2079 final List<UserInfo> users = getUserManager().getUsers(); 2080 for (UserInfo user : users) {
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
H A D | PackageManagerTests.java | 568 List<UserInfo> users = um.getUsers(); 569 for (UserInfo user : users) {
|
/frameworks/base/services/java/com/android/server/net/ |
H A D | NetworkPolicyManagerService.java | 1242 // TODO: set for other users during upgrade 1768 final List<UserInfo> users = um.getUsers(); 1772 for (UserInfo user : users) {
|