Home
last modified time | relevance | path

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

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/media/
DCarMediaServiceTest.java178 mockGetCallingUserHandle(TEST_USER_ID); in setUp()
311 mockGetCallingUserHandle(TEST_USER_ID); in testSetMediaSource_multiUsers()
318 mockGetCallingUserHandle(ANOTHER_TEST_USER_ID); in testSetMediaSource_multiUsers()
328 mockGetCallingUserHandle(TEST_USER_ID); in testSetMediaSource_multiUsers()
335 mockGetCallingUserHandle(TEST_USER_ID); in testSetMediaSource_throwsSecurityExceptionWhenUserDoesNotMatch()
344 mockGetCallingUserHandle(TEST_USER_ID); in testGetMediaSource_throwsSecurityExceptionWhenUserDoesNotMatch()
356 mockGetCallingUserHandle(TEST_USER_ID); in testGetMediaSource_returnsDefaultSourceForUninitializedUser()
367 mockGetCallingUserHandle(UserHandle.USER_SYSTEM); in testSetAndGetMediaSource_systemUserCanCallForOtherUser()
376 mockGetCallingUserHandle(TEST_USER_ID); in testDefaultMediaSource_currentUserInitialized()
387 mockGetCallingUserHandle(TEST_USER_ID); in testDefaultMediaSource_backgroundUserInitialized()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DCarUserServiceTest.java1079 mockGetCallingUserHandle(currentUser.getIdentifier()); in testRemoveUserWithRestriction_nonAdminRemovingAdmin()
1093 mockGetCallingUserHandle(currentUser.getIdentifier()); in testRemoveUserWithRestriction_nonAdminRemovingNonAdmin()
1107 mockGetCallingUserHandle(currentUser.getIdentifier()); in testRemoveUserWithRestriction_nonAdminRemovingItself()
1124 mockGetCallingUserHandle(currentUser.getIdentifier()); in testRemoveUserWithRestriction_adminRemovingAdmin()
1140 mockGetCallingUserHandle(currentUser.getIdentifier()); in testRemoveUserWithRestriction_adminRemovingNonAdmin()
1156 mockGetCallingUserHandle(currentUser.getIdentifier()); in testRemoveUserWithRestriction_adminRemovingItself()
2265 mockGetCallingUserHandle(currentUser.getIdentifier()); in testCreateUserWithRestrictions_nonAdminCreatingAdmin()
/packages/services/Car/libs/car-test-lib/src/android/car/test/mocks/
DAbstractExtendedMockitoTestCase.java472 protected final void mockGetCallingUserHandle(@UserIdInt int userId) { in mockGetCallingUserHandle() method in AbstractExtendedMockitoTestCase