/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/src/com/android/settings/nfc/ |
D | DefaultPaymentSettings.java | 141 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/ |
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 | 88 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/ |
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()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | UserUtil.java | 43 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/ |
D | UserUtils.java | 48 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/ |
D | ServiceImplHelper.java | 90 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/ |
D | AdminRestrictedPermissionsUtils.java | 69 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/ |
D | MmsStats.java | 114 .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/ |
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/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/data/ |
D | UserIdManagerTest.java | 56 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()
|
D | UserManagerStateTest.java | 60 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/ |
D | UserInfoCompat.java | 44 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/ |
D | CompanionDeviceWatchRoleBehavior.java | 37 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/ |
D | CompanionDeviceAppStreamingRoleBehavior.java | 37 if (!UserUtils.isManagedProfile(user, context)) { in grantAsUser() 45 if (!UserUtils.isManagedProfile(user, context)) { in revokeAsUser()
|
D | CompanionDeviceComputerRoleBehavior.java | 37 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/ |
D | CompanionDeviceGlassesRoleBehavior.java | 37 if (!UserUtils.isManagedProfile(user, context)) { in grantAsUser() 45 if (!UserUtils.isManagedProfile(user, context)) { in revokeAsUser()
|
/packages/services/Car/service/src/com/android/car/user/ |
D | UserHandleHelper.java | 95 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/ |
D | IntentForwarding.kt | 52 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/ |
D | UserId.java | 104 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/ |
D | ConfirmDeviceCredentialUtils.java | 77 || userInfo.isManagedProfile()) { in reportSuccessfulAttempt() 88 if (userManager.isManagedProfile(userId)) { in reportSuccessfulAttempt()
|