Home
last modified time | relevance | path

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

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DWifiPermissionsUtilTest.java82 @Mock private UserManager mMockUserManager; field in WifiPermissionsUtilTest
146 mMockContext, mMockUserManager, mWifiInjector); in testCheckConfigOverridePermissionApproved()
160 mMockContext, mMockUserManager, mWifiInjector); in testCheckConfigOverridePermissionDenied()
185 mMockContext, mMockUserManager, mWifiInjector); in testCanReadPeersMacAddressCurrentUserAndAllPermissions()
207 mMockContext, mMockUserManager, mWifiInjector); in testCanReadPeersMacAddressCurrentProfileAndAllPermissions()
223 mMockContext, mMockUserManager, mWifiInjector); in testCannotAccessScanResult_AppNotAllowed()
252 mMockContext, mMockUserManager, mWifiInjector); in testenforceCanAccessScanResults_UserOrProfileNotCurrent()
272 mMockContext, mMockUserManager, mWifiInjector); in testCannotAccessScanResults_NoInteractAcrossUsersFullPermission()
297 mMockContext, mMockUserManager, mWifiInjector); in testLegacyForegroundAppWithOtherPermissionsDenied()
325 mMockContext, mMockUserManager, mWifiInjector); in testLegacyAppHasLocationAndAllPermissions()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DScanTests.java84 UserManagerInternal mMockUserManager; field in ScanTests
93 when(mMockInjector.getUserManagerInternal()).thenReturn(mMockUserManager); in setupInjector()
99 when(mMockUserManager.getUserIds()).thenReturn(new int[]{0}); in setupDefaultUser()
138 when(mMockUserManager.getUserIds()).thenReturn(userIds); in newInstallForAllUsers()
176 when(mMockUserManager.getUserIds()).thenReturn(new int[]{0}); in updateSimpleNominal()
207 when(mMockUserManager.getUserIds()).thenReturn(new int[]{0}); in updateInstantSimpleNominal()
359 when(mMockUserManager.getUserIds()).thenReturn(new int[]{0}); in updateInstant_changeToFull()
380 when(mMockUserManager.getUserIds()).thenReturn(new int[]{0}); in updateFull_changeToInstant()
DBaseShortcutManagerTest.java150 return mMockUserManager; in getSystemService()
629 protected UserManager mMockUserManager; field in BaseShortcutManagerTest
775 mMockUserManager = mock(UserManager.class); in setUp()
877 when(mMockUserManager.getUserInfo(anyInt())).thenAnswer(new AnswerWithSystemCheck<>( in setUp()
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DLocationPermissionCheckerTest.java63 @Mock private UserManager mMockUserManager; field in LocationPermissionCheckerTest
118 .thenReturn(mMockUserManager); in setupMocks()
147 when(mMockUserManager.isSameProfileGroup(UserHandle.SYSTEM, in setupMockInterface()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAccessibilitySecurityPolicyTest.java120 @Mock private UserManager mMockUserManager; field in AccessibilitySecurityPolicyTest
132 when(mMockContext.getSystemService(Context.USER_SERVICE)).thenReturn(mMockUserManager); in setUp()
436 verify(mMockUserManager).getProfileParent(userId); in resolveProfileParent_userIdNotCurrentUser_shouldGetProfileParent()
/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()
437 when(mMockUserManager.getUserRestrictions(any(UserHandle.class))).thenReturn(bundle); in testStartAddAccountSessionUserCannotModifyAccountNoDPM()
463 when(mMockUserManager.getUserRestrictions(any(UserHandle.class))).thenReturn(bundle); in testStartAddAccountSessionUserCannotModifyAccountWithDPM()
919 when(mMockUserManager.getUserRestrictions(any(UserHandle.class))).thenReturn(bundle); in testFinishSessionAsUserUserCannotModifyAccountNoDPM()
945 when(mMockUserManager.getUserRestrictions(any(UserHandle.class))).thenReturn(bundle); in testFinishSessionAsUserUserCannotModifyAccountWithDPM()
1385 when(mMockUserManager.getUserRestrictions(any(UserHandle.class))).thenReturn(bundle); in testRemoveAccountAsUserUserCannotModifyAccount()
1822 when(mMockUserManager.getUserRestrictions(any(UserHandle.class))).thenReturn(bundle); in testAddAccountAsUserUserCannotModifyAccountNoDPM()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/
DImsResolverTest.java108 UserManager mMockUserManager; field in ImsResolverTest
1646 when(mMockContext.getSystemService(eq(Context.USER_SERVICE))).thenReturn(mMockUserManager); in setupResolver()
1650 when(mMockUserManager.isUserUnlocked()).thenReturn(false); in setupResolver()