Home
last modified time | relevance | path

Searched refs:onUserStateChange (Results 1 – 9 of 9) sorted by relevance

/packages/services/Car/cpp/watchdog/server/src/
DWatchdogInternalHandler.cpp355 mWatchdogProcessService->onUserStateChange(userId, /*isStarted=*/true); in handleUserStateChange()
359 mWatchdogPerfService->onUserStateChange(userId, userState); in handleUserStateChange()
363 mWatchdogPerfService->onUserStateChange(userId, userState); in handleUserStateChange()
367 mWatchdogPerfService->onUserStateChange(userId, userState); in handleUserStateChange()
371 mWatchdogProcessService->onUserStateChange(userId, /*isStarted=*/false); in handleUserStateChange()
DWatchdogPerfService.h232 virtual android::base::Result<void> onUserStateChange(
300 android::base::Result<void> onUserStateChange(
DWatchdogProcessService.h104 virtual void onUserStateChange(userid_t userId, bool isStarted) = 0;
162 void onUserStateChange(userid_t userId, bool isStarted) override;
DWatchdogPerfService.cpp367 Result<void> WatchdogPerfService::onUserStateChange(userid_t userId, const UserState& userState) { in onUserStateChange() function in android::automotive::watchdog::WatchdogPerfService
DWatchdogProcessService.cpp483 void WatchdogProcessService::onUserStateChange(userid_t userId, bool isStarted) { in onUserStateChange() function in android::automotive::watchdog::WatchdogProcessService
/packages/services/Car/cpp/watchdog/server/tests/
DWatchdogInternalHandlerTest.cpp481 EXPECT_CALL(*mMockWatchdogProcessService, onUserStateChange(234567, /*isStarted=*/true)); in TEST_F()
496 onUserStateChange(234567, UserState::USER_STATE_SWITCHING)); in TEST_F()
511 onUserStateChange(234567, UserState::USER_STATE_UNLOCKING)); in TEST_F()
526 onUserStateChange(234567, UserState::USER_STATE_POST_UNLOCKED)); in TEST_F()
540 EXPECT_CALL(*mMockWatchdogProcessService, onUserStateChange(234567, /*isStarted=*/false)); in TEST_F()
565 EXPECT_CALL(*mMockWatchdogProcessService, onUserStateChange(_, _)).Times(0); in TEST_F()
DWatchdogPerfServiceTest.cpp871 ASSERT_RESULT_OK(mService->onUserStateChange(100, UserState::USER_STATE_SWITCHING)); in TEST_F()
909 ASSERT_RESULT_OK(mService->onUserStateChange(100, UserState::USER_STATE_POST_UNLOCKED)); in TEST_F()
950 ASSERT_RESULT_OK(mService->onUserStateChange(100, UserState::USER_STATE_SWITCHING)); in TEST_F()
1001 ASSERT_RESULT_OK(mService->onUserStateChange(100, UserState::USER_STATE_UNLOCKING)); in TEST_F()
1039 ASSERT_RESULT_OK(mService->onUserStateChange(100, UserState::USER_STATE_POST_UNLOCKED)); in TEST_F()
1079 ASSERT_RESULT_OK(mService->onUserStateChange(toUserId, UserState::USER_STATE_SWITCHING)); in TEST_F()
1109 ASSERT_RESULT_OK(mService->onUserStateChange(newToUserId, UserState::USER_STATE_SWITCHING)); in TEST_F()
1147 ASSERT_RESULT_OK(mService->onUserStateChange(newToUserId, UserState::USER_STATE_POST_UNLOCKED)); in TEST_F()
1188 ASSERT_RESULT_OK(mService->onUserStateChange(100, UserState::USER_STATE_SWITCHING)); in TEST_F()
1238 ASSERT_RESULT_OK(mService->onUserStateChange(100, UserState::USER_STATE_UNLOCKING)); in TEST_F()
[all …]
DMockWatchdogPerfService.h45 MOCK_METHOD(android::base::Result<void>, onUserStateChange,
DMockWatchdogProcessService.h87 MOCK_METHOD(void, onUserStateChange, (userid_t, bool), (override));