/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/ |
D | AccountPreferenceControllerTest.java | 109 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/ |
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 | 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 | 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 | AppInstallerInfoPreferenceControllerTest.java | 86 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/ |
D | ShadowUserManager.java | 43 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/ |
D | DeviceAdminAdd.java | 361 } 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/password/ |
D | ConfirmDeviceCredentialActivity.java | 177 final boolean isManagedProfile = UserManager.get(this).isManagedProfile(mUserId); in onCreate() 180 if ((mTitle == null) && isManagedProfile) { in onCreate() 206 } else if (isManagedProfile && isInternalActivity() in onCreate()
|
D | ChooseLockGeneric.java | 254 && 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()
|
D | ConfirmDeviceCredentialBaseFragment.java | 143 if (mUserManager.isManagedProfile(credentialOwnerUserId)) { in onViewCreated() 271 } else if (userToBeWiped.isManagedProfile()) { in getUserTypeForWipe()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/password/ |
D | ConfirmDeviceCredentialActivity.java | 177 final boolean isManagedProfile = UserManager.get(this).isManagedProfile(mUserId); in onCreate() 180 if ((mTitle == null) && isManagedProfile) { in onCreate() 206 } else if (isManagedProfile && isInternalActivity() in onCreate()
|
D | ChooseLockGeneric.java | 246 && 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()
|
D | ConfirmDeviceCredentialBaseFragment.java | 143 if (mUserManager.isManagedProfile(credentialOwnerUserId)) { in onViewCreated() 271 } else if (userToBeWiped.isManagedProfile()) { in getUserTypeForWipe()
|
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/deviceadmin/ |
D | DeviceAdminAdd.java | 410 } 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/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/ |
D | RedactionInterstitial.java | 89 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/ |
D | RedactionInterstitial.java | 88 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/ |
D | UserUtils.java | 48 return userManager.isManagedProfile(user.getIdentifier()); in isWorkProfile() 71 if (!userManager.isManagedProfile(profile.getIdentifier())) { in getWorkProfile()
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | RingtonePickerActivity.java | 228 /* isManagedProfile = */ UserManager.get(this).isManagedProfile(mPickerUserId)); in onCreate() 719 public BadgedRingtoneAdapter(Context context, Cursor cursor, boolean isManagedProfile) { in BadgedRingtoneAdapter() argument 721 mIsManagedProfile = isManagedProfile; in BadgedRingtoneAdapter()
|
/packages/apps/Settings/src/com/android/settings/biometrics/face/ |
D | FaceSettings.java | 126 if (mUserManager.getUserInfo(mUserId).isManagedProfile()) { in onCreate() 154 if (mUserManager.isManagedProfile(mUserId)) { in onCreate()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accounts/ |
D | AccountPreferenceController.java | 154 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/ |
D | AccountPreferenceController.java | 154 return !mUm.isManagedProfile(); in isAvailable() 187 if (userInfo.isManagedProfile()) { in updateRawDataToIndex() 320 } else if (userInfo.isManagedProfile()) { in updateProfileUi()
|