Home
last modified time | relevance | path

Searched refs:managedProfile (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Settings/src/com/android/settings/security/
DContentProtectionPreferenceUtils.java85 @NonNull Context context, @Nullable UserHandle managedProfile) { in getContentProtectionPolicy() argument
89 Context policyContext = createContentProtectionPolicyContext(context, managedProfile); in getContentProtectionPolicy()
95 @NonNull Context context, @Nullable UserHandle managedProfile) { in createContentProtectionPolicyContext() argument
96 if (managedProfile == null) { in createContentProtectionPolicyContext()
101 context.getPackageName(), /* flags= */ 0, managedProfile); in createContentProtectionPolicyContext()
DContentProtectionWorkSwitchController.java87 UserHandle managedProfile = in displayPreference() local
89 if (managedProfile != null) { in displayPreference()
92 switchPreference.setDisabledByAdmin(getEnforcedAdmin(managedProfile)); in displayPreference()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DManagedProfileChecker.java27 UserHandle managedProfile = new Utils().getManagedProfile(context);
28 return managedProfile != null;
/packages/apps/Settings/src/com/android/settings/location/
DLocationEnabler.java145 final UserHandle managedProfile = Utils.getManagedProfile(mUserManager); in isManagedProfileRestrictedByBase() local
146 return managedProfile != null in isManagedProfileRestrictedByBase()
147 && hasShareLocationRestriction(managedProfile.getIdentifier()); in isManagedProfileRestrictedByBase()
/packages/apps/Settings/src/com/android/settings/password/
DChooseLockGenericController.java165 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()
/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/
DUtilsTest.java52 UserInfo managedProfile = new UserInfo(TEST_MANAGED_PROFILE_ID, null, in setUp() local
54 when(mUserManager.getUserInfo(eq(TEST_MANAGED_PROFILE_ID))).thenReturn(managedProfile); in setUp()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/profileselector/
DProfileSelectorViewModelTest.kt235 val managedProfile = in testProfileSwitchClearsSelection() constant
239 checkNotNull(managedProfile) { "Expected a managed profile to exist!" } in testProfileSwitchClearsSelection()
241 viewModel.requestSwitchUser(requested = managedProfile, context = mockContext) in testProfileSwitchClearsSelection()
/packages/apps/Settings/src/com/android/settings/widget/
DRadioButtonPickerFragment.java81 final UserHandle managedProfile = Utils.getManagedProfile(mUserManager); in onAttach() local
82 mUserId = mForWork && managedProfile != null in onAttach()
83 ? managedProfile.getIdentifier() in onAttach()
/packages/apps/Settings/src/com/android/settings/notification/
DRedactionInterstitial.java194 final boolean managedProfile = UserManager.get(getContext()).isManagedProfile(mUserId); in loadFromSettings()
197 final boolean showNotifications = managedProfile || Settings.Secure.getIntForUser( in loadFromSettings()
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DEnterprisePrivacyFeatureProviderImplTest.java318 final UserInfo managedProfile = in testGetNumberOfOwnerInstalledCaCertsForManagedProfile() local
328 mProfiles.add(managedProfile); in testGetNumberOfOwnerInstalledCaCertsForManagedProfile()