Home
last modified time | relevance | path

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

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DWifiPermissionsUtilTest.java78 @Mock private UserManager mMockUserManager; field in WifiPermissionsUtilTest
141 mMockContext, mMockUserManager, mWifiInjector); in testCheckConfigOverridePermissionApproved()
155 mMockContext, mMockUserManager, mWifiInjector); in testCheckConfigOverridePermissionDenied()
169 mMockContext, mMockUserManager, mWifiInjector); in testCheckConfigOverridePermissionWithException()
194 mMockContext, mMockUserManager, mWifiInjector); in testCanReadPeersMacAddressCurrentUserAndAllPermissions()
217 mMockContext, mMockUserManager, mWifiInjector); in testCanReadPeersMacAddressCurrentProfileAndAllPermissions()
233 mMockContext, mMockUserManager, mWifiInjector); in testCannotAccessScanResult_AppNotAllowed()
261 mMockContext, mMockUserManager, mWifiInjector); in testenforceCanAccessScanResults_UserOrProfileNotCurrent()
281 mMockContext, mMockUserManager, mWifiInjector); in testCannotAccessScanResults_NoInteractAcrossUsersFullPermission()
306 mMockContext, mMockUserManager, mWifiInjector); in testLegacyForegroundAppWithOtherPermissionsDenied()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
DAccountManagerServiceTest.java108 @Mock private UserManager mMockUserManager; field in AccountManagerServiceTest
138 when(mMockUserManager.getUserInfo(eq(ui.id))).thenReturn(ui); in setUp()
150 when(mMockContext.getSystemService(Context.USER_SERVICE)).thenReturn(mMockUserManager); in setUp()
156 when(mMockUserManager.getUserRestrictions(any(UserHandle.class))).thenReturn(bundle); in setUp()
435 when(mMockUserManager.getUserRestrictions(any(UserHandle.class))).thenReturn(bundle); in testStartAddAccountSessionUserCannotModifyAccountNoDPM()
461 when(mMockUserManager.getUserRestrictions(any(UserHandle.class))).thenReturn(bundle); in testStartAddAccountSessionUserCannotModifyAccountWithDPM()
917 when(mMockUserManager.getUserRestrictions(any(UserHandle.class))).thenReturn(bundle); in testFinishSessionAsUserUserCannotModifyAccountNoDPM()
943 when(mMockUserManager.getUserRestrictions(any(UserHandle.class))).thenReturn(bundle); in testFinishSessionAsUserUserCannotModifyAccountWithDPM()
1383 when(mMockUserManager.getUserRestrictions(any(UserHandle.class))).thenReturn(bundle); in testRemoveAccountAsUserUserCannotModifyAccount()
1820 when(mMockUserManager.getUserRestrictions(any(UserHandle.class))).thenReturn(bundle); in testAddAccountAsUserUserCannotModifyAccountNoDPM()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DBaseShortcutManagerTest.java146 return mMockUserManager; in getSystemService()
615 protected UserManager mMockUserManager; field in BaseShortcutManagerTest
756 mMockUserManager = mock(UserManager.class); in setUp()
853 when(mMockUserManager.getUserInfo(anyInt())).thenAnswer(new AnswerWithSystemCheck<>( in setUp()