Searched refs:canAddPrivateProfile (Results 1 – 6 of 6) sorted by relevance
591 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 …]
88 boolean canAddPrivateProfile(int userId); in canAddPrivateProfile() method
3226 public boolean canAddPrivateProfile() { in canAddPrivateProfile() method in UserManager3230 return mService.canAddPrivateProfile(mUserId); in canAddPrivateProfile()
327 mUserManager.canAddPrivateProfile()); in testPrivateProfile()1265 assumeTrue(mUserManager.canAddPrivateProfile()); in testPrivateProfileCreationRestrictions()1279 assumeTrue(mUserManager.canAddPrivateProfile()); in testDefaultUserRestrictionsForPrivateProfile()
2857 public boolean canAddPrivateProfile(@UserIdInt int userId) { in canAddPrivateProfile() method in UserManagerService5514 && isPrivateProfile && !canAddPrivateProfile(parentId)) {7229 pw.println("Can add private profile: "+ canAddPrivateProfile(currentUserId));
2498 …android.Manifest.permission.CREATE_USERS}, conditional=true) public boolean canAddPrivateProfile();