Home
last modified time | relevance | path

Searched refs:numberOfUsers (Results 1 – 3 of 3) sorted by relevance

/cts/hostsidetests/car/src/android/car/cts/
DCarHostJUnit4TestCase.java146 protected final void requiresExtraUsers(int numberOfUsers) throws Exception { in requiresExtraUsers() argument
152 if (currentNumber + numberOfUsers <= maxNumber) return; in requiresExtraUsers()
155 failCannotCreateUsers(numberOfUsers, currentNumber, maxNumber, /* isAdbRoot= */ false); in requiresExtraUsers()
160 setMaxNumberUsers(maxNumber + numberOfUsers); in requiresExtraUsers()
164 if (currentNumber + numberOfUsers > maxNumber) { in requiresExtraUsers()
165 failCannotCreateUsers(numberOfUsers, currentNumber, maxNumber, /* isAdbRoot= */ true); in requiresExtraUsers()
169 private void failCannotCreateUsers(int numberOfUsers, int currentNumber, int maxNumber, in failCannotCreateUsers() argument
179 fail("Cannot create " + numberOfUsers + " users: current number is " + currentNumber in failCannotCreateUsers()
/cts/hostsidetests/media/src/android/media/cts/
DBaseMultiUserTest.java226 protected boolean canCreateAdditionalUsers(int numberOfUsers) in canCreateAdditionalUsers() argument
228 return getDevice().listUsers().size() + numberOfUsers <= in canCreateAdditionalUsers()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DBaseDevicePolicyTest.java632 protected boolean canCreateAdditionalUsers(int numberOfUsers) in canCreateAdditionalUsers() argument
634 return listUsers().size() + numberOfUsers <= getMaxNumberOfUsersSupported(); in canCreateAdditionalUsers()
641 protected void assumeCanCreateAdditionalUsers(int numberOfUsers) in assumeCanCreateAdditionalUsers() argument
644 assumeTrue("Tests needs at least " + numberOfUsers + " extra users, but device supports " in assumeCanCreateAdditionalUsers()
646 canCreateAdditionalUsers(numberOfUsers)); in assumeCanCreateAdditionalUsers()
650 protected boolean canStartAdditionalUsers(int numberOfUsers) in canStartAdditionalUsers() argument
652 return listRunningUsers().size() + numberOfUsers <= getMaxNumberOfRunningUsersSupported(); in canStartAdditionalUsers()