Home
last modified time | relevance | path

Searched refs:primaryUser (Results 1 – 4 of 4) sorted by relevance

/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DVpnTest.java149 static final UserInfo primaryUser = new UserInfo(27, "Primary", FLAG_ADMIN | FLAG_PRIMARY); field in VpnTest
155 restrictedProfileA.restrictedProfileParentId = primaryUser.id;
157 managedProfileA.profileGroupId = primaryUser.id;
187 private static final Range<Integer> PRI_USER_RANGE = uidRangeForUser(primaryUser.id);
284 setMockedUsers(primaryUser, secondaryUser, restrictedProfileA, restrictedProfileB); in testRestrictedProfilesAreAddedToVpn()
286 final Vpn vpn = createVpn(primaryUser.id); in testRestrictedProfilesAreAddedToVpn()
291 vpn.createUserAndRestrictedProfilesRanges(primaryUser.id, null, null); in testRestrictedProfilesAreAddedToVpn()
298 setMockedUsers(primaryUser, managedProfileA); in testManagedProfilesAreNotAddedToVpn()
300 final Vpn vpn = createVpn(primaryUser.id); in testManagedProfilesAreNotAddedToVpn()
301 final Set<Range<Integer>> ranges = vpn.createUserAndRestrictedProfilesRanges(primaryUser.id, in testManagedProfilesAreNotAddedToVpn()
[all …]
/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/
DUtilsTest.java48 UserInfo primaryUser = new UserInfo(TEST_PRIMARY_USER_ID, null, in setUp() local
50 when(mUserManager.getUserInfo(TEST_PRIMARY_USER_ID)).thenReturn(primaryUser); in setUp()
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/
DSecondaryUserController.java75 UserInfo primaryUser = userManager.getPrimaryUser(); in getSecondaryUserControllers() local
84 if (Utils.isProfileOf(primaryUser, info)) { in getSecondaryUserControllers()
/packages/services/Telecomm/src/com/android/server/telecom/
DPhoneAccountRegistrar.java1668 UserInfo primaryUser = userManager.getPrimaryUser();
1669 if (primaryUser != null) {
1670 UserHandle userHandle = primaryUser.getUserHandle();