Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/net/watchlist/
DWatchlistLoggingHandlerTests.java82 final UserManager mockUserManager = mock(UserManager.class); in setUp() local
96 return mockUserManager; in setUp()
109 }).when(mockUserManager).getUsers(); in setUp()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DValidateNotificationPeopleTest.java212 final UserManager mockUserManager = mock(UserManager.class); in testSearchContacts_workContact_queriesWorkContactProvider() local
213 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() local
244 when(mockContext.getSystemService(UserManager.class)).thenReturn(mockUserManager); in testSearchContacts_personalContact_queriesPersonalContactProvider()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DLockSettingsStorageTests.java103 final UserManager mockUserManager = mock(UserManager.class); in setUp() local
105 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()
/frameworks/base/packages/SettingsLib/SpaPrivileged/tests/src/com/android/settingslib/spaprivileged/model/app/
DAppListRepositoryTest.kt78 private val mockUserManager = mock<UserManager> { in <lambda>() constant
89 on { getSystemService(UserManager::class.java) } doReturn mockUserManager in <lambda>()