Home
last modified time | relevance | path

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

12345678

/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/src/com/android/settings/nfc/
DDefaultPaymentSettings.java141 if (candidateInfo.isManagedProfile()) { in bindPreferenceExtra()
153 boolean isManagedProfile = um.isManagedProfile(appInfo.userHandle.getIdentifier()); in getCandidates()
162 isManagedProfile)); in getCandidates()
177 boolean isManagedProfile) { in NfcPaymentCandidateInfo() argument
183 mIsManagedProfile = isManagedProfile; in NfcPaymentCandidateInfo()
201 public boolean isManagedProfile() { in isManagedProfile() method in DefaultPaymentSettings.NfcPaymentCandidateInfo
214 boolean isManagedProfile = um.isManagedProfile(paymentInfo.mUserId); in getConfirmationMessage()
215 if (!isManagedProfile) { in getConfirmationMessage()
/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.java88 when(mUserManager.isManagedProfile()).thenReturn(true); in displayPref_managedProfile_shouldNotDisplay()
97 when(mUserManager.isManagedProfile()).thenReturn(false); in displayPref_linkedUser_shouldDisplay()
109 when(mUserManager.isManagedProfile()).thenReturn(false); in displayPref_oneProfile_shouldDisplay()
123 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()
/packages/services/Telecomm/src/com/android/server/telecom/
DUserUtil.java43 public static boolean isManagedProfile(Context context, UserHandle userHandle, in isManagedProfile() method in UserUtil
49 ? userManager != null && userManager.isManagedProfile() in isManagedProfile()
50 : userInfo != null && userInfo.isManagedProfile(); in isManagedProfile()
92 if (!UserUtil.isManagedProfile(context, userHandle, featureFlags)) { in hasOutgoingCallsUserRestriction()
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/util/
DUserUtils.java48 return isManagedProfile(user, context) || isCloneProfile(user, context); in isProfile()
59 public static boolean isManagedProfile(@NonNull UserHandle user, @NonNull Context context) { in isManagedProfile() method in UserUtils
62 return userUserManager.isManagedProfile(user.getIdentifier()); in isManagedProfile()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/util/
DServiceImplHelper.java90 boolean isManagedProfile = mUserManager.isManagedProfile(userHandle.getIdentifier()); in setUserIsLocked()
91 UserHandle parentUser = isManagedProfile ? mUserManager.getProfileParent(userHandle) : null; in setUserIsLocked()
94 if (isManagedProfile) { in setUserIsLocked()
100 if (isManagedProfile) { in setUserIsLocked()
501 return mUserManager.isManagedProfile(targetUser.getIdentifier()); in isUserOrganizationManaged()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/v31/
DAdminRestrictedPermissionsUtils.java69 if (um.isManagedProfile(userId) && Manifest.permission.READ_SMS.equals(permission)) { in mayAdminGrantPermission()
83 boolean canAdminGrantSensorsPermissions, boolean isManagedProfile, in mayAdminGrantPermission() argument
88 if (isManagedProfile && Manifest.permission.READ_SMS.equals(permission)) { in mayAdminGrantPermission()
/packages/services/Mms/src/com/android/mms/service/metrics/
DMmsStats.java114 .setIsManagedProfile(isManagedProfile()) in onIncomingMms()
135 .setIsManagedProfile(isManagedProfile()) in onOutgoingMms()
142 private boolean isManagedProfile() { in isManagedProfile() method in MmsStats
148 return userManager.isManagedProfile(userHandle.getIdentifier()); in isManagedProfile()
/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/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/data/
DUserIdManagerTest.java56 when(mockUserManager.isManagedProfile(managedUser1.getIdentifier())).thenReturn(true); in setUp()
57 when(mockUserManager.isManagedProfile(personalUser.getIdentifier())).thenReturn(false); in setUp()
59 when(mockUserManager.isManagedProfile(otherUser1.getIdentifier())).thenReturn(false); in setUp()
60 when(mockUserManager.isManagedProfile(otherUser2.getIdentifier())).thenReturn(false); in setUp()
DUserManagerStateTest.java60 when(mMockUserManager.isManagedProfile( in setUp()
62 when(mMockUserManager.isManagedProfile( in setUp()
64 when(mMockUserManager.isManagedProfile( in setUp()
66 when(mMockUserManager.isManagedProfile( in setUp()
68 when(mMockUserManager.isManagedProfile( in setUp()
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/
DUserInfoCompat.java44 public boolean isManagedProfile() { in isManagedProfile() method in UserInfoCompat
45 return mUserInfo.isManagedProfile(); in isManagedProfile()
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/behavior/v31/
DCompanionDeviceWatchRoleBehavior.java37 if (!UserUtils.isManagedProfile(user, context)) { in grantAsUser()
45 if (!UserUtils.isManagedProfile(user, context)) { in revokeAsUser()
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/behavior/v33/
DCompanionDeviceAppStreamingRoleBehavior.java37 if (!UserUtils.isManagedProfile(user, context)) { in grantAsUser()
45 if (!UserUtils.isManagedProfile(user, context)) { in revokeAsUser()
DCompanionDeviceComputerRoleBehavior.java37 if (!UserUtils.isManagedProfile(user, context)) { in grantAsUser()
45 if (!UserUtils.isManagedProfile(user, context)) { in revokeAsUser()
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/behavior/v34/
DCompanionDeviceGlassesRoleBehavior.java37 if (!UserUtils.isManagedProfile(user, context)) { in grantAsUser()
45 if (!UserUtils.isManagedProfile(user, context)) { in revokeAsUser()
/packages/services/Car/service/src/com/android/car/user/
DUserHandleHelper.java95 public boolean isManagedProfile(UserHandle user) { in isManagedProfile() method in UserHandleHelper
96 return mUserManager.isManagedProfile(user.getIdentifier()); in isManagedProfile()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/
DIntentForwarding.kt52 val originIsManaged = originUserInfo?.isManagedProfile ?: false in forwardMessageFor()
53 val targetIsManaged = userManager.isManagedProfile in forwardMessageFor()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/data/model/
DUserId.java104 public boolean isManagedProfile(UserManager userManager) { in isManagedProfile() method in UserId
105 return userManager.isManagedProfile(mUserHandle.getIdentifier()); in isManagedProfile()
/packages/apps/Settings/src/com/android/settings/password/
DConfirmDeviceCredentialUtils.java77 || userInfo.isManagedProfile()) { in reportSuccessfulAttempt()
88 if (userManager.isManagedProfile(userId)) { in reportSuccessfulAttempt()

12345678