Home
last modified time | relevance | path

Searched refs:FLAG_MANAGED_PROFILE (Results 1 – 25 of 35) sorted by relevance

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DAccountPreferenceControllerTest.java148 infos.add(new UserInfo(2, "user 2", UserInfo.FLAG_MANAGED_PROFILE)); in onResume_twoProfiles_shouldAddTwoAccountCategory()
162 infos.add(new UserInfo(2, "user 2", UserInfo.FLAG_MANAGED_PROFILE)); in onResume_noProfileChange_shouldNotAddOrRemoveAccountCategory()
185 infos.add(new UserInfo(2, "user 2", UserInfo.FLAG_MANAGED_PROFILE)); in onResume_oneNewProfile_shouldAddOneAccountCategory()
196 infos.add(new UserInfo(2, "user 2", UserInfo.FLAG_MANAGED_PROFILE)); in onResume_oneProfileRemoved_shouldRemoveOneAccountCategory()
212 infos.add(new UserInfo(1, "user 1", UserInfo.FLAG_MANAGED_PROFILE)); in onResume_oneProfile_shouldSetAccountTitleWithUserName()
296 infos.add(new UserInfo(1, "user 1", UserInfo.FLAG_MANAGED_PROFILE)); in updateDynamicRawDataToIndex_managedUser_shouldAddTwo()
309 infos.add(new UserInfo(1, "user 1", UserInfo.FLAG_MANAGED_PROFILE)); in updateDynamicRawDataToIndex_disallowRemove_shouldAddOne()
325 infos.add(new UserInfo(1, "user 1", UserInfo.FLAG_MANAGED_PROFILE)); in updateDynamicRawDataToIndex_disallowModify_shouldAddTwo()
499 infos.add(new UserInfo(2, "user 2", UserInfo.FLAG_MANAGED_PROFILE)); in onResume_oneNewAccountType_shouldAddOneAccountPreference()
DAccountDashboardFragmentTest.java89 infos.add(new UserInfo(PROFILE_ID, PROFILE_NAME, UserInfo.FLAG_MANAGED_PROFILE)); in searchIndexProvider_hasManagedProfile_shouldNotIndex()
DEmergencyInfoPreferenceControllerTest.java145 infos.add(new UserInfo(1, "user 1", UserInfo.FLAG_MANAGED_PROFILE)); in updateState_shouldSetSummary()
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/ota/
DCrossProfileAppsPregrantControllerTest.java19 import static android.content.pm.UserInfo.FLAG_MANAGED_PROFILE;
162 MY_USER_ID, OTHER_USER_ID, /* profileName= */"otherUser", FLAG_MANAGED_PROFILE); in setRunningOnParentProfile()
167 MY_USER_ID, OTHER_USER_ID, /* profileName= */"otherUser", FLAG_MANAGED_PROFILE); in setRunningOnManagedProfile()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/specialaccess/interactacrossprofiles/
DInteractAcrossProfilesSettingsTest.java107 "work-profile"/* profileName */, UserInfo.FLAG_MANAGED_PROFILE); in collectConfigurableApps_fromPersonal_returnsCombinedPackages()
132 "work-profile"/* profileName */, UserInfo.FLAG_MANAGED_PROFILE); in collectConfigurableApps_fromWork_returnsCombinedPackages()
173 "work-profile"/* profileName */, UserInfo.FLAG_MANAGED_PROFILE); in getNumberOfEnabledApps_returnsNumberOfEnabledApps()
DInteractAcrossProfilesDetailsTest.java83 "work-profile"/* profileName */, UserInfo.FLAG_MANAGED_PROFILE); in getPreferenceSummary_appOpAllowed_returnsAllowed()
106 "work-profile"/* profileName */, UserInfo.FLAG_MANAGED_PROFILE); in getPreferenceSummary_appOpNotAllowed_returnsNotAllowed()
DInteractAcrossProfilesControllerTest.java57 UserInfo.FLAG_MANAGED_PROFILE); in getAvailabilityStatus_multipleProfiles_returnsAvailable()
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DEnterprisePrivacyFeatureProviderImplTest.java133 mProfiles.add(new UserInfo(mManagedProfileUserId, "", "", UserInfo.FLAG_MANAGED_PROFILE)); in testIsInCompMode()
224 mProfiles.add(new UserInfo(mManagedProfileUserId, "", "", UserInfo.FLAG_MANAGED_PROFILE)); in testIsAlwaysOnVpnSetInManagedProfileProfile()
257 mProfiles.add(new UserInfo(mManagedProfileUserId, "", "", UserInfo.FLAG_MANAGED_PROFILE)); in testGetMaximumFailedPasswordsForWipeInManagedProfile()
319 new UserInfo(mManagedProfileUserId, "", "", UserInfo.FLAG_MANAGED_PROFILE); in testGetNumberOfOwnerInstalledCaCertsForManagedProfile()
353 mProfiles.add(new UserInfo(mManagedProfileUserId, "", "", UserInfo.FLAG_MANAGED_PROFILE)); in testGetNumberOfActiveDeviceAdminsForCurrentUserAndManagedProfile()
418 mProfiles.add(new UserInfo(mManagedProfileUserId, "", "", UserInfo.FLAG_MANAGED_PROFILE)); in workPolicyInfo_comp_shouldUseDeviceOwnerIntent()
/packages/services/Car/car-builtin-lib/src/android/car/builtin/os/
DUserManagerHelper.java57 public static final int FLAG_MANAGED_PROFILE = UserInfo.FLAG_MANAGED_PROFILE; field in UserManagerHelper
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DRedactionInterstitialTest.java114 "work-profile"/* profileName */, UserInfo.FLAG_MANAGED_PROFILE); in managedProfileNoRestrictionsTest()
129 "work-profile"/* profileName */, UserInfo.FLAG_MANAGED_PROFILE); in managedProfileUnredactedRestrictionTest()
DRedactNotificationPreferenceControllerTest.java112 new UserInfo(10, "", UserInfo.FLAG_MANAGED_PROFILE | UserInfo.FLAG_PROFILE))); in setUp()
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/finalization/
DSendDpcBroadcastServiceTest.java25 import static android.content.pm.UserInfo.FLAG_MANAGED_PROFILE;
114 /* profileFlags= */ FLAG_MANAGED_PROFILE); in setUp()
/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/
DUtilsTest.java53 UserInfo.FLAG_INITIALIZED | UserInfo.FLAG_MANAGED_PROFILE); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/location/
DLocationInjectedServicesPreferenceControllerTest.java133 UserInfo.FLAG_MANAGED_PROFILE | UserInfo.FLAG_PROFILE)); in workProfileDisallowShareLocationOn_getParentUserLocationServicesOnly()
164 UserInfo.FLAG_MANAGED_PROFILE | UserInfo.FLAG_PROFILE)); in workProfileDisallowShareLocationOff_getAllUserLocationServices()
DLocationEnablerTest.java207 .thenReturn(new UserInfo(5, "user 5", UserInfo.FLAG_MANAGED_PROFILE)); in mockManagedProfile()
DLocationForWorkPreferenceControllerTest.java183 .thenReturn(new UserInfo(5, "user 5", UserInfo.FLAG_MANAGED_PROFILE)); in mockManagedProfile()
/packages/apps/Settings/tests/robotests/src/com/android/settings/biometrics/fingerprint/
DFingerprintProfileStatusPreferenceControllerTest.java78 new UserInfo(1234, "", UserInfo.FLAG_MANAGED_PROFILE | UserInfo.FLAG_PROFILE))); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/users/
DAutoSyncWorkDataPreferenceControllerTest.java114 MANAGED_PROFILE_ID, "work profile", UserInfo.FLAG_MANAGED_PROFILE)); in multipleProfile_shouldInitWithWorkProfileUserHandle()
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/
DVisiblePatternProfilePreferenceControllerTest.java89 FAKE_PROFILE_USER_ID, "", UserInfo.FLAG_MANAGED_PROFILE | UserInfo.FLAG_PROFILE))); in setUp()
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/provisioning/
DProvisioningActivityRoboTest.java33 import static org.robolectric.shadows.ShadowUserManager.FLAG_MANAGED_PROFILE;
322 shadowOf(userManager).addProfile(0, 10, "profile name", FLAG_MANAGED_PROFILE); in activity_profileOwner_adminIntegrated_returnsIntermediateResult()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/app/
DVisibilityPreferenceControllerTest.java171 UserInfo userInfo = new UserInfo(2, "user 2", UserInfo.FLAG_MANAGED_PROFILE); in testUpdateState_disabledByAdmin_disableSecure()
193 UserInfo userInfo = new UserInfo(2, "user 2", UserInfo.FLAG_MANAGED_PROFILE); in testUpdateState_disabledByAdmin_disableUnredacted()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/defaultapps/
DDefaultAutofillPickerTest.java195 MANAGED_PROFILE_UID, "managed", UserInfo.FLAG_MANAGED_PROFILE); in setupUserManager()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/ota/
DOtaControllerTest.java236 UserInfo ui = new UserInfo(userId, null, UserInfo.FLAG_MANAGED_PROFILE); in addManagedProfile()
/packages/apps/Settings/tests/robotests/testutils/com/android/settings/testutils/shadow/
DShadowUserManager.java107 if (profileFlags == UserInfo.FLAG_MANAGED_PROFILE) { in addProfile()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/enterprise/
DEnterprisePolicyGuardTest.java281 new UserInfo(WORK_USER_ID, "user10", UserInfo.FLAG_MANAGED_PROFILE);

12