Rename compile method to compile_cmd
And add an empty implement of compile method.
Bug: 193668901
Test: m
Change-Id: I690be577a4ac79b00f2e151e5c9bf3d507feb83c
diff --git a/compos/composd/src/service.rs b/compos/composd/src/service.rs
index 2a67a27..be9c30c 100644
--- a/compos/composd/src/service.rs
+++ b/compos/composd/src/service.rs
@@ -47,7 +47,7 @@
to_binder_result(self.do_run_forced_compile())
}
- fn compile(
+ fn compile_cmd(
&self,
args: &[String],
fd_annotation: &FdAnnotation,
@@ -55,6 +55,10 @@
// TODO - check caller is odrefresh
to_binder_result(self.do_compile(args, fd_annotation))
}
+
+ fn compile(&self, _marshaled: &[u8], _fd_annotation: &FdAnnotation) -> binder::Result<i8> {
+ Err(new_binder_service_specific_error(-1, "Not yet implemented"))
+ }
}
fn to_binder_result<T>(result: Result<T>) -> binder::Result<T> {
@@ -89,6 +93,6 @@
fd_annotation: &FdAnnotation,
) -> Result<CompilationResult> {
let compos = self.instance_manager.get_running_service()?;
- compos.compile(args, fd_annotation).context("Compiling")
+ compos.compile_cmd(args, fd_annotation).context("Compiling")
}
}