Home
last modified time | relevance | path

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

/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
DDisallowAddUserTaskTest.java48 private UserInfo primaryUser = new UserInfo(0, "Primary", field in DisallowAddUserTaskTest
73 when(mockUserManager.getUsers()).thenReturn(Collections.singletonList(primaryUser)); in testMaybeDisallowAddUsers_normalSystem()
78 task.run(primaryUser.id); in testMaybeDisallowAddUsers_normalSystem()
82 primaryUser.getUserHandle()); in testMaybeDisallowAddUsers_normalSystem()
90 when(mockUserManager.getUsers()).thenReturn(Collections.singletonList(primaryUser)); in testMaybeDisallowAddUsers_normalSystem_restrictionAlreadySetupForOneUser()
96 primaryUser.getUserHandle())) in testMaybeDisallowAddUsers_normalSystem_restrictionAlreadySetupForOneUser()
100 task.run(primaryUser.id); in testMaybeDisallowAddUsers_normalSystem_restrictionAlreadySetupForOneUser()
/packages/apps/Settings/tests/unit/src/com/android/settings/
DUtilsTest.java50 UserInfo primaryUser = new UserInfo(TEST_PRIMARY_USER_ID, null, in setUp() local
52 when(mUserManager.getUserInfo(TEST_PRIMARY_USER_ID)).thenReturn(primaryUser); in setUp()
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/
DSecondaryUserController.java64 UserInfo primaryUser = userManager.getPrimaryUser(); in getSecondaryUserControllers() local
73 if (info == null || Utils.isProfileOf(primaryUser, info)) { in getSecondaryUserControllers()
/packages/services/Telecomm/src/com/android/server/telecom/
DPhoneAccountRegistrar.java1465 UserInfo primaryUser = userManager.getPrimaryUser();
1466 if (primaryUser != null) {
1467 UserHandle userHandle = primaryUser.getUserHandle();