Home
last modified time | relevance | path

Searched refs:users (Results 1 – 25 of 125) sorted by relevance

12345

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerServiceCreateProfileTest.java63 List<UserInfo> users = mUserManagerService.getUsers(/* excludeDying */ false); in setup() local
64 assertEquals("Multiple users so this test can't run.", 1, users.size()); in setup()
66 UserHandle.USER_SYSTEM, users.get(0).id); in setup()
81 List<UserInfo> users = in testGetProfiles() local
83 assertEquals("Profiles returned where none should exist", 1, users.size()); in testGetProfiles()
85 UserHandle.USER_SYSTEM, users.get(0).id); in testGetProfiles()
88 users = mUserManagerService.getProfiles(secondaryUser.id, /*excludeDying*/ false); in testGetProfiles()
89 assertEquals("Profiles returned where none should exist", 2, users.size()); in testGetProfiles()
90 assertTrue("Missing secondary user id", users.get(0).id == secondaryUser.id in testGetProfiles()
91 || users.get(1).id == secondaryUser.id); in testGetProfiles()
[all …]
DUserManagerServiceUserInfoTest.java67 List<UserInfo> users = mUserManagerService.getUsers(/* excludeDying */ false); in setup() local
68 assertEquals("Multiple users so this test can't run.", 1, users.size()); in setup()
70 UserHandle.USER_SYSTEM, users.get(0).id); in setup()
/frameworks/base/packages/SystemUI/scripts/
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/
DDatabaseHelper.java164 getCommaSeparatedString(soundModel.keyphrases[0].users)); in updateKeyphraseSoundModel()
247 int[] users = getArrayForCommaSeparatedString( in getKeyphraseSoundModel() local
255 if (users == null) { in getKeyphraseSoundModel()
262 for (int user : users) { in getKeyphraseSoundModel()
279 keyphraseId, recognitionModes, modelLocale, text, users); in getKeyphraseSoundModel()
302 private static String getCommaSeparatedString(int[] users) { in getCommaSeparatedString() argument
303 if (users == null) { in getCommaSeparatedString()
307 for (int i = 0; i < users.length; i++) { in getCommaSeparatedString()
311 sb.append(users[i]); in getCommaSeparatedString()
321 int[] users = new int[usersStr.length]; in getArrayForCommaSeparatedString() local
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationAssistantsTest.java97 List<UserInfo> users = new ArrayList<>(); in setUp() local
98 users.add(mZero); in setUp()
99 users.add(mTen); in setUp()
100 users.add(new UserInfo(11, "11", 0)); in setUp()
101 users.add(new UserInfo(12, "12", 0)); in setUp()
102 for (UserInfo user : users) { in setUp()
105 when(mUm.getUsers()).thenReturn(users); in setUp()
106 when(mUm.getUsers(anyBoolean())).thenReturn(users); in setUp()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/
DPackageDexUsageTests.java366 Set<String> users = new HashSet<>(Arrays.asList( in testRecordDexFileUsers() local
371 assertTrue(record(packageDexUsageRecordUsers, mFooSplit2UsedByOtherApps0, users)); in testRecordDexFileUsers()
374 assertTrue(record(packageDexUsageRecordUsers, mFooSecondary1User0, users)); in testRecordDexFileUsers()
379 Set<String> userAll = new HashSet<>(users); in testRecordDexFileUsers()
388 Set<String> users = new HashSet<>(Arrays.asList( in testRecordDexFileUsersNotTheOwningPackage() local
393 assertTrue(record(packageDexUsageRecordUsers, mFooSplit2UsedByOtherApps0, users)); in testRecordDexFileUsersNotTheOwningPackage()
396 assertTrue(record(packageDexUsageRecordUsers, mFooSecondary1User0, users)); in testRecordDexFileUsersNotTheOwningPackage()
563 private void assertPackageDexUsage(PackageDexUsage packageDexUsage, Set<String> users, in assertPackageDexUsage() argument
565 assertPackageDexUsage(packageDexUsage, users, primary, Arrays.asList(secondaries)); in assertPackageDexUsage()
568 private void assertPackageDexUsage(PackageDexUsage packageDexUsage, Set<String> users, in assertPackageDexUsage() argument
[all …]
/frameworks/opt/car/services/tests/src/com/android/internal/car/
DCarHelperServiceTest.java105 List<UserInfo> users = new ArrayList<>(); in testStartsLastActiveUserOnReboot() local
115 users.add(admin); in testStartsLastActiveUserOnReboot()
116 users.add(secUser); in testStartsLastActiveUserOnReboot()
118 doReturn(users).when(mCarUserManagerHelper).getAllUsers(); in testStartsLastActiveUserOnReboot()
/frameworks/base/core/java/android/webkit/
DUserPackage.java50 List<UserInfo> users = getAllUsers(context); in getPackageInfosAllUsers() local
51 List<UserPackage> userPackages = new ArrayList<UserPackage>(users.size()); in getPackageInfosAllUsers()
52 for (UserInfo user : users) { in getPackageInfosAllUsers()
/frameworks/base/services/core/java/com/android/server/connectivity/
DPermissionMonitor.java189 List<UserInfo> users = mUserManager.getUsers(true); // exclude dying users in startMonitoring() local
190 if (users != null) { in startMonitoring()
191 for (UserInfo user : users) { in startMonitoring()
281 private void update(Set<Integer> users, Map<Integer, Boolean> apps, boolean add) { in update() argument
286 for (int user : users) { in update()
317 Set<Integer> users = new HashSet<>(); in onUserAdded() local
318 users.add(user); in onUserAdded()
319 update(users, mApps, true); in onUserAdded()
336 Set<Integer> users = new HashSet<>(); in onUserRemoved() local
337 users.add(user); in onUserRemoved()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/om/
DOverlayManagerSettingsTests.java136 int[] users = mSettings.getUsers(); in testGetUsers() local
137 assertEquals(0, users.length); in testGetUsers()
140 users = mSettings.getUsers(); in testGetUsers()
141 assertEquals(1, users.length); in testGetUsers()
142 assertContains(users, OVERLAY_A0.userId); in testGetUsers()
146 users = mSettings.getUsers(); in testGetUsers()
147 assertEquals(2, users.length); in testGetUsers()
148 assertContains(users, OVERLAY_A0.userId); in testGetUsers()
149 assertContains(users, OVERLAY_A1.userId); in testGetUsers()
/frameworks/base/core/java/android/hardware/soundtrigger/
DSoundTrigger.java319 public final int[] users; field in SoundTrigger.Keyphrase
322 public Keyphrase(int id, int recognitionModes, String locale, String text, int[] users) { in Keyphrase() argument
327 this.users = users; in Keyphrase()
346 int[] users = null; in fromParcel() local
349 users = new int[numUsers]; in fromParcel()
350 in.readIntArray(users); in fromParcel()
352 return new Keyphrase(id, recognitionModes, locale, text, users); in fromParcel()
361 if (users != null) { in writeToParcel()
362 dest.writeInt(users.length); in writeToParcel()
363 dest.writeIntArray(users); in writeToParcel()
[all …]
/frameworks/base/services/core/java/com/android/server/storage/
DAppCollector.java118 List<UserInfo> users = mUm.getUsers(); in handleMessage() local
119 for (int userCount = 0, userSize = users.size(); in handleMessage()
121 UserInfo user = users.get(userCount); in handleMessage()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbSettingsManager.java149 List<UserInfo> users = mUserManager.getUsers(); in dump() local
150 int numUsers = users.size(); in dump()
152 getSettingsForUser(users.get(i).id).dump(dump, "user_settings", in dump()
/frameworks/base/tests/SoundTriggerTests/src/android/hardware/soundtrigger/
DSoundTriggerTest.java53 assertNull(unparceled.users); in testKeyphraseParcelUnparcel_noUsers()
72 assertTrue(Arrays.equals(keyphrase.users, unparceled.users)); in testKeyphraseParcelUnparcel_zeroUsers()
91 assertTrue(Arrays.equals(keyphrase.users, unparceled.users)); in testKeyphraseParcelUnparcel_pos()
/frameworks/base/core/java/android/os/
DUserManager.java2342 List<UserInfo> users = getUsers(); in getUserCount() local
2343 return users != null ? users.size() : 1; in getUserCount()
2374 List<UserInfo> users = mService.getUsers(excludeDying); in getSerialNumbersOfUsers() local
2375 long[] result = new long[users.size()]; in getSerialNumbersOfUsers()
2377 result[i] = users.get(i).serialNumber; in getSerialNumbersOfUsers()
2440 final List<UserInfo> users = getUsers(true); in canAddMoreUsers() local
2441 final int totalUserCount = users.size(); in canAddMoreUsers()
2444 UserInfo user = users.get(i); in canAddMoreUsers()
2967 List<UserInfo> users = getUsers(true); in isUserSwitcherEnabled() local
2968 if (users == null) { in isUserSwitcherEnabled()
[all …]
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/statusbar/car/
DUserGridRecyclerView.java188 public UserAdapter(Context context, List<UserRecord> users) { in UserAdapter() argument
191 updateUsers(users); in UserAdapter()
200 public void updateUsers(List<UserRecord> users) { in updateUsers() argument
201 mUsers = users; in updateUsers()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/
DStorageMeasurement.java148 final List<UserInfo> users = mUser.getUsers(); in measureExactStorage() local
175 for (UserInfo user : users) { in measureExactStorage()
205 for (UserInfo user : users) { in measureExactStorage()
/frameworks/base/tests/VoiceEnrollment/src/com/android/test/voiceenrollment/
DEnrollmentUtil.java191 if (keyphrase.users == null || keyphrase.users.length == 0) { in verifyKeyphraseSoundModel()
/frameworks/base/services/core/java/com/android/server/infra/
DAbstractMasterSystemService.java227 final List<UserInfo> users = um.getUsers(); in AbstractMasterSystemService() local
228 for (int i = 0; i < users.size(); i++) { in AbstractMasterSystemService()
229 final int userId = users.get(i).id; in AbstractMasterSystemService()
688 final List<UserInfo> users = um.getUsers(); in dumpLocked() local
689 for (int i = 0; i < users.size(); i++) { in dumpLocked()
690 final int userId = users.get(i).id; in dumpLocked()
/frameworks/base/core/proto/android/server/
Dface.proto28 // Each log may include multiple user_id for different users.
29 repeated FaceUserStatsProto users = 1; field
/frameworks/opt/car/services/src/com/android/internal/car/
DCarServiceHelperService.java319 LinkedList<Integer> users = new LinkedList<>(); in notifyAllUnlockedUsers() local
323 users.add(entry.getKey()); in notifyAllUnlockedUsers()
328 Slog.d(TAG, "notifyAllUnlockedUsers:" + users); in notifyAllUnlockedUsers()
330 for (Integer i : users) { in notifyAllUnlockedUsers()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/handheld/
DUninstallAlertDialogFragment.java107 List<UserInfo> users = userManager.getUsers(); in getAppDataSize() local
109 int numUsers = users.size(); in getAppDataSize()
111 appDataSize += getAppDataSizeForUser(pkg, UserHandle.of(users.get(i).id)); in getAppDataSize()
/frameworks/base/core/java/android/permission/
DPermissionControllerService.java374 onGetPermissionUsages(countSystem, numMillis, users -> { in onBind()
375 if (users != null && !users.isEmpty()) { in onBind()
377 result.putParcelableList(PermissionControllerManager.KEY_RESULT, users); in onBind()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DUninstallFinish.java139 List<UserInfo> users = userManager.getUsers(); in onReceive() local
141 for (int i = 0; i < users.size(); ++i) { in onReceive()
142 final UserInfo user = users.get(i); in onReceive()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DPermissionMonitorTest.java389 public void expectPermission(Boolean permission, int[] users, int[] apps) { in expectPermission() argument
390 for (final int user : users) { in expectPermission()
403 public void expectNoPermission(int[] users, int[] apps) { in expectNoPermission() argument
404 for (final int user : users) { in expectNoPermission()
553 private void addPackageForUsers(int[] users, String packageName, int uid) { in addPackageForUsers() argument
554 for (final int user : users) { in addPackageForUsers()
559 private void removePackageForUsers(int[] users, int uid) { in removePackageForUsers() argument
560 for (final int user : users) { in removePackageForUsers()

12345