Searched refs:userIds (Results 1 – 10 of 10) sorted by relevance
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
D | AppSecurityPreparer.java | 72 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()
|
D | Utils.java | 185 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()
|
D | RoleSecurityTest.java | 48 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()
|
D | ResumeOnRebootHostTest.java | 605 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/ |
D | Utils.java | 130 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/ |
D | PackageInstallationSessionReportedStatsTestsHelper.java | 45 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/ |
D | PackageInstallationSessionReportedStatsTests.java | 174 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/ |
D | PreCreateUsersHostTest.java | 221 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/ |
D | Users.java | 398 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/ |
D | InstallUtils.java | 366 List<Integer> userIds) { in isOnlyInstalledForUser() argument 369 for (int userId: userIds) { in isOnlyInstalledForUser()
|