Searched refs:numberOfUsers (Results 1 – 3 of 3) sorted by relevance
/cts/hostsidetests/car/util/src/android/car/cts/ |
D | CarHostJUnit4TestCase.java | 185 protected final void requiresExtraUsers(int numberOfUsers) throws Exception { in requiresExtraUsers() argument 191 if (currentNumber + numberOfUsers <= maxNumber) return; in requiresExtraUsers() 194 failCannotCreateUsers(numberOfUsers, currentNumber, maxNumber, /* isAdbRoot= */ false); in requiresExtraUsers() 199 setMaxNumberUsers(maxNumber + numberOfUsers); in requiresExtraUsers() 203 if (currentNumber + numberOfUsers > maxNumber) { in requiresExtraUsers() 204 failCannotCreateUsers(numberOfUsers, currentNumber, maxNumber, /* isAdbRoot= */ true); in requiresExtraUsers() 208 private void failCannotCreateUsers(int numberOfUsers, int currentNumber, int maxNumber, in failCannotCreateUsers() argument 218 fail("Cannot create " + numberOfUsers + " users: current number is " + currentNumber in failCannotCreateUsers()
|
/cts/hostsidetests/media/src/android/media/cts/ |
D | BaseMultiUserTest.java | 248 protected boolean canCreateAdditionalUsers(int numberOfUsers) in canCreateAdditionalUsers() argument 250 return getDevice().listUsers().size() + numberOfUsers <= in canCreateAdditionalUsers()
|
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | BaseDevicePolicyTest.java | 627 protected boolean canCreateAdditionalUsers(int numberOfUsers) in canCreateAdditionalUsers() argument 629 return listUsers().size() + numberOfUsers <= getMaxNumberOfUsersSupported(); in canCreateAdditionalUsers() 636 protected void assumeCanCreateAdditionalUsers(int numberOfUsers) in assumeCanCreateAdditionalUsers() argument 639 assumeTrue("Tests needs at least " + numberOfUsers + " extra users, but device supports " in assumeCanCreateAdditionalUsers() 641 canCreateAdditionalUsers(numberOfUsers)); in assumeCanCreateAdditionalUsers() 645 protected boolean canStartAdditionalUsers(int numberOfUsers) in canStartAdditionalUsers() argument 647 return listRunningUsers().size() + numberOfUsers <= getMaxNumberOfRunningUsersSupported(); in canStartAdditionalUsers()
|