Home
last modified time | relevance | path

Searched refs:isManagedProfile (Results 1 – 25 of 99) sorted by relevance

1234

/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DAccountPreferenceControllerTest.java109 when(mUserManager.isManagedProfile()).thenReturn(true); in onResume_managedProfile_shouldNotAddAccountCategory()
118 when(mUserManager.isManagedProfile()).thenReturn(false); in onResume_linkedUser_shouldAddOneAccountCategory()
131 when(mUserManager.isManagedProfile()).thenReturn(false); in onResume_oneProfile_shouldAddOneAccountCategory()
145 when(mUserManager.isManagedProfile()).thenReturn(false); in onResume_twoProfiles_shouldAddTwoAccountCategory()
159 when(mUserManager.isManagedProfile()).thenReturn(false); in onResume_noProfileChange_shouldNotAddOrRemoveAccountCategory()
175 when(mUserManager.isManagedProfile()).thenReturn(false); in onResume_oneNewProfile_shouldAddOneAccountCategory()
193 when(mUserManager.isManagedProfile()).thenReturn(false); in onResume_oneProfileRemoved_shouldRemoveOneAccountCategory()
209 when(mUserManager.isManagedProfile()).thenReturn(false); in onResume_oneProfile_shouldSetAccountTitleWithUserName()
226 when(mUserManager.isManagedProfile()).thenReturn(false); in onResume_noPreferenceScreen_shouldNotCrash()
244 when(mUserManager.isManagedProfile()).thenReturn(false); in onResume_noPreferenceManager_shouldNotCrash()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/users/
DAutoSyncWorkDataPreferenceControllerTest.java66 when(mUserManager.isManagedProfile()).thenReturn(true); in checkIsAvailable_managedProfile_shouldNotDisplay()
73 when(mUserManager.isManagedProfile()).thenReturn(false); in checkIsAvailable_linkedUser_shouldNotDisplay()
81 when(mUserManager.isManagedProfile()).thenReturn(false); in checkIsAvailable_singleUserProfile_shouldNotDisplay()
93 when(mUserManager.isManagedProfile()).thenReturn(false); in checkIsAvailable_null_workProfileUserHandle_shouldNotDisplay()
108 when(mUserManager.isManagedProfile()).thenReturn(false); in multipleProfile_shouldInitWithWorkProfileUserHandle()
DAutoSyncPersonalDataPreferenceControllerTest.java72 when(mUserManager.isManagedProfile()).thenReturn(true); in displayPref_managedProfile_shouldNotDisplay()
81 when(mUserManager.isManagedProfile()).thenReturn(false); in displayPref_linkedUser_shouldNotDisplay()
93 when(mUserManager.isManagedProfile()).thenReturn(false); in displayPref_oneProfile_shouldNotDisplay()
107 when(mUserManager.isManagedProfile()).thenReturn(false); in displayPref_prefAvailable_shouldDisplay()
DAutoSyncDataPreferenceControllerTest.java77 when(mUserManager.isManagedProfile()).thenReturn(true); in displayPref_managedProfile_shouldNotDisplay()
86 when(mUserManager.isManagedProfile()).thenReturn(false); in displayPref_linkedUser_shouldDisplay()
98 when(mUserManager.isManagedProfile()).thenReturn(false); in displayPref_oneProfile_shouldDisplay()
112 when(mUserManager.isManagedProfile()).thenReturn(false); in displayPref_moreThanOneProfile_shouldNotDisplay()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DExternalSourceDetailPreferenceControllerTest.java68 when(mUserManager.isManagedProfile()).thenReturn(true); in getAvailabilityStatus_managedProfile_shouldReturnDisabled()
76 when(mUserManager.isManagedProfile()).thenReturn(false); in getAvailabilityStatus_notPotentialAppSource_shouldReturnDisabled()
85 when(mUserManager.isManagedProfile()).thenReturn(false); in getAvailabilityStatus_isPotentialAppSource_shouldReturnAvailable()
109 when(mUserManager.isManagedProfile()).thenReturn(false); in isPotentialAppSource_nullPackageInfo_shouldNotCrash()
DDrawOverlayDetailPreferenceControllerTest.java71 when(mUserManager.isManagedProfile()).thenReturn(true); in getAvailabilityStatus_managedProfile_shouldReturnDisabled()
79 when(mUserManager.isManagedProfile()).thenReturn(false); in getAvailabilityStatus_noPermissionRequested_shouldReturnDisabled()
88 when(mUserManager.isManagedProfile()).thenReturn(false); in getAvailabilityStatus_noSystemAlertWindowPermission_shouldReturnDisabled()
99 when(mUserManager.isManagedProfile()).thenReturn(false); in getAvailabilityStatus_hasSystemAlertWindowPermission_shouldReturnAvailable()
DWriteSystemSettingsPreferenceControllerTest.java71 when(mUserManager.isManagedProfile()).thenReturn(true); in getAvailabilityStatus_managedProfile_shouldReturnDisabled()
79 when(mUserManager.isManagedProfile()).thenReturn(false); in getAvailabilityStatus_noPermissionRequested_shouldReturnDisabled()
88 when(mUserManager.isManagedProfile()).thenReturn(false); in getAvailabilityStatus_noWriteSettingsPermission_shouldReturnDisabled()
99 when(mUserManager.isManagedProfile()).thenReturn(false); in getAvailabilityStatus_hasWriteSettingsPermission_shouldReturnAvailable()
DAppInstallerInfoPreferenceControllerTest.java86 when(mUserManager.isManagedProfile()).thenReturn(true); in getAvailabilityStatus_managedProfile_shouldReturnDisabled()
94 when(mUserManager.isManagedProfile()).thenReturn(false); in getAvailabilityStatus_noAppLabel_shouldReturnDisabled()
102 when(mUserManager.isManagedProfile()).thenReturn(false); in getAvailabilityStatus_hasAppLabel_shouldReturnAvailable()
/packages/services/Car/tests/robotests/src/com/android/car/testutils/shadow/
DShadowUserManager.java43 public boolean isManagedProfile = false; field in ShadowUserManager
86 public boolean isManagedProfile(int userId) { in isManagedProfile() method in ShadowUserManager
87 return isManagedProfile; in isManagedProfile()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/specialaccess/deviceadmin/
DDeviceAdminAdd.java361 } else if (isManagedProfile(mDeviceAdmin) in onCreate()
411 if (isManagedProfile(mDeviceAdmin) in showPolicyTransparencyDialogIfRequired()
589 final boolean isManagedProfile = isManagedProfile(mDeviceAdmin); in updateInterface()
590 if (isProfileOwner && isManagedProfile) { in updateInterface()
704 private boolean isManagedProfile(DeviceAdminInfo adminInfo) { in isManagedProfile() method in DeviceAdminAdd
708 return info != null ? info.isManagedProfile() : false; in isManagedProfile()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/deviceadmin/
DDeviceAdminAdd.java410 } else if (isManagedProfile(mDeviceAdmin) in onCreate()
460 if (isManagedProfile(mDeviceAdmin) in showPolicyTransparencyDialogIfRequired()
637 final boolean isManagedProfile = isManagedProfile(mDeviceAdmin); in updateInterface()
638 if (isProfileOwner && isManagedProfile) { in updateInterface()
748 private boolean isManagedProfile(DeviceAdminInfo adminInfo) { in isManagedProfile() method in DeviceAdminAdd
752 return info != null ? info.isManagedProfile() : false; in isManagedProfile()
/packages/apps/Settings/src/com/android/settings/password/
DConfirmDeviceCredentialActivity.java177 final boolean isManagedProfile = UserManager.get(this).isManagedProfile(mUserId); in onCreate()
180 if ((mTitle == null) && isManagedProfile) { in onCreate()
206 } else if (isManagedProfile && isInternalActivity() in onCreate()
DChooseLockGeneric.java254 && UserManager.get(getActivity()).isManagedProfile(mUserId) in onCreate()
271 UserManager.get(getActivity()).isManagedProfile(mUserId) in onCreate()
859 if (!mUserManager.getUserInfo(parentUserId).isManagedProfile()) { in removeManagedProfileFingerprintsAndFinishIfNecessary()
865 if (userInfo.isManagedProfile() && !mLockPatternUtils in removeManagedProfileFingerprintsAndFinishIfNecessary()
914 if (!mUserManager.getUserInfo(parentUserId).isManagedProfile()) { in removeManagedProfileFacesAndFinishIfNecessary()
920 if (userInfo.isManagedProfile() && !mLockPatternUtils in removeManagedProfileFacesAndFinishIfNecessary()
944 boolean isProfile = UserManager.get(getActivity()).isManagedProfile(mUserId); in getResIdForFactoryResetProtectionWarningTitle()
956 boolean isProfile = UserManager.get(getActivity()).isManagedProfile(mUserId); in getResIdForFactoryResetProtectionWarningMessage()
DConfirmDeviceCredentialBaseFragment.java143 if (mUserManager.isManagedProfile(credentialOwnerUserId)) { in onViewCreated()
271 } else if (userToBeWiped.isManagedProfile()) { in getUserTypeForWipe()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/password/
DConfirmDeviceCredentialActivity.java177 final boolean isManagedProfile = UserManager.get(this).isManagedProfile(mUserId); in onCreate()
180 if ((mTitle == null) && isManagedProfile) { in onCreate()
206 } else if (isManagedProfile && isInternalActivity() in onCreate()
DChooseLockGeneric.java246 && UserManager.get(getActivity()).isManagedProfile(mUserId) in onCreate()
263 UserManager.get(getActivity()).isManagedProfile(mUserId) in onCreate()
848 if (!mUserManager.getUserInfo(parentUserId).isManagedProfile()) { in removeManagedProfileFingerprintsAndFinishIfNecessary()
854 if (userInfo.isManagedProfile() && !mLockPatternUtils in removeManagedProfileFingerprintsAndFinishIfNecessary()
903 if (!mUserManager.getUserInfo(parentUserId).isManagedProfile()) { in removeManagedProfileFacesAndFinishIfNecessary()
909 if (userInfo.isManagedProfile() && !mLockPatternUtils in removeManagedProfileFacesAndFinishIfNecessary()
933 boolean isProfile = UserManager.get(getActivity()).isManagedProfile(mUserId); in getResIdForFactoryResetProtectionWarningTitle()
945 boolean isProfile = UserManager.get(getActivity()).isManagedProfile(mUserId); in getResIdForFactoryResetProtectionWarningMessage()
DConfirmDeviceCredentialBaseFragment.java143 if (mUserManager.isManagedProfile(credentialOwnerUserId)) { in onViewCreated()
271 } else if (userToBeWiped.isManagedProfile()) { in getUserTypeForWipe()
/packages/services/Telecomm/src/com/android/server/telecom/
DUserUtil.java34 public static boolean isManagedProfile(Context context, UserHandle userHandle) { in isManagedProfile() method in UserUtil
36 return userInfo != null && userInfo.isManagedProfile(); in isManagedProfile()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DRedactionInterstitial.java89 UserManager.get(ctx).isManagedProfile(userId) in createStartIntent()
125 if (UserManager.get(getContext()).isManagedProfile(mUserId)) { in onViewCreated()
177 final boolean managedProfile = UserManager.get(getContext()).isManagedProfile(mUserId); in loadFromSettings()
/packages/apps/Settings/src/com/android/settings/notification/
DRedactionInterstitial.java88 UserManager.get(ctx).isManagedProfile(userId) in createStartIntent()
124 if (UserManager.get(getContext()).isManagedProfile(mUserId)) { in onViewCreated()
176 final boolean managedProfile = UserManager.get(getContext()).isManagedProfile(mUserId); in loadFromSettings()
/packages/apps/PermissionController/src/com/android/packageinstaller/role/utils/
DUserUtils.java48 return userManager.isManagedProfile(user.getIdentifier()); in isWorkProfile()
71 if (!userManager.isManagedProfile(profile.getIdentifier())) { in getWorkProfile()
/packages/providers/MediaProvider/src/com/android/providers/media/
DRingtonePickerActivity.java231 /* isManagedProfile = */ UserManager.get(this).isManagedProfile(mPickerUserId)); in onCreate()
709 public BadgedRingtoneAdapter(Context context, Cursor cursor, boolean isManagedProfile) { in BadgedRingtoneAdapter() argument
711 mIsManagedProfile = isManagedProfile; in BadgedRingtoneAdapter()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accounts/
DAccountPreferenceController.java154 return !mUm.isManagedProfile(); in isAvailable()
187 if (userInfo.isManagedProfile()) { in updateRawDataToIndex()
320 } else if (userInfo.isManagedProfile()) { in updateProfileUi()
/packages/apps/Settings/src/com/android/settings/accounts/
DAccountPreferenceController.java154 return !mUm.isManagedProfile(); in isAvailable()
187 if (userInfo.isManagedProfile()) { in updateRawDataToIndex()
320 } else if (userInfo.isManagedProfile()) { in updateProfileUi()
/packages/services/Telephony/src/com/android/phone/
DNotificationMgr.java379 && !user.isManagedProfile()) { in updateMwi()
397 && !user.isManagedProfile()) { in updateMwi()
552 if (user.isManagedProfile()) { in updateCfi()

1234