Searched refs:primaryUser (Results 1 – 4 of 4) sorted by relevance
48 private UserInfo primaryUser = new UserInfo(0, "Primary", field in DisallowAddUserTaskTest73 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()
50 UserInfo primaryUser = new UserInfo(TEST_PRIMARY_USER_ID, null, in setUp() local52 when(mUserManager.getUserInfo(TEST_PRIMARY_USER_ID)).thenReturn(primaryUser); in setUp()
64 UserInfo primaryUser = userManager.getPrimaryUser(); in getSecondaryUserControllers() local73 if (info == null || Utils.isProfileOf(primaryUser, info)) { in getSecondaryUserControllers()
1465 UserInfo primaryUser = userManager.getPrimaryUser();1466 if (primaryUser != null) {1467 UserHandle userHandle = primaryUser.getUserHandle();