Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/os/
DIUserManager.aidl67 boolean canAddMoreProfilesToUser(in String userType, int userId, boolean allowedToRemoveOne); in canAddMoreProfilesToUser() argument
68 boolean canAddMoreManagedProfiles(int userId, boolean allowedToRemoveOne); in canAddMoreManagedProfiles() argument
DUserManager.java4146 public boolean canAddMoreManagedProfiles(@UserIdInt int userId, boolean allowedToRemoveOne) { in canAddMoreManagedProfiles() argument
4148 return mService.canAddMoreManagedProfiles(userId, allowedToRemoveOne); in canAddMoreManagedProfiles()
/frameworks/base/services/core/java/com/android/server/pm/
DUserManagerService.java2670 public boolean canAddMoreManagedProfiles(@UserIdInt int userId, boolean allowedToRemoveOne) { in canAddMoreManagedProfiles() argument
2672 allowedToRemoveOne); in canAddMoreManagedProfiles()
2678 boolean allowedToRemoveOne) { in canAddMoreProfilesToUser() argument
2679 return 0 < getRemainingCreatableProfileCount(userType, userId, allowedToRemoveOne); in canAddMoreProfilesToUser()
2693 boolean allowedToRemoveOne) { in getRemainingCreatableProfileCount() argument
2716 final int profilesRemovedCount = userTypeCount > 0 && allowedToRemoveOne ? 1 : 0; in getRemainingCreatableProfileCount()