Searched refs:mockUserManager (Results 1 – 4 of 4) sorted by relevance
/packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/task/ |
D | DisallowAddUserTaskTest.java | 46 @Mock private UserManager mockUserManager; field in DisallowAddUserTaskTest 65 when(mockUserManager.hasUserRestriction(anyString(), any(UserHandle.class))) in setUp() 71 when(mockUserManager.getUsers()).thenReturn(Collections.singletonList(primaryUser)); in testMaybeDisallowAddUsers_normalSystem() 73 new DisallowAddUserTask(mockUserManager, primaryUser.id, false /* isSplitSystemUser */) in testMaybeDisallowAddUsers_normalSystem() 76 verify(mockUserManager).setUserRestriction(UserManager.DISALLOW_ADD_USER, true, in testMaybeDisallowAddUsers_normalSystem() 82 when(mockUserManager.getUsers()).thenReturn(Collections.singletonList(primaryUser)); in testMaybeDisallowAddUsers_normalSystem_restrictionAlreadySetupForOneUser() 84 when(mockUserManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER, in testMaybeDisallowAddUsers_normalSystem_restrictionAlreadySetupForOneUser() 88 new DisallowAddUserTask(mockUserManager, meatUser.id, false /* isSplitSystemUser */) in testMaybeDisallowAddUsers_normalSystem_restrictionAlreadySetupForOneUser() 91 verify(mockUserManager, never()).setUserRestriction(eq(UserManager.DISALLOW_ADD_USER), in testMaybeDisallowAddUsers_normalSystem_restrictionAlreadySetupForOneUser() 97 when(mockUserManager.getUsers()).thenReturn(Arrays.asList(new UserInfo[]{ in testMaybeDisallowAddUsers_splitUserSystem_meatUserDeviceOwner() [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsActor.java | 150 public MockUserManager mockUserManager; field in ContactsActor 288 return mockUserManager; in ContactsActor() 330 return mockUserManager; in ContactsActor() 349 return mockUserManager.getUserHandle(); in ContactsActor() 359 mockUserManager = new MockUserManager(mProviderContext); in ContactsActor()
|
D | ContactsProvider2Test.java | 2054 mActor.mockUserManager.setUsers(MockUserManager.PRIMARY_USER, MockUserManager.CORP_USER); in setUpCorpProvider() 2071 mActor.mockUserManager.setUsers(MockUserManager.PRIMARY_USER, MockUserManager.CORP_USER); in setUpNullCorpProvider() 2800 final MockUserManager um = mActor.mockUserManager; in testQueryCorpContactsProvider()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/util/ |
D | UserUtilsTest.java | 47 final MockUserManager um = mActor.mockUserManager; in testGetCorpUser()
|