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

12

/frameworks/base/packages/Keyguard/scripts/
H A Dcopy_profile_icons.sh3 for user in `adb $* shell ls /data/system/users | grep -v xml`
6 adb shell mkdir /data/user/${user}/users
7 for photo in `adb $* shell ls /data/system/users | grep -v xml`
10 adb shell mkdir /data/user/${user}/users/${photo}
11 adb pull /data/system/users/${photo}/photo.png
12 adb push photo.png /data/user/${user}/users/${photo}
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
H A DDatabaseHelper.java54 public static final String KEY_USERS = "users";
104 getCommaSeparatedString(soundModel.keyphrases[0].users));
182 int[] users = getArrayForCommaSeparatedString(
190 if (users == null) {
191 // No users present in the keyphrase.
192 Slog.w(TAG, "Ignoring SoundModel since it doesn't specify users");
197 for (int user : users) {
214 keyphraseId, recognitionModes, modelLocale, text, users);
234 private static String getCommaSeparatedString(int[] users) { argument
235 if (users
[all...]
/frameworks/base/services/core/java/com/android/server/connectivity/
H A DPermissionMonitor.java141 List<UserInfo> users = mUserManager.getUsers(true); // exclude dying users
142 if (users != null) {
143 for (UserInfo user : users) {
183 private void update(Set<Integer> users, Map<Integer, Boolean> apps, boolean add) { argument
188 for (int user : users) {
212 Set<Integer> users = new HashSet<Integer>();
213 users.add(user);
214 update(users, mApps, true);
224 Set<Integer> users
[all...]
/frameworks/base/core/java/android/os/
H A DUserManager.java37 * Manages users and user details on a multi-user system.
151 * When set on the primary user this specifies if the user can remove other users.
202 * <p/>This restriction has no effect on secondary users and managed profiles since only the
213 * Specifies if a user is disallowed from adding new users and
216 * <p/>This restriction has no effect on secondary users and managed profiles since only the
217 * primary user can add other users.
241 * <p/>This restriction has no effect on secondary users and managed profiles since only the
255 * <p/>This restriction has no effect on secondary users and managed profiles since only the
434 * Returns whether the system supports multiple users.
435 * @return true if multiple users ca
[all...]
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DKeyguardMultiUserSelectorView.java75 ArrayList<UserInfo> users = new ArrayList<UserInfo>(userList);
76 Collections.sort(users, mOrderAddedComparator);
78 for (UserInfo user: users) {
/frameworks/base/tests/VoiceEnrollment/src/com/android/test/voiceenrollment/
H A DEnrollmentUtil.java40 * This needs to be defined by an activity that supports enrolling users for hotword/keyphrase
84 * and users for which the keyphrase is valid - typically the current user.
192 if (keyphrase.users == null || keyphrase.users.length == 0) {
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DUserManagerTest.java163 // Create as many users as permitted and make sure creation passes
183 List<UserInfo> users = mUserManager.getUsers();
184 if (users.size() > 1) {
188 mUserManager.setUserRestrictions(restrictions, new UserHandle(users.get(1).id));
189 Bundle stored = mUserManager.getUserRestrictions(new UserHandle(users.get(1).id));
/frameworks/base/core/java/android/hardware/soundtrigger/
H A DSoundTrigger.java72 /** Maximum number of users per key phrase */
272 public final int[] users; field in class:SoundTrigger.Keyphrase
274 public Keyphrase(int id, int recognitionModes, String locale, String text, int[] users) { argument
279 this.users = users;
298 int[] users = null;
301 users = new int[numUsers];
302 in.readIntArray(users);
304 return new Keyphrase(id, recognitionModes, locale, text, users);
313 if (users !
[all...]
/frameworks/base/services/core/java/com/android/server/pm/
H A DPackageSettingBase.java263 boolean isAnyInstalled(int[] users) { argument
264 for (int user: users) {
272 int[] queryInstalledUsers(int[] users, boolean installed) { argument
274 for (int user : users) {
281 for (int user : users) {
H A DSettings.java213 // For every user, it is used to find to which other users the intent can be forwarded.
552 List<UserInfo> users = getAllUsers();
554 if (users != null && allowInstall) {
555 for (UserInfo user : users) {
560 // asked to install for all users, or this is the
595 List<UserInfo> users = getAllUsers();
596 if (users != null) {
597 for (UserInfo user : users) {
628 List<UserInfo> users = getAllUsers();
629 if (users !
1951 readLPw(PackageManagerService service, List<UserInfo> users, int sdkVersion, boolean onlyCore) argument
3310 dumpPackageLPr(PrintWriter pw, String prefix, String checkinTag, PackageSetting ps, SimpleDateFormat sdf, Date date, List<UserInfo> users) argument
[all...]
H A DUserManagerService.java99 private static final String TAG_USERS = "users";
113 private static final String USER_INFO_DIR = "system" + File.separator + "users";
229 // Prune out any partially created/partially removed users.
263 checkManageUsersPermission("query users");
265 ArrayList<UserInfo> users = new ArrayList<UserInfo>(mUsers.size());
272 users.add(ui);
275 return users;
297 ArrayList<UserInfo> users = new ArrayList<UserInfo>(mUsers.size());
300 return users;
313 users
[all...]
/frameworks/base/services/usage/java/com/android/server/usage/
H A DUsageStatsService.java139 final List<UserInfo> users = mUserManager.getUsers(true);
140 if (users == null || users.size() == 0) {
141 throw new IllegalStateException("There can't be no users");
147 // No users to delete.
153 final int userCount = users.size();
155 final UserInfo userInfo = users.get(i);
/frameworks/base/tests/SoundTriggerTests/src/android/hardware/soundtrigger/
H A DSoundTriggerTest.java53 assertNull(unparceled.users);
72 assertTrue(Arrays.equals(keyphrase.users, unparceled.users));
91 assertTrue(Arrays.equals(keyphrase.users, unparceled.users));
/frameworks/base/core/java/android/provider/
H A DCallLog.java413 * running users. The caller must have the MANAGE_USERS permission if this is true.
525 // Insert the entry for all currently running users, in order to trigger any
529 List<UserInfo> users = userManager.getUsers(true);
531 final int count = users.size();
533 final UserInfo user = users.get(i);
/frameworks/base/include/storage/
H A DIMountService.h46 getStorageUsers(const String16& mountPoint, int32_t** users) = 0;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DInboundSmsHandler.java821 // Get a list of currently started users.
822 int[] users = null;
824 users = ActivityManagerNative.getDefault().getRunningUserIds();
827 if (users == null) {
828 users = new int[] {user.getIdentifier()};
830 // Deliver the broadcast only to those running users that are permitted
832 for (int i = users.length - 1; i >= 0; i--) {
833 UserHandle targetUser = new UserHandle(users[i]);
834 if (users[i] != UserHandle.USER_OWNER) {
839 // Skip unknown users an
[all...]
/frameworks/base/services/core/java/com/android/server/
H A DLockSettingsService.java58 * to be able to save lockscreen information for secondary users.
107 // Clear up keystore in case anything was left behind by previous users
150 List<UserInfo> users = um.getUsers();
151 for (int user = 0; user < users.size(); user++) {
153 final int userId = users.get(user).id;
/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/services/core/java/com/android/server/notification/
H A DManagedServices.java629 int[] users = new int[mCurrentProfiles.size()];
632 users[i] = mCurrentProfiles.keyAt(i);
634 return users;
/frameworks/base/core/java/com/android/internal/os/
H A DBatteryStatsHelper.java263 SparseArray<UserHandle> users = new SparseArray<UserHandle>(1);
264 users.put(asUser, new UserHandle(asUser));
265 refreshStats(statsType, users);
273 SparseArray<UserHandle> users = new SparseArray<UserHandle>(n);
276 users.put(userHandle.getIdentifier(), userHandle);
278 refreshStats(statsType, users);
339 // Before aggregating apps in to users, collect all apps to sort by their ms per packet.
/frameworks/base/core/jni/
H A Dandroid_hardware_SoundTrigger.cpp79 jfieldID users; member in struct:__anon808
605 jintArray jUsers = (jintArray)env->GetObjectField(jPhrase, gKeyphraseFields.users);
608 memcpy(phraseModel->phrases[i].users,
840 gKeyphraseFields.users = env->GetFieldID(keyphraseClass, "users", "[I");
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
H A DActivityTestMain.java156 List<UserInfo> users = um.getUsers();
158 for (UserInfo ui : users) {
/frameworks/base/cmds/pm/src/com/android/commands/pm/
H A DPm.java230 if ("get-max-users".equals(op)) {
292 } else if ("users".equals(type)) {
1243 List<UserInfo> users = mUm.getUsers(false);
1244 if (users == null) {
1245 System.err.println("Error: couldn't get users");
1249 for (int i = 0; i < users.size(); i++) {
1250 String running = am.isUserRunning(users.get(i).id, false) ? " running" : "";
1251 System.out.println("\t" + users.get(i).toString() + running);
1263 System.out.println("Maximum supported users: " + UserManager.getMaxSupportedUsers());
1799 System.err.println(" pm list users");
[all...]
/frameworks/base/services/core/java/com/android/server/accounts/
H A DAccountManagerService.java100 * {@link IAccountAuthenticator} services. This service is not accessed by users directly,
617 // Only allow the system process to read accounts of other users
658 * Child users are not allowed to add accounts. Only the accounts that are
828 * Adds the account to all limited users as shared accounts. If the user is currently
830 * @param account the account to share with limited users
833 List<UserInfo> users = getUserManager().getUsers();
834 for (UserInfo user : users) {
1033 * those users with which the account was shared.
1035 List<UserInfo> users = mUserManager.getUsers(true);
1036 for (UserInfo user : users) {
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DLockPatternUtils.java299 // TODO: This is a little inefficient. See if all users of this are able to
527 // Check if the number of switchable users forces the lockscreen.
528 final List<UserInfo> users = UserManager.get(mContext).getUsers(true);
529 final int userCount = users.size();
532 if (users.get(i).supportsSwitchTo()) {

Completed in 1486 milliseconds

12