Searched refs:mMockUserManager (Results 1 – 6 of 6) sorted by relevance
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
D | WifiPermissionsUtilTest.java | 78 @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/pm/ |
D | ScanTests.java | 72 UserManagerInternal mMockUserManager; field in ScanTests 76 when(mMockUserManager.getUserIds()).thenReturn(new int[]{0}); in setupDefaultUser() 115 when(mMockUserManager.getUserIds()).thenReturn(userIds); in newInstallForAllUsers() 153 when(mMockUserManager.getUserIds()).thenReturn(new int[]{0}); in updateSimpleNominal() 184 when(mMockUserManager.getUserIds()).thenReturn(new int[]{0}); in updateInstantSimpleNominal() 336 when(mMockUserManager.getUserIds()).thenReturn(new int[]{0}); in updateInstant_changeToFull() 357 when(mMockUserManager.getUserIds()).thenReturn(new int[]{0}); in updateFull_changeToInstant() 404 new PackageManagerService.Injector(mMockUserManager, mMockPackageAbiHelper), in factoryTestFlagSet() 451 new PackageManagerService.Injector(mMockUserManager, mMockPackageAbiHelper),
|
D | BaseShortcutManagerTest.java | 146 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()
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | LocationPermissionCheckerTest.java | 62 @Mock private UserManager mMockUserManager; field in LocationPermissionCheckerTest 117 .thenReturn(mMockUserManager); in setupMocks() 146 when(mMockUserManager.isSameProfileGroup(UserHandle.SYSTEM.getIdentifier(), in setupMockInterface()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/ |
D | AccountManagerServiceTest.java | 108 @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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/ |
D | ImsResolverTest.java | 108 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()
|