Searched refs:mMockUserManager (Results 1 – 3 of 3) sorted by relevance
72 private UserManager mMockUserManager; field in UserHelperTest82 mUserHelper = new UserHelper(mMockUserManager, mMockResources, in setUp()85 when(mMockUserManager.hasUserRestriction(UserManager.DISALLOW_MODIFY_ACCOUNTS)) in setUp()87 when(mMockUserManager.isDemoUser()).thenReturn(false); in setUp()88 when(mMockUserManager.isGuestUser()).thenReturn(false); in setUp()107 when(mMockUserManager.hasUserRestriction(UserManager.DISALLOW_MODIFY_ACCOUNTS)) in canCurrentProcessModifyAccounts_hasDisallowModifyAccounts_returnsFalse()114 when(mMockUserManager.isDemoUser()).thenReturn(true); in canCurrentProcessModifyAccounts_isDemoUser_returnsFalse()120 when(mMockUserManager.isGuestUser()).thenReturn(true); in canCurrentProcessModifyAccounts_isGuestUser_returnsFalse()300 when(mMockUserManager.isAdminUser()).thenReturn(true); in testRemoveUser_isAdmin_canRemoveOtherUsers()315 when(mMockUserManager.isAdminUser()).thenReturn(false); in testRemoveUser_isNonAdmin_cannotRemoveOtherUsers()[all …]
54 @Mock private UserManager mMockUserManager; field in PanServiceTest69 mService.mUserManager = mMockUserManager; in setUp()91 when(mMockUserManager.isGuestUser()).thenReturn(true); in testGuestUserConnect()
81 private @Mock UserManager mMockUserManager; field in AdapterServiceTest141 when(mMockContext.getSystemService(Context.USER_SERVICE)).thenReturn(mMockUserManager); in setUp()311 when(mockContext.getSystemService(Context.USER_SERVICE)).thenReturn(mMockUserManager); in testEnableDisableOnlyGatt()