Home
last modified time | relevance | path

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

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DWifiPermissionsUtilTest.java73 @Mock private UserManager mMockUserManager; field in WifiPermissionsUtilTest
125 mMockContext, mMockWifiSettingsStore, mMockUserManager, mWifiInjector); in testCheckConfigOverridePermissionApproved()
139 mMockContext, mMockWifiSettingsStore, mMockUserManager, mWifiInjector); in testCheckConfigOverridePermissionDenied()
153 mMockContext, mMockWifiSettingsStore, mMockUserManager, mWifiInjector); in testCheckConfigOverridePermissionWithException()
178 mMockContext, mMockWifiSettingsStore, mMockUserManager, mWifiInjector); in testCanReadPeersMacAddressCurrentUserAndAllPermissions()
201 mMockContext, mMockWifiSettingsStore, mMockUserManager, mWifiInjector); in testCanReadPeersMacAddressCurrentProfileAndAllPermissions()
217 mMockContext, mMockWifiSettingsStore, mMockUserManager, mWifiInjector); in testCannotAccessScanResult_AppNotAllowed()
245 mMockContext, mMockWifiSettingsStore, mMockUserManager, mWifiInjector); in testenforceCanAccessScanResults_UserOrProfileNotCurrent()
265 mMockContext, mMockWifiSettingsStore, mMockUserManager, mWifiInjector); in testCannotAccessScanResults_NoInteractAcrossUsersFullPermission()
290 mMockContext, mMockWifiSettingsStore, mMockUserManager, mWifiInjector); in testLegacyForegroundAppWithOtherPermissionsDenied()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DIccSmsInterfaceManagerTest.java53 private UserManager mMockUserManager; field in IccSmsInterfaceManagerTest
69 mMockPhone, mMockContext, mMockAppOps, mMockUserManager, in setUp()
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
DAccountManagerServiceTest.java110 @Mock private UserManager mMockUserManager; field in AccountManagerServiceTest
139 when(mMockUserManager.getUserInfo(eq(ui.id))).thenReturn(ui); in setUp()
151 when(mMockContext.getSystemService(Context.USER_SERVICE)).thenReturn(mMockUserManager); in setUp()
157 when(mMockUserManager.getUserRestrictions(any(UserHandle.class))).thenReturn(bundle); in setUp()
432 when(mMockUserManager.getUserRestrictions(any(UserHandle.class))).thenReturn(bundle); in testStartAddAccountSessionUserCannotModifyAccountNoDPM()
458 when(mMockUserManager.getUserRestrictions(any(UserHandle.class))).thenReturn(bundle); in testStartAddAccountSessionUserCannotModifyAccountWithDPM()
910 when(mMockUserManager.getUserRestrictions(any(UserHandle.class))).thenReturn(bundle); in testFinishSessionAsUserUserCannotModifyAccountNoDPM()
936 when(mMockUserManager.getUserRestrictions(any(UserHandle.class))).thenReturn(bundle); in testFinishSessionAsUserUserCannotModifyAccountWithDPM()
1372 when(mMockUserManager.getUserRestrictions(any(UserHandle.class))).thenReturn(bundle); in testRemoveAccountAsUserUserCannotModifyAccount()
1807 when(mMockUserManager.getUserRestrictions(any(UserHandle.class))).thenReturn(bundle); in testAddAccountAsUserUserCannotModifyAccountNoDPM()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DBaseShortcutManagerTest.java145 return mMockUserManager; in getSystemService()
612 protected UserManager mMockUserManager; field in BaseShortcutManagerTest
751 mMockUserManager = mock(UserManager.class); in setUp()
844 when(mMockUserManager.getUserInfo(anyInt())).thenAnswer(new AnswerWithSystemCheck<>( in setUp()