Searched refs:mockUserManager (Results 1 – 4 of 4) sorted by relevance
82 final UserManager mockUserManager = mock(UserManager.class); in setUp() local96 return mockUserManager; in setUp()109 }).when(mockUserManager).getUsers(); in setUp()
212 final UserManager mockUserManager = mock(UserManager.class); in testSearchContacts_workContact_queriesWorkContactProvider() local213 when(mockContext.getSystemService(UserManager.class)).thenReturn(mockUserManager); in testSearchContacts_workContact_queriesWorkContactProvider()214 when(mockUserManager.getProfileIds(personalUserId, /* enabledOnly= */ true)) in testSearchContacts_workContact_queriesWorkContactProvider()216 when(mockUserManager.isManagedProfile(workUserId)).thenReturn(true); in testSearchContacts_workContact_queriesWorkContactProvider()243 final UserManager mockUserManager = mock(UserManager.class); in testSearchContacts_personalContact_queriesPersonalContactProvider() local244 when(mockContext.getSystemService(UserManager.class)).thenReturn(mockUserManager); in testSearchContacts_personalContact_queriesPersonalContactProvider()
103 final UserManager mockUserManager = mock(UserManager.class); in setUp() local105 when(mockUserManager.getProfileParent(eq(2))).thenReturn(new UserInfo(1, "name", 0)); in setUp()107 when(mockUserManager.getProfileParent(eq(3))).thenReturn(new UserInfo(0, "name", 0)); in setUp()111 mockUserManager, mock(NotificationManager.class), mock(DevicePolicyManager.class), in setUp()
78 private val mockUserManager = mock<UserManager> { in <lambda>() constant89 on { getSystemService(UserManager::class.java) } doReturn mockUserManager in <lambda>()