Searched refs:managedProfile (Results 1 – 7 of 7) sorted by relevance
136 final UserHandle managedProfile = Utils.getManagedProfile(mUserManager); in isManagedProfileRestrictedByBase() local137 return managedProfile != null in isManagedProfileRestrictedByBase()138 && hasShareLocationRestriction(managedProfile.getIdentifier()); in isManagedProfileRestrictedByBase()
27 UserHandle managedProfile = new Utils().getManagedProfile(context);28 return managedProfile != null;
165 final boolean managedProfile = mContext.getSystemService(UserManager.class) in isScreenLockVisible()171 && !managedProfile; // Profiles should use unified challenge instead. in isScreenLockVisible()175 && !managedProfile; // Swipe doesn't make sense for profiles. in isScreenLockVisible()
76 final UserHandle managedProfile = Utils.getManagedProfile(mUserManager); in onAttach() local77 mUserId = mForWork && managedProfile != null in onAttach()78 ? managedProfile.getIdentifier() in onAttach()
51 UserInfo managedProfile = new UserInfo(TEST_MANAGED_PROFILE_ID, null, in setUp() local53 when(mUserManager.getUserInfo(eq(TEST_MANAGED_PROFILE_ID))).thenReturn(managedProfile); in setUp()
182 final boolean managedProfile = UserManager.get(getContext()).isManagedProfile(mUserId); in loadFromSettings()185 final boolean showNotifications = managedProfile || Settings.Secure.getIntForUser( in loadFromSettings()
312 final UserInfo managedProfile = in testGetNumberOfOwnerInstalledCaCertsForManagedProfile() local322 mProfiles.add(managedProfile); in testGetNumberOfOwnerInstalledCaCertsForManagedProfile()