• Home
  • Raw
  • Download

Lines Matching refs:mWatchdogServiceHelper

96         mWatchdogServiceHelper = sp<WatchdogServiceHelper>::make();  in SetUp()
98 sp<internal::WatchdogServiceHelperPeer>::make(mWatchdogServiceHelper); in SetUp()
107 if (mWatchdogServiceHelper->isServiceConnected()) { in TearDown()
114 mWatchdogServiceHelper.clear(); in TearDown()
127 auto status = mWatchdogServiceHelper->registerService(mMockCarWatchdogServiceForSystem); in registerCarWatchdogService()
130 ASSERT_TRUE(mWatchdogServiceHelper->isServiceConnected()); in registerCarWatchdogService()
161 sp<WatchdogServiceHelper> mWatchdogServiceHelper; member in android::automotive::watchdog::WatchdogServiceHelperTest
189 mWatchdogServiceHelper->terminate(); in TEST_F()
191 ASSERT_EQ(mWatchdogServiceHelper->mService, nullptr); in TEST_F()
196 auto serviceHelperInterface = sp<WatchdogServiceHelperInterface>(mWatchdogServiceHelper); in TEST_F()
203 auto status = mWatchdogServiceHelper->registerService(mMockCarWatchdogServiceForSystem); in TEST_F()
205 ASSERT_TRUE(mWatchdogServiceHelper->isServiceConnected()); in TEST_F()
210 status = mWatchdogServiceHelper->registerService(mMockCarWatchdogServiceForSystem); in TEST_F()
212 ASSERT_TRUE(mWatchdogServiceHelper->isServiceConnected()); in TEST_F()
217 auto serviceHelperInterface = sp<WatchdogServiceHelperInterface>(mWatchdogServiceHelper); in TEST_F()
224 ASSERT_FALSE(mWatchdogServiceHelper->registerService(mMockCarWatchdogServiceForSystem).isOk()) in TEST_F()
226 ASSERT_FALSE(mWatchdogServiceHelper->isServiceConnected()); in TEST_F()
231 auto serviceHelperInterface = sp<WatchdogServiceHelperInterface>(mWatchdogServiceHelper); in TEST_F()
238 ASSERT_FALSE(mWatchdogServiceHelper->registerService(mMockCarWatchdogServiceForSystem).isOk()) in TEST_F()
240 ASSERT_FALSE(mWatchdogServiceHelper->isServiceConnected()); in TEST_F()
245 auto serviceHelperInterface = sp<WatchdogServiceHelperInterface>(mWatchdogServiceHelper); in TEST_F()
252 ASSERT_FALSE(mWatchdogServiceHelper->registerService(mMockCarWatchdogServiceForSystem).isOk()) in TEST_F()
254 ASSERT_FALSE(mWatchdogServiceHelper->isServiceConnected()); in TEST_F()
264 auto status = mWatchdogServiceHelper->unregisterService(mMockCarWatchdogServiceForSystem); in TEST_F()
267 ASSERT_FALSE(mWatchdogServiceHelper->isServiceConnected()); in TEST_F()
272 ASSERT_FALSE(mWatchdogServiceHelper->unregisterService(mMockCarWatchdogServiceForSystem).isOk()) in TEST_F()
282 mWatchdogServiceHelper->handleBinderDeath(static_cast<void*>(binder.get())); in TEST_F()
284 ASSERT_FALSE(mWatchdogServiceHelper->isServiceConnected()); in TEST_F()
288 ASSERT_FALSE(mWatchdogServiceHelper->unregisterService(mMockCarWatchdogServiceForSystem).isOk()) in TEST_F()
299 auto status = mWatchdogServiceHelper->checkIfAlive(mMockCarWatchdogServiceForSystem->asBinder(), in TEST_F()
312 auto status = mWatchdogServiceHelper->checkIfAlive(notRegisteredService->asBinder(), 0, in TEST_F()
322 auto status = mWatchdogServiceHelper->checkIfAlive(mMockCarWatchdogServiceForSystem->asBinder(), in TEST_F()
336 auto status = mWatchdogServiceHelper->checkIfAlive(mMockCarWatchdogServiceForSystem->asBinder(), in TEST_F()
349 auto status = mWatchdogServiceHelper->prepareProcessTermination( in TEST_F()
354 ASSERT_FALSE(mWatchdogServiceHelper->isServiceConnected()); in TEST_F()
367 mWatchdogServiceHelper->prepareProcessTermination(notRegisteredService->asBinder()); in TEST_F()
379 ASSERT_FALSE(mWatchdogServiceHelper in TEST_F()
395 ASSERT_FALSE(mWatchdogServiceHelper in TEST_F()
419 mWatchdogServiceHelper->getPackageInfosForUids(uids, prefixesStr, &actualPackageInfo); in TEST_F()
433 mWatchdogServiceHelper->getPackageInfosForUids(uids, prefixes, &actualPackageInfo); in TEST_F()
451 mWatchdogServiceHelper->getPackageInfosForUids(uids, prefixes, &actualPackageInfo); in TEST_F()
464 auto status = mWatchdogServiceHelper->resetResourceOveruseStats(packageNames); in TEST_F()
473 ASSERT_FALSE(mWatchdogServiceHelper->resetResourceOveruseStats({}).isOk()) in TEST_F()
485 ASSERT_FALSE(mWatchdogServiceHelper->resetResourceOveruseStats({}).isOk()) in TEST_F()
495 auto status = mWatchdogServiceHelper->requestTodayIoUsageStats(); in TEST_F()
504 ASSERT_FALSE(mWatchdogServiceHelper->requestTodayIoUsageStats().isOk()) in TEST_F()
516 ASSERT_FALSE(mWatchdogServiceHelper->requestTodayIoUsageStats().isOk()) in TEST_F()
542 auto status = mWatchdogServiceHelper->onLatestResourceStats(expectedResourceStats); in TEST_F()
551 ASSERT_FALSE(mWatchdogServiceHelper->onLatestResourceStats({}).isOk()) in TEST_F()
563 ASSERT_FALSE(mWatchdogServiceHelper->onLatestResourceStats({}).isOk()) in TEST_F()
573 auto status = mWatchdogServiceHelper->requestAidlVhalPid(); in TEST_F()
581 ASSERT_FALSE(mWatchdogServiceHelper->requestAidlVhalPid().isOk()) in TEST_F()
592 ASSERT_FALSE(mWatchdogServiceHelper->requestAidlVhalPid().isOk()) in TEST_F()