Creates separate package for ScriptExecutor. DO NOT MERGE
This merges the diff of ag/15581181, which was a cherry pick
from sc-v2-dev into master. During the review of ag/15581181
some changes had to happen that caused master to diverge from
sc-v2-dev. Here were are porting those deltas back to sc-v2-dev.
We must make sure not to cherry pick them to master again.
Important changes:
1. Create a separate library for ScriptExecutor interfaces, that
both ScriptExecutor and CarService would depend on.
2. Put all ScriptExecutor code under the same namespace.
3. Break all dependencies of ScriptExecutor on CarService.
4. Add instructions on how to run unit tests.
Test: atest ScriptExecutorUnitTest:ScriptExecutorTest
Bug: 193028600
Change-Id: I23d7a7e79d5e7145071e210527237482fb98e750
diff --git a/service/Android.bp b/service/Android.bp
index c0bfb51..19a5fa2 100644
--- a/service/Android.bp
+++ b/service/Android.bp
@@ -29,6 +29,7 @@
}
car_service_sources = [
+ ":iscriptexecutor_aidl",
"src/**/*.java",
":statslog-Car-java-gen",
]
@@ -50,7 +51,6 @@
"vehicle-hal-support-lib",
"car-systemtest",
"com.android.car.procfsinspector-client",
- "com.android.car.scriptexecutor-interface-lib",
"blestream-protos",
"SettingsLib",
"androidx.preference_preference",
@@ -169,3 +169,20 @@
},
},
}
+
+filegroup {
+ name: "iscriptexecutor_aidl",
+ srcs: [
+ "src/com/android/car/telemetry/scriptexecutorinterface/IScriptExecutor.aidl",
+ "src/com/android/car/telemetry/scriptexecutorinterface/IScriptExecutorListener.aidl",
+ ],
+ path: "src",
+}
+
+filegroup {
+ name: "iscriptexecutorconstants_aidl",
+ srcs: [
+ "src/com/android/car/telemetry/scriptexecutorinterface/IScriptExecutorConstants.aidl",
+ ],
+ path: "src",
+}