Home
last modified time | relevance | path

Searched refs:canAddPrivateProfile (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DUserManagerServiceTest.java591 assumeTrue(mUms.canAddPrivateProfile(mainUser)); in testAutoLockPrivateProfile()
613 assumeTrue(mUms.canAddPrivateProfile(mainUser)); in testAutoLockOnDeviceLockForPrivateProfile()
635 assumeTrue(mUms.canAddPrivateProfile(0)); in testAutoLockOnDeviceLockForPrivateProfile_keyguardUnlocked()
656 assumeTrue(mUms.canAddPrivateProfile(mainUser)); in testAutoLockOnDeviceLockForPrivateProfile_flagDisabled()
678 assumeTrue(mUms.canAddPrivateProfile(mainUser)); in testAutoLockAfterInactityForPrivateProfile()
717 assumeTrue(mUms.canAddPrivateProfile(mainUser)); in testSetOrUpdateAutoLockPreference()
770 assumeTrue(mUms.canAddPrivateProfile(0)); in testGetProfileIdsExcludingHidden()
787 assumeTrue(mSpiedUms.canAddPrivateProfile(mainUser)); in testCreatePrivateProfileOnHeadlessSystemUser_shouldAllowCreation()
798 assertThat(mUms.canAddPrivateProfile(user.id)).isFalse(); in testCreatePrivateProfileOnSecondaryUser_shouldNotAllowCreation()
810 assertThat(mUms.canAddPrivateProfile(mainUser)).isFalse(); in testCreatePrivateProfileOnAutoDevices_shouldNotAllowCreation()
[all …]
/frameworks/base/core/java/android/os/
DIUserManager.aidl88 boolean canAddPrivateProfile(int userId); in canAddPrivateProfile() method
DUserManager.java3226 public boolean canAddPrivateProfile() { in canAddPrivateProfile() method in UserManager
3230 return mService.canAddPrivateProfile(mUserId); in canAddPrivateProfile()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerTest.java327 mUserManager.canAddPrivateProfile()); in testPrivateProfile()
1265 assumeTrue(mUserManager.canAddPrivateProfile()); in testPrivateProfileCreationRestrictions()
1279 assumeTrue(mUserManager.canAddPrivateProfile()); in testDefaultUserRestrictionsForPrivateProfile()
/frameworks/base/services/core/java/com/android/server/pm/
DUserManagerService.java2857 public boolean canAddPrivateProfile(@UserIdInt int userId) { in canAddPrivateProfile() method in UserManagerService
5514 && isPrivateProfile && !canAddPrivateProfile(parentId)) {
7229 pw.println("Can add private profile: "+ canAddPrivateProfile(currentUserId));
/frameworks/base/core/api/
Dtest-current.txt2498 …android.Manifest.permission.CREATE_USERS}, conditional=true) public boolean canAddPrivateProfile();