Propagate CarWatchdog AIDL split changes ...
... to CarWatchdogService and CarWatchdogDaemon.
- Add a new carwatchdog daemon service for system interface.
- As some AIDLs overlap between the system interface and the public
interface, use the exact namespace in source to resolve conflicts.
- Also update tellMediatorAlive/tellDumpFinished to check for system
permission.
- Tests are added in the following to help keep this CL small.
Test: Tested with unittests in the following CLs.
Bug: 171422266
Bug: 171334071
Change-Id: Iaa10d97a2d35888e88b6d38b5ecd954aba009bf8
diff --git a/cpp/watchdog/server/Android.bp b/cpp/watchdog/server/Android.bp
index 8831b2f..b829183 100644
--- a/cpp/watchdog/server/Android.bp
+++ b/cpp/watchdog/server/Android.bp
@@ -26,6 +26,7 @@
],
shared_libs: [
"android.automotive.watchdog-unstable-cpp",
+ "android.automotive.watchdog.internal-unstable-cpp",
"libbase",
"libbinder",
"liblog",
@@ -106,6 +107,7 @@
"tests/ProcStatTest.cpp",
"tests/UidIoStatsTest.cpp",
"tests/WatchdogBinderMediatorTest.cpp",
+ "tests/WatchdogInternalHandlerTest.cpp",
"tests/WatchdogPerfServiceTest.cpp",
"tests/WatchdogProcessServiceTest.cpp",
],
@@ -146,6 +148,7 @@
],
srcs: [
"src/WatchdogBinderMediator.cpp",
+ "src/WatchdogInternalHandler.cpp",
"src/WatchdogProcessService.cpp",
"src/IoPerfCollection.cpp",
],