Searched defs:users (Results 1 - 14 of 14) sorted by relevance

/frameworks/base/services/core/java/com/android/server/connectivity/
H A DPermissionMonitor.java142 List<UserInfo> users = mUserManager.getUsers(true); // exclude dying users
143 if (users != null) {
144 for (UserInfo user : users) {
185 private void update(Set<Integer> users, Map<Integer, Boolean> apps, boolean add) { argument
190 for (int user : users) {
214 Set<Integer> users = new HashSet<>();
215 users.add(user);
216 update(users, mApps, true);
226 Set<Integer> users
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/connectivity/
H A DVpnTest.java58 // Mock users
264 * Populate {@link #mUserManager} with a list of fake users.
266 private void setMockedUsers(UserInfo... users) { argument
268 for (UserInfo user : users) {
277 final ArrayList<UserInfo> result = new ArrayList<>(users.length);
278 for (UserInfo ui : users) {
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawer/
H A DUserAdapter.java44 * Adapter for a spinner that shows a list of users.
81 public UserAdapter(Context context, ArrayList<UserDetails> users) { argument
82 if (users == null) {
85 this.data = users;
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/users/
H A DAppRestrictionsHelper.java17 package com.android.settingslib.users;
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
H A DDatabaseHelper.java58 public static final String KEY_USERS = "users";
105 // keyphrase id, locale, and users are unique. We have to first pull
164 getCommaSeparatedString(soundModel.keyphrases[0].users));
247 int[] users = getArrayForCommaSeparatedString(
255 if (users == null) {
256 // No users present in the keyphrase.
257 Slog.w(TAG, "Ignoring SoundModel since it doesn't specify users");
262 for (int user : users) {
279 keyphraseId, recognitionModes, modelLocale, text, users);
302 private static String getCommaSeparatedString(int[] users) { argument
337 public final String users; field in class:DatabaseHelper.SoundModelRecord
[all...]
/frameworks/base/core/java/android/hardware/soundtrigger/
H A DSoundTrigger.java74 /** Maximum number of users per key phrase */
280 public final int[] users; field in class:SoundTrigger.Keyphrase
282 public Keyphrase(int id, int recognitionModes, String locale, String text, int[] users) { argument
287 this.users = users;
306 int[] users = null;
309 users = new int[numUsers];
310 in.readIntArray(users);
312 return new Keyphrase(id, recognitionModes, locale, text, users);
321 if (users !
[all...]
/frameworks/base/libs/storage/
H A DIMountService.cpp196 int32_t getStorageUsers(const String16& mountPoint, int32_t** users) argument
213 ALOGW("Number of users is negative: %d\n", numUsersI);
218 *users = (int32_t*)malloc(sizeof(int32_t)*numUsers);
220 **users++ = reply.readInt32();
/frameworks/base/services/core/java/com/android/server/pm/
H A DPackageSettingBase.java302 boolean isAnyInstalled(int[] users) { argument
303 for (int user: users) {
311 int[] queryInstalledUsers(int[] users, boolean installed) { argument
313 for (int user : users) {
320 for (int user : users) {
H A DSettings.java342 // For every user, it is used to find to which other users the intent can be forwarded.
789 List<UserInfo> users = getAllUsers();
791 if (users != null && allowInstall) {
792 for (UserInfo user : users) {
797 // asked to install for all users, or this is the
833 List<UserInfo> users = getAllUsers();
834 if (users != null) {
835 for (UserInfo user : users) {
866 List<UserInfo> users = getAllUsers();
867 if (users !
2764 readLPw(@onNull List<UserInfo> users) argument
4295 dumpPackageLPr(PrintWriter pw, String prefix, String checkinTag, ArraySet<String> permissionNames, PackageSetting ps, SimpleDateFormat sdf, Date date, List<UserInfo> users, boolean dumpAll) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_hardware_SoundTrigger.cpp83 jfieldID users; member in struct:__anon889
623 jintArray jUsers = (jintArray)env->GetObjectField(jPhrase, gKeyphraseFields.users);
626 memcpy(phraseModel->phrases[i].users,
864 gKeyphraseFields.users = GetFieldIDOrDie(env, keyphraseClass, "users", "[I");
/frameworks/native/cmds/installd/
H A Dutils.cpp220 std::vector<userid_t> users; local
223 users.push_back(0);
228 // Unable to discover other users, but at least return owner
230 return users;
243 users.push_back(user);
248 return users;
H A Dcommands.cpp328 std::vector<userid_t> users = get_known_users(/*volume_uuid*/ nullptr); local
329 for (auto user : users) {
395 std::vector<userid_t> users = get_known_users(/*volume_uuid*/ nullptr); local
396 for (auto user : users) {
414 // TODO(calin): If the package is still installed by other users it's probably
424 std::vector<userid_t> users = get_known_users(from_uuid); local
458 // Copy private data for all known users
459 for (auto user : users) {
461 // Data source may not exist for all users; that's okay
532 for (auto user : users) {
596 auto users = get_known_users(uuid); local
1170 std::vector<userid_t> users = get_known_users(/*volume_uuid*/ nullptr); local
[all...]
/frameworks/base/services/core/java/com/android/server/
H A DMountService.java149 * storage. Also decides how storage should be presented to users on the device.
297 /** Set of users that we know are unlocked. */
300 /** Set of users that system knows are unlocked. */
814 private void killMediaProvider(List<UserInfo> users) { argument
815 if (users == null) return;
819 for (UserInfo user : users) {
833 // We only need to run this once. It will kill all users' media processes.
863 final List<UserInfo> users = mContext.getSystemService(UserManager.class).getUsers();
864 for (UserInfo user : users) {
883 final List<UserInfo> users
[all...]
/frameworks/base/services/core/java/com/android/server/am/
H A DActivityManagerService.java941 * for stickies that are sent to all users.
5740 int[] users = userId == UserHandle.USER_ALL
5742 for (int user : users) {
6148 Slog.w(TAG, "Can't force stop all processes of all users, that is insane!");
6219 // stopping users, because we have some problems when doing this
8553 * to all users.
8648 // of other users.
9216 // Only add calling user or related users recent tasks
10478 // Looking for cross-user grants before enforcing the typical cross-users permissions
11467 * users, the
17784 collectReceiverComponents(Intent intent, String resolvedType, int callingUid, int[] users) argument
[all...]

Completed in 500 milliseconds