Home
last modified time | relevance | path

Searched refs:UNLIMITED_NUMBER_OF_USERS (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/core/java/com/android/server/pm/
DUserTypeDetails.java49 public static final int UNLIMITED_NUMBER_OF_USERS = -1; field in UserTypeDetails
428 private int mMaxAllowed = UNLIMITED_NUMBER_OF_USERS;
429 private int mMaxAllowedPerParent = UNLIMITED_NUMBER_OF_USERS;
DUserTypeFactory.java42 import static com.android.server.pm.UserTypeDetails.UNLIMITED_NUMBER_OF_USERS;
348 .setMaxAllowed(UNLIMITED_NUMBER_OF_USERS) in getDefaultTypeFullSecondary()
376 .setMaxAllowed(UNLIMITED_NUMBER_OF_USERS) in getDefaultTypeFullDemo()
389 .setMaxAllowed(UNLIMITED_NUMBER_OF_USERS) in getDefaultTypeFullRestricted()
DUserManagerService.java3642 if (max == UserTypeDetails.UNLIMITED_NUMBER_OF_USERS) { in canAddMoreUsersOfType()
3686 type.getMaxAllowed() == UserTypeDetails.UNLIMITED_NUMBER_OF_USERS in getRemainingCreatableUserCount()
3811 if (maxUsersOfType != UserTypeDetails.UNLIMITED_NUMBER_OF_USERS) { in getRemainingCreatableProfileCount()
3819 if (type.getMaxAllowed() != UserTypeDetails.UNLIMITED_NUMBER_OF_USERS) { in getRemainingCreatableProfileCount()
8041 if (maxUsersOfType == UserTypeDetails.UNLIMITED_NUMBER_OF_USERS) {
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerServiceUserTypeTest.java28 import static com.android.server.pm.UserTypeDetails.UNLIMITED_NUMBER_OF_USERS;
211 assertEquals(UNLIMITED_NUMBER_OF_USERS, type.getMaxAllowed()); in testUserTypeBuilder_defaults()
212 assertEquals(UNLIMITED_NUMBER_OF_USERS, type.getMaxAllowedPerParent()); in testUserTypeBuilder_defaults()
478 assertEquals(UNLIMITED_NUMBER_OF_USERS, details.getMaxAllowedPerParent()); in testUserTypeFactoryCustomize_full()
DUserManagerTest.java433 final int remainingUserType = maxUsersForType == UserTypeDetails.UNLIMITED_NUMBER_OF_USERS ? in testAddTooManyUsers()