Home
last modified time | relevance | path

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

12345

/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DAccountPreferenceControllerTest.java113 when(mUserManager.isManagedProfile()).thenReturn(true); in onResume_managedProfile_shouldNotAddAccountCategory()
122 when(mUserManager.isManagedProfile()).thenReturn(false); in onResume_linkedUser_shouldAddOneAccountCategory()
135 when(mUserManager.isManagedProfile()).thenReturn(false); in onResume_oneProfile_shouldAddOneAccountCategory()
149 when(mUserManager.isManagedProfile()).thenReturn(false); in onResume_twoProfiles_shouldAddTwoAccountCategory()
163 when(mUserManager.isManagedProfile()).thenReturn(false); in onResume_noProfileChange_shouldNotAddOrRemoveAccountCategory()
179 when(mUserManager.isManagedProfile()).thenReturn(false); in onResume_oneNewProfile_shouldAddOneAccountCategory()
197 when(mUserManager.isManagedProfile()).thenReturn(false); in onResume_oneProfileRemoved_shouldRemoveOneAccountCategory()
213 when(mUserManager.isManagedProfile()).thenReturn(false); in onResume_oneProfile_shouldSetAccountTitleWithUserName()
230 when(mUserManager.isManagedProfile()).thenReturn(false); in onResume_noPreferenceScreen_shouldNotCrash()
248 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()
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()
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()
DAppInstallerInfoPreferenceControllerTest.java91 when(mUserManager.isManagedProfile()).thenReturn(true); in getAvailabilityStatus_managedProfile_shouldReturnDisabled()
99 when(mUserManager.isManagedProfile()).thenReturn(false); in getAvailabilityStatus_noAppLabel_shouldReturnDisabled()
109 when(mUserManager.isManagedProfile()).thenReturn(false); in getAvailabilityStatus_hasAppLabel_shouldReturnAvailable()
164 when(mUserManager.isManagedProfile()).thenReturn(false); in getAvailabilityStatus_isMainlineModule_shouldReturnDisabled()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/
DAdminRestrictedPermissionsUtils.java73 if (um.isManagedProfile(userId) in mayAdminGrantPermission()
88 boolean canAdminGrantSensorsPermissions, boolean isManagedProfile) { in mayAdminGrantPermission() argument
92 if (isManagedProfile && MANAGED_PROFILE_OWNER_RESTRICTED_PERMISSIONS.contains(permission)) { in mayAdminGrantPermission()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DUserIdManagerTest.java58 when(mockUserManager.isManagedProfile(managedUser1.getIdentifier())).thenReturn(true); in setUp()
59 when(mockUserManager.isManagedProfile(systemUser.getIdentifier())).thenReturn(false); in setUp()
60 when(mockUserManager.isManagedProfile(nonManagedUser1.getIdentifier())).thenReturn(false); in setUp()
61 when(mockUserManager.isManagedProfile(nonManagedUser2.getIdentifier())).thenReturn(false); in setUp()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/deviceadmin/
DDeviceAdminAdd.java420 } else if (isManagedProfile(mDeviceAdmin) in onCreate()
470 if (isManagedProfile(mDeviceAdmin) in showPolicyTransparencyDialogIfRequired()
655 final boolean isManagedProfile = isManagedProfile(mDeviceAdmin); in updateInterface()
656 if (isProfileOwner && isManagedProfile) { in updateInterface()
793 private boolean isManagedProfile(DeviceAdminInfo adminInfo) { in isManagedProfile() method in DeviceAdminAdd
797 return info != null ? info.isManagedProfile() : false; in isManagedProfile()
/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/apps/Settings/src/com/android/settings/notification/
DRedactionInterstitial.java90 UserManager.get(ctx).isManagedProfile(userId) in createStartIntent()
126 if (UserManager.get(getContext()).isManagedProfile(mUserId)) { in onViewCreated()
182 final boolean managedProfile = UserManager.get(getContext()).isManagedProfile(mUserId); in loadFromSettings()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/utils/
DUserUtils.java48 return userManager.isManagedProfile(user.getIdentifier()); in isWorkProfile()
71 if (!userManager.isManagedProfile(profile.getIdentifier())) { in getWorkProfile()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/deviceadmin/
DDeviceAdminAdd.java471 final boolean isManagedProfile = isManagedProfile(mDeviceAdmin); in updateInterface()
472 if (isProfileOwner && isManagedProfile) { in updateInterface()
600 private boolean isManagedProfile(DeviceAdminInfo adminInfo) { in isManagedProfile() method in DeviceAdminAdd
604 return info != null ? info.isManagedProfile() : false; in isManagedProfile()
/packages/apps/Settings/src/com/android/settings/accounts/
DAccountPreferenceController.java162 return !mUm.isManagedProfile(); in isAvailable()
186 if (userInfo.isEnabled() && userInfo.isManagedProfile()) { in updateDynamicRawDataToIndex()
284 if (profiles.get(i).isManagedProfile() in updateUi()
287 } else if (!profiles.get(i).isManagedProfile() in updateUi()
332 } else if (userInfo.isManagedProfile()) { in updateProfileUi()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/
DSecondaryUserControllerTest.java130 when(secondaryUser.isManagedProfile()).thenReturn(false); in getSecondaryUserControllers_notWorkProfile_addSecondaryUserController()
149 when(secondaryUser.isManagedProfile()).thenReturn(true); in getSecondaryUserControllers_workProfile_addNoSecondaryUserController()
168 when(secondaryUser.isManagedProfile()).thenReturn(false); in getSecondaryUserControllers_notWorkProfileWorkProfileOnly_addNoSecondController()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DUserIdManager.java181 && userManager.isManagedProfile(userHandle.getIdentifier())) { in getUserIdsInternal()
191 } else if (mCurrentUser.isManagedProfile(userManager)) { in getUserIdsInternal()
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
DUserId.java144 public boolean isManagedProfile(UserManager userManager) { in isManagedProfile() method in UserId
145 return userManager.isManagedProfile(mUserHandle.getIdentifier()); in isManagedProfile()
/packages/apps/Settings/src/com/android/settings/dashboard/profileselector/
DProfileSelectFragment.java187 final boolean isWorkProfile = UserManager.get(activity).isManagedProfile(userId); in getTabId()
194 if (UserManager.get(activity).isManagedProfile(intentUser)) { in getTabId()
/packages/apps/Settings/src/com/android/settings/password/
DConfirmDeviceCredentialBaseFragment.java143 if (mUserManager.isManagedProfile(mUserId) in setupForgotButtonIfManagedProfile()
261 } else if (userToBeWiped.isManagedProfile()) { in getUserTypeForWipe()
/packages/apps/Settings/src/com/android/settings/users/
DAutoSyncPersonalDataPreferenceController.java34 return !mUserManager.isManagedProfile() && !mUserManager.isLinkedUser() in isAvailable()
DAutoSyncWorkDataPreferenceController.java42 … return mUserHandle != null && !mUserManager.isManagedProfile() && !mUserManager.isLinkedUser() in isAvailable()
/packages/apps/Settings/src/com/android/settings/biometrics/face/
DFaceSettings.java160 if (mUserManager.getUserInfo(mUserId).isManagedProfile()) { in onCreate()
193 if (mUserManager.isManagedProfile(mUserId)) { in onCreate()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DDrawOverlayDetailPreferenceController.java35 if (UserManager.get(mContext).isManagedProfile()) { in getAvailabilityStatus()

12345