Home
last modified time | relevance | path

Searched refs:userIds (Results 1 – 10 of 10) sorted by relevance

/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DAppSecurityPreparer.java72 final int[] userIds = Utils.getAllUsers(device); in removeSecondaryUsers() local
73 for (int i = 1; i < userIds.length; i++) { in removeSecondaryUsers()
74 if (device.getCurrentUser() != userIds[i]) { in removeSecondaryUsers()
75 device.removeUser(userIds[i]); in removeSecondaryUsers()
76 CLog.logAndDisplay(LogLevel.INFO, "Destroyed secondary user " + userIds[i]); in removeSecondaryUsers()
DUtils.java185 final int[] userIds = getAllUsers(device); in prepareMultipleUsers() local
187 for (int i = 1; i < userIds.length; i++) { in prepareMultipleUsers()
189 device.startUser(userIds[i], true); in prepareMultipleUsers()
190 } else if (userIds[i] != currentUserId) { in prepareMultipleUsers()
191 device.stopUser(userIds[i], true, true); in prepareMultipleUsers()
194 if (userIds.length > maxUsers) { in prepareMultipleUsers()
195 return Arrays.copyOf(userIds, maxUsers); in prepareMultipleUsers()
197 return userIds; in prepareMultipleUsers()
DRoleSecurityTest.java48 final int[] userIds = Utils.prepareMultipleUsers(getDevice(), 2); in cannotGetSmsRoleHolderForAnotherUser() local
49 assumeTrue(userIds.length == 2); in cannotGetSmsRoleHolderForAnotherUser()
52 final int secondaryUserId = userIds[1]; in cannotGetSmsRoleHolderForAnotherUser()
DResumeOnRebootHostTest.java605 int[] userIds = Utils.getAllUsers(getDevice()); in normalizeUserStates() local
606 switchUser(userIds[0]); in normalizeUserStates()
608 for (int userId : userIds) { in normalizeUserStates()
/cts/hostsidetests/classloaders/useslibrary/src/android/classloaders/cts/
DUtils.java130 final int[] userIds = getAllUsers(device); in prepareMultipleUsers() local
131 for (int i = 1; i < userIds.length; i++) { in prepareMultipleUsers()
133 device.startUser(userIds[i]); in prepareMultipleUsers()
135 device.stopUser(userIds[i]); in prepareMultipleUsers()
138 if (userIds.length > maxUsers) { in prepareMultipleUsers()
139 return Arrays.copyOf(userIds, maxUsers); in prepareMultipleUsers()
141 return userIds; in prepareMultipleUsers()
/cts/hostsidetests/packagemanager/stats/device/src/com/android/cts/packagemanager/stats/device/
DPackageInstallationSessionReportedStatsTestsHelper.java45 String[] userIds = userIdsString.split(","); in getUserTypeIntegers() local
54 for (String userId : userIds) { in getUserTypeIntegers()
/cts/hostsidetests/packagemanager/stats/src/com/android/cts/packagemanager/stats/host/
DPackageInstallationSessionReportedStatsTests.java174 private void checkUserTypes(List<Integer> userIds, List<Integer> reportedUserTypes) in checkUserTypes() argument
176 if (userIds == null || userIds.isEmpty()) { in checkUserTypes()
181 userIds.stream().map(Object::toString).collect(Collectors.joining(",")) in checkUserTypes()
/cts/hostsidetests/car/src/android/car/cts/
DPreCreateUsersHostTest.java221 List<Integer> userIds = getPreCreatedUsers(); in deletePreCreatedUsers() local
222 for (int userId : userIds) { in deletePreCreatedUsers()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/users/
DUsers.java398 Set<Integer> userIds;
400 userIds = users().map(ui -> ui.getId()).collect(Collectors.toSet());
403 userIds = mCachedUsers.keySet();
408 while (userIds.contains(id)) {
/cts/libs/install/src/com/android/cts/install/lib/
DInstallUtils.java366 List<Integer> userIds) { in isOnlyInstalledForUser() argument
369 for (int userId: userIds) { in isOnlyInstalledForUser()