Home
last modified time | relevance | path

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

/packages/services/Car/cpp/watchdog/server/tests/
DWatchdogProcessServiceTest.cpp67 mWatchdogProcessService = new WatchdogProcessService(looper); in SetUp()
70 void TearDown() override { mWatchdogProcessService.clear(); } in TearDown()
72 sp<WatchdogProcessService> mWatchdogProcessService; member in android::automotive::watchdog::WatchdogProcessServiceTest
112 mWatchdogProcessService->registerClient(client, TimeoutLength::TIMEOUT_CRITICAL); in TEST_F()
114 status = mWatchdogProcessService->registerClient(client, TimeoutLength::TIMEOUT_CRITICAL); in TEST_F()
120 mWatchdogProcessService->registerClient(client, TimeoutLength::TIMEOUT_CRITICAL); in TEST_F()
121 Status status = mWatchdogProcessService->unregisterClient(client); in TEST_F()
123 ASSERT_FALSE(mWatchdogProcessService->unregisterClient(client).isOk()) in TEST_F()
130 mWatchdogProcessService->registerClient(client, TimeoutLength::TIMEOUT_CRITICAL).isOk()) in TEST_F()
136 ASSERT_RESULT_OK(mWatchdogProcessService->registerWatchdogServiceHelper(mockServiceHelper)); in TEST_F()
[all …]
DWatchdogBinderMediatorTest.cpp130 ASSERT_NE(mediator->mWatchdogProcessService, nullptr); in TEST_F()
166 EXPECT_NE(mWatchdogBinderMediator->mWatchdogProcessService, nullptr); in TEST_F()
173 EXPECT_EQ(mWatchdogBinderMediator->mWatchdogProcessService, nullptr); in TEST_F()
DWatchdogInternalHandlerTest.cpp146 ASSERT_NE(mWatchdogInternalHandler->mWatchdogProcessService, nullptr); in TEST_F()
154 ASSERT_EQ(mWatchdogInternalHandler->mWatchdogProcessService, nullptr); in TEST_F()
/packages/services/Car/cpp/watchdog/server/src/
DWatchdogInternalHandler.cpp122 return mWatchdogProcessService->registerMonitor(monitor); in registerMonitor()
133 return mWatchdogProcessService->unregisterMonitor(monitor); in unregisterMonitor()
146 return mWatchdogProcessService->tellCarWatchdogServiceAlive(service, clientsNotResponding, in tellCarWatchdogServiceAlive()
158 return mWatchdogProcessService->tellDumpFinished(monitor, pid); in tellDumpFinished()
190 return mWatchdogProcessService->notifyUserStateChange(userId, userState); in notifySystemStateChange()
210 mWatchdogProcessService->setEnabled(/*isEnabled=*/false); in handlePowerCycleChange()
215 mWatchdogProcessService->setEnabled(/*isEnabled=*/false); in handlePowerCycleChange()
219 mWatchdogProcessService->setEnabled(/*isEnabled=*/true); in handlePowerCycleChange()
DWatchdogServiceHelper.cpp55 mWatchdogProcessService = watchdogProcessService; in init()
56 return mWatchdogProcessService->registerWatchdogServiceHelper(this); in init()
66 if (mWatchdogProcessService == nullptr) { in registerService()
81 if (Status status = mWatchdogProcessService->registerCarWatchdogService(newBinder); in registerService()
110 mWatchdogProcessService->unregisterCarWatchdogService(curBinder); in binderDied()
116 mWatchdogProcessService.clear(); in terminate()
176 mWatchdogProcessService->unregisterCarWatchdogService(binder); in unregisterServiceLocked()
DWatchdogBinderMediator.cpp85 mWatchdogProcessService(watchdogProcessService), in WatchdogBinderMediator()
95 mWatchdogProcessService, mWatchdogPerfService, in WatchdogBinderMediator()
101 if (mWatchdogProcessService == nullptr || mWatchdogPerfService == nullptr || in init()
104 if (mWatchdogProcessService == nullptr) { in init()
178 if (auto result = mWatchdogProcessService->dump(fd, args); !result.ok()) { in dumpServices()
210 return mWatchdogProcessService->registerClient(client, timeout); in registerClient()
217 return mWatchdogProcessService->unregisterClient(client); in unregisterClient()
225 return mWatchdogProcessService->tellClientAlive(client, sessionId); in tellClientAlive()
DWatchdogInternalHandler.h54 mWatchdogProcessService(watchdogProcessService), in WatchdogInternalHandler()
101 mWatchdogProcessService.clear(); in terminate()
114 android::sp<WatchdogProcessService> mWatchdogProcessService; variable
DWatchdogBinderMediator.h105 mWatchdogProcessService.clear(); in terminate()
118 android::sp<WatchdogProcessService> mWatchdogProcessService; variable
DWatchdogServiceHelper.h88 WatchdogServiceHelper() : mService(nullptr), mWatchdogProcessService(nullptr) {} in WatchdogServiceHelper()
125 android::sp<WatchdogProcessService> mWatchdogProcessService; variable