Searched refs:primaryUser (Results 1 – 4 of 4) sorted by relevance
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | VpnTest.java | 149 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/ |
D | UtilsTest.java | 48 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/ |
D | SecondaryUserController.java | 75 UserInfo primaryUser = userManager.getPrimaryUser(); in getSecondaryUserControllers() local 84 if (Utils.isProfileOf(primaryUser, info)) { in getSecondaryUserControllers()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | PhoneAccountRegistrar.java | 1668 UserInfo primaryUser = userManager.getPrimaryUser(); 1669 if (primaryUser != null) { 1670 UserHandle userHandle = primaryUser.getUserHandle();
|