summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Cai <peter@typeblog.net>2019-06-20 21:53:29 +0800
committerdragonGR <alextsanisbadlorg@gmail.com>2019-11-26 17:01:48 +0200
commit332b59f9f3150f716d8464da6ee6354c77448f82 (patch)
tree53d2ad7d74083703dfb9b13e2d6d955fd6d2c395
parent1b26700d77b1a9d3de808c38786d5f9581f11f8f (diff)
Introduce camera motor hal
Change-Id: I432ba13b20119307d9763d62d4699c6908bdc1af
-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);
+};