Searched refs:users (Results 1 - 19 of 19) sorted by relevance

/frameworks/base/core/java/android/os/
H A DUserManager.java30 * 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 DKeyguardMultiUserSelectorView.java77 ArrayList<UserInfo> users = new ArrayList<UserInfo>(userList);
78 Collections.sort(users, mOrderAddedComparator);
80 for (UserInfo user: users) {
H A DKeyguardHostView.java1382 // 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 DPackageSettingBase.java208 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 DSettings.java434 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 DUserManagerService.java80 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 DPackageManagerService.java266 // 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 DIMountService.h46 getStorageUsers(const String16& mountPoint, int32_t** users) = 0;
/frameworks/base/libs/storage/
H A DIMountService.cpp196 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 DActivityTestMain.java133 List<UserInfo> users = um.getUsers();
135 for (UserInfo ui : users) {
/frameworks/base/services/java/com/android/server/am/
H A DActiveServices.java1763 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 DActivityManagerService.java260 // 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 DGlobalActions.java316 // 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 DSyncManager.java269 // 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 DWallpaperManagerService.java608 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 DPm.java178 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 DAccountManagerService.java83 * {@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 DPackageManagerTests.java568 List<UserInfo> users = um.getUsers();
569 for (UserInfo user : users) {
/frameworks/base/services/java/com/android/server/net/
H A DNetworkPolicyManagerService.java1242 // TODO: set for other users during upgrade
1768 final List<UserInfo> users = um.getUsers();
1772 for (UserInfo user : users) {

Completed in 232 milliseconds