Home
last modified time | relevance | path

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

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/users/
DUserHelperTest.java72 private UserManager mMockUserManager; field in UserHelperTest
82 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 …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/pan/
DPanServiceTest.java54 @Mock private UserManager mMockUserManager; field in PanServiceTest
69 mService.mUserManager = mMockUserManager; in setUp()
91 when(mMockUserManager.isGuestUser()).thenReturn(true); in testGuestUserConnect()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
DAdapterServiceTest.java81 private @Mock UserManager mMockUserManager; field in AdapterServiceTest
141 when(mMockContext.getSystemService(Context.USER_SERVICE)).thenReturn(mMockUserManager); in setUp()
311 when(mockContext.getSystemService(Context.USER_SERVICE)).thenReturn(mMockUserManager); in testEnableDisableOnlyGatt()