/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/ |
D | AccountPreferenceControllerTest.java | 113 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/ |
D | AutoSyncWorkDataPreferenceControllerTest.java | 66 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()
|
D | AutoSyncPersonalDataPreferenceControllerTest.java | 72 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()
|
D | AutoSyncDataPreferenceControllerTest.java | 77 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/ |
D | ExternalSourceDetailPreferenceControllerTest.java | 68 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()
|
D | WriteSystemSettingsPreferenceControllerTest.java | 71 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()
|
D | DrawOverlayDetailPreferenceControllerTest.java | 71 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()
|
D | AppInstallerInfoPreferenceControllerTest.java | 91 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/ |
D | AdminRestrictedPermissionsUtils.java | 73 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/ |
D | UserIdManagerTest.java | 58 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/ |
D | DeviceAdminAdd.java | 420 } 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/ |
D | UserUtil.java | 34 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/ |
D | RedactionInterstitial.java | 90 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/ |
D | UserUtils.java | 48 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/ |
D | DeviceAdminAdd.java | 471 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/ |
D | AccountPreferenceController.java | 162 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/ |
D | SecondaryUserControllerTest.java | 130 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/ |
D | UserIdManager.java | 181 && userManager.isManagedProfile(userHandle.getIdentifier())) { in getUserIdsInternal() 191 } else if (mCurrentUser.isManagedProfile(userManager)) { in getUserIdsInternal()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/base/ |
D | UserId.java | 144 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/ |
D | ProfileSelectFragment.java | 187 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/ |
D | ConfirmDeviceCredentialBaseFragment.java | 143 if (mUserManager.isManagedProfile(mUserId) in setupForgotButtonIfManagedProfile() 261 } else if (userToBeWiped.isManagedProfile()) { in getUserTypeForWipe()
|
/packages/apps/Settings/src/com/android/settings/users/ |
D | AutoSyncPersonalDataPreferenceController.java | 34 return !mUserManager.isManagedProfile() && !mUserManager.isLinkedUser() in isAvailable()
|
D | AutoSyncWorkDataPreferenceController.java | 42 … return mUserHandle != null && !mUserManager.isManagedProfile() && !mUserManager.isLinkedUser() in isAvailable()
|
/packages/apps/Settings/src/com/android/settings/biometrics/face/ |
D | FaceSettings.java | 160 if (mUserManager.getUserInfo(mUserId).isManagedProfile()) { in onCreate() 193 if (mUserManager.isManagedProfile(mUserId)) { in onCreate()
|
/packages/apps/Settings/src/com/android/settings/applications/appinfo/ |
D | DrawOverlayDetailPreferenceController.java | 35 if (UserManager.get(mContext).isManagedProfile()) { in getAvailabilityStatus()
|