Home
last modified time | relevance | path

Searched refs:mockGetCurrentUser (Results 1 – 14 of 14) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/pm/
DVendorServiceControllerTest.java196 mockGetCurrentUser(UserHandle.USER_SYSTEM); in init_systemUser()
209 mockGetCurrentUser(UserHandle.USER_SYSTEM); in testBindService_callsUnbindServiceWhenFalseReturned()
225 mockGetCurrentUser(UserHandle.USER_SYSTEM); in testOnNullBinding_callsUnbindService()
251 mockGetCurrentUser(UserHandle.USER_SYSTEM); in fgUserUnlocked()
259 mockGetCurrentUser(FG_USER_ID); in fgUserUnlocked()
283 mockGetCurrentUser(UserHandle.USER_SYSTEM); in testVisibleUsers()
315 mockGetCurrentUser(FG_USER_ID); in testVisibleUsers()
351 mockGetCurrentUser(UserHandle.USER_SYSTEM); in packageChanged_bindsTheService()
359 mockGetCurrentUser(FG_USER_ID); in packageChanged_bindsTheService()
383 mockGetCurrentUser(UserHandle.USER_SYSTEM); in packageRemoved_unbindsTheService()
[all …]
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/
DSharedExtendedMockitoTestCase.java77 public void mockGetCurrentUser(int user) { in mockGetCurrentUser() method in SharedExtendedMockitoTestCase.Mocker
78 mAndroidMocker.mockGetCurrentUser(user); in mockGetCurrentUser()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DUserLifecycleEventFilterTest.java196 mockGetCurrentUser(USER112.getIdentifier()); in testApply_currentUserFilter()
207 mockGetCurrentUser(USER111.getIdentifier()); in testApply_currentUserFilter_evaluatedAtFilterApplyTime()
211 mockGetCurrentUser(USER112.getIdentifier()); in testApply_currentUserFilter_evaluatedAtFilterApplyTime()
DInitialUserSetterTest.java126 mockGetCurrentUser(CURRENT_USER_ID); in setFixtures()
198 mockGetCurrentUser(CURRENT_USER_ID); in testSwitchUser_ok_guestReplaced()
296 mockGetCurrentUser(CURRENT_USER_ID); in testSwitchUser_ok_targetIsCurrentUser()
550 mockGetCurrentUser(CURRENT_USER_ID); in testReplaceUser_ok()
570 mockGetCurrentUser(CURRENT_USER_ID); in testReplaceUser_fail_cantCreate()
582 mockGetCurrentUser(CURRENT_USER_ID); in testReplaceUser_ok_sameUser()
DCarUserServiceTest.java727 mockGetCurrentUser(user1); in testBackgroundUserList()
739 mockGetCurrentUser(user3); in testBackgroundUserList()
743 mockGetCurrentUser(user4Guest); in testBackgroundUserList()
747 mockGetCurrentUser(user5); in testBackgroundUserList()
761 mockGetCurrentUser(user1); in testBackgroundUsersStartStopKeepBackgroundUserList()
764 mockGetCurrentUser(user2); in testBackgroundUsersStartStopKeepBackgroundUserList()
767 mockGetCurrentUser(user3); in testBackgroundUsersStartStopKeepBackgroundUserList()
2490 mockGetCurrentUser(newUser.getIdentifier()); in testStartUserInBackground_currentUser()
DCarUserNoticeServiceTest.java130 mockGetCurrentUser(USER_ID); in setUpMocks()
DExperimentalCarUserServiceTest.java248 mockGetCurrentUser(user1Id); in testStopPassenger()
DBaseCarUserServiceTestCase.java678 mockGetCurrentUser(user.getIdentifier()); in mockCurrentUser()
/packages/modules/AdServices/adservices/tests/test-util/java/com/android/adservices/common/
DAdServicesExtendedMockitoTestCase.java151 public void mockGetCurrentUser(int user) { in mockGetCurrentUser() method in AdServicesExtendedMockitoTestCase.Mocker
152 mAndroidMocker.mockGetCurrentUser(user); in mockGetCurrentUser()
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/mockito/
DAndroidStaticMocker.java58 void mockGetCurrentUser(int user); in mockGetCurrentUser() method
DAndroidExtendedMockitoMocker.java90 public void mockGetCurrentUser(int user) { in mockGetCurrentUser() method in AndroidExtendedMockitoMocker
/packages/modules/AdServices/adservices/tests/unittest/system-service/src/com/android/server/adservices/
DAdServicesShellCommandTest.java106 mocker.mockGetCurrentUser(SYSTEM_USER); in setFixtures()
433 mocker.mockGetCurrentUser(secondaryUser); in testExec_validAdServicesShellCommand_secondaryUser_noArgs()
/packages/services/Car/libs/car-test-lib/src/android/car/test/mocks/
DAbstractExtendedMockitoTestCase.java438 protected final void mockGetCurrentUser(@UserIdInt int userId) { in mockGetCurrentUser() method in AbstractExtendedMockitoTestCase
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/
DCarPowerManagementServiceUnitTest.java3058 mockGetCurrentUser(userId); in setCurrentUser()