Searched refs:numberOfUsers (Results 1 – 2 of 2) sorted by relevance
/cts/hostsidetests/car/src/android/car/cts/ |
D | CarHostJUnit4TestCase.java | 146 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/devicepolicy/src/com/android/cts/devicepolicy/ |
D | BaseDevicePolicyTest.java | 642 protected boolean canCreateAdditionalUsers(int numberOfUsers) in canCreateAdditionalUsers() argument 644 return listUsers().size() + numberOfUsers <= getMaxNumberOfUsersSupported(); in canCreateAdditionalUsers() 651 protected void assumeCanCreateAdditionalUsers(int numberOfUsers) in assumeCanCreateAdditionalUsers() argument 654 assumeTrue("Tests needs at least " + numberOfUsers + " extra users, but device supports " in assumeCanCreateAdditionalUsers() 656 canCreateAdditionalUsers(numberOfUsers)); in assumeCanCreateAdditionalUsers() 660 protected boolean canStartAdditionalUsers(int numberOfUsers) in canStartAdditionalUsers() argument 662 return listRunningUsers().size() + numberOfUsers <= getMaxNumberOfRunningUsersSupported(); in canStartAdditionalUsers()
|