summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Luther <luther.ralf@gmail.com>2019-12-11 07:56:26 +0100
committerGerrit Code Review <gerrit@box1>2019-12-11 07:56:26 +0100
commit457329459113fe23ab54bde054a942670de2794e (patch)
tree15c25acd78d466d8c27e974743f21a303fe95f78
parent231c3622193fe0d02134b69f64a0c38c414e2875 (diff)
parent332b59f9f3150f716d8464da6ee6354c77448f82 (diff)
Merge "Introduce camera motor hal" into p9.0HEADp9.0
-rw-r--r--camera/motor/1.0/Android.bp14
-rw-r--r--camera/motor/1.0/ICameraMotor.hal22
2 files changed, 36 insertions, 0 deletions
diff --git a/camera/motor/1.0/Android.bp b/camera/motor/1.0/Android.bp
new file mode 100644
index 0000000..0568e5c
--- /dev/null
+++ b/camera/motor/1.0/Android.bp
@@ -0,0 +1,14 @@
+// This file is autogenerated by hidl-gen -Landroidbp.
+
+hidl_interface {
+ name: "vendor.lineage.camera.motor@1.0",
+ root: "vendor.lineage",
+ srcs: [
+ "ICameraMotor.hal",
+ ],
+ interfaces: [
+ "android.hidl.base@1.0",
+ ],
+ gen_java: true,
+}
+
diff --git a/camera/motor/1.0/ICameraMotor.hal b/camera/motor/1.0/ICameraMotor.hal
new file mode 100644
index 0000000..5ae8d0f
--- /dev/null
+++ b/camera/motor/1.0/ICameraMotor.hal
@@ -0,0 +1,22 @@
+/*
+ * Copyright (C) 2019 The LineageOS Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package vendor.lineage.camera.motor@1.0;
+
+interface ICameraMotor {
+ onConnect(string cameraId);
+ onDisconnect(string cameraId);
+};