Searched refs:managedProfile (Results 1 – 10 of 10) sorted by relevance
85 @NonNull Context context, @Nullable UserHandle managedProfile) { in getContentProtectionPolicy() argument89 Context policyContext = createContentProtectionPolicyContext(context, managedProfile); in getContentProtectionPolicy()95 @NonNull Context context, @Nullable UserHandle managedProfile) { in createContentProtectionPolicyContext() argument96 if (managedProfile == null) { in createContentProtectionPolicyContext()101 context.getPackageName(), /* flags= */ 0, managedProfile); in createContentProtectionPolicyContext()
87 UserHandle managedProfile = in displayPreference() local89 if (managedProfile != null) { in displayPreference()92 switchPreference.setDisabledByAdmin(getEnforcedAdmin(managedProfile)); in displayPreference()
27 UserHandle managedProfile = new Utils().getManagedProfile(context);28 return managedProfile != null;
145 final UserHandle managedProfile = Utils.getManagedProfile(mUserManager); in isManagedProfileRestrictedByBase() local146 return managedProfile != null in isManagedProfileRestrictedByBase()147 && hasShareLocationRestriction(managedProfile.getIdentifier()); in isManagedProfileRestrictedByBase()
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()
52 UserInfo managedProfile = new UserInfo(TEST_MANAGED_PROFILE_ID, null, in setUp() local54 when(mUserManager.getUserInfo(eq(TEST_MANAGED_PROFILE_ID))).thenReturn(managedProfile); in setUp()
235 val managedProfile = in testProfileSwitchClearsSelection() constant239 checkNotNull(managedProfile) { "Expected a managed profile to exist!" } in testProfileSwitchClearsSelection()241 viewModel.requestSwitchUser(requested = managedProfile, context = mockContext) in testProfileSwitchClearsSelection()
81 final UserHandle managedProfile = Utils.getManagedProfile(mUserManager); in onAttach() local82 mUserId = mForWork && managedProfile != null in onAttach()83 ? managedProfile.getIdentifier() in onAttach()
194 final boolean managedProfile = UserManager.get(getContext()).isManagedProfile(mUserId); in loadFromSettings()197 final boolean showNotifications = managedProfile || Settings.Secure.getIntForUser( in loadFromSettings()
318 final UserInfo managedProfile = in testGetNumberOfOwnerInstalledCaCertsForManagedProfile() local328 mProfiles.add(managedProfile); in testGetNumberOfOwnerInstalledCaCertsForManagedProfile()