summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Keith <javelinanddart@gmail.com>2018-08-10 15:33:20 +0200
committeralk3pInjection <webmaster@raspii.tech>2022-03-03 13:57:18 +0800
commit48f1de2715fd5c3a44bba0f82bbb0e5fa9fb012f (patch)
tree9b149c7db273b6933d586b0f039e462ff17d0ce9
parent98b5c1f510c5db74116c24bc3e733b6e4b499783 (diff)
ice: interfaces: add touch HIDL
Squashed with the following commit: commit ba7d528fcfedabe93bef115e8933664ed6a77837 Author: Arian <arian.kulmer@web.de> Date: Sun, 3 Jan 2021 20:04:32 +0100 touch: Add keys swap interface Change-Id: Iaff504e5a7e6eea5045d3ed8723ed7af9d4c8398 Change-Id: I67bada5557c7242ab0072dd374a63cd3cb681d6e
-rw-r--r--interfaces/lineage/Android.bp20
-rw-r--r--interfaces/lineage/touch/1.0/Android.bp19
-rw-r--r--interfaces/lineage/touch/1.0/IGloveMode.hal22
-rw-r--r--interfaces/lineage/touch/1.0/IKeyDisabler.hal22
-rw-r--r--interfaces/lineage/touch/1.0/IKeySwapper.hal22
-rw-r--r--interfaces/lineage/touch/1.0/IStylusMode.hal22
-rw-r--r--interfaces/lineage/touch/1.0/ITouchscreenGesture.hal22
-rw-r--r--interfaces/lineage/touch/1.0/types.hal23
8 files changed, 172 insertions, 0 deletions
diff --git a/interfaces/lineage/Android.bp b/interfaces/lineage/Android.bp
new file mode 100644
index 0000000..b095e27
--- /dev/null
+++ b/interfaces/lineage/Android.bp
@@ -0,0 +1,20 @@
+//
+// Copyright (C) 2022 Project ICE
+//
+// 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.
+//
+
+hidl_package_root {
+ name: "vendor.lineage.touch",
+ path: "vendor/ice/interfaces/lineage/touch",
+}
diff --git a/interfaces/lineage/touch/1.0/Android.bp b/interfaces/lineage/touch/1.0/Android.bp
new file mode 100644
index 0000000..a2b082f
--- /dev/null
+++ b/interfaces/lineage/touch/1.0/Android.bp
@@ -0,0 +1,19 @@
+// This file is autogenerated by hidl-gen -Landroidbp.
+
+hidl_interface {
+ name: "vendor.lineage.touch@1.0",
+ root: "vendor.lineage.touch",
+ system_ext_specific: true,
+ srcs: [
+ "types.hal",
+ "IGloveMode.hal",
+ "IKeyDisabler.hal",
+ "IKeySwapper.hal",
+ "IStylusMode.hal",
+ "ITouchscreenGesture.hal",
+ ],
+ interfaces: [
+ "android.hidl.base@1.0",
+ ],
+ gen_java: true,
+}
diff --git a/interfaces/lineage/touch/1.0/IGloveMode.hal b/interfaces/lineage/touch/1.0/IGloveMode.hal
new file mode 100644
index 0000000..340e629
--- /dev/null
+++ b/interfaces/lineage/touch/1.0/IGloveMode.hal
@@ -0,0 +1,22 @@
+/*
+ * Copyright (C) 2018-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.touch@1.0;
+
+interface IGloveMode {
+ isEnabled() generates (bool rc);
+ setEnabled(bool enabled) generates (bool rc);
+};
diff --git a/interfaces/lineage/touch/1.0/IKeyDisabler.hal b/interfaces/lineage/touch/1.0/IKeyDisabler.hal
new file mode 100644
index 0000000..db7d12c
--- /dev/null
+++ b/interfaces/lineage/touch/1.0/IKeyDisabler.hal
@@ -0,0 +1,22 @@
+/*
+ * Copyright (C) 2018-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.touch@1.0;
+
+interface IKeyDisabler {
+ isEnabled() generates (bool rc);
+ setEnabled(bool enabled) generates (bool rc);
+};
diff --git a/interfaces/lineage/touch/1.0/IKeySwapper.hal b/interfaces/lineage/touch/1.0/IKeySwapper.hal
new file mode 100644
index 0000000..0b3c6c3
--- /dev/null
+++ b/interfaces/lineage/touch/1.0/IKeySwapper.hal
@@ -0,0 +1,22 @@
+/*
+ * Copyright (C) 2021 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.touch@1.0;
+
+interface IKeySwapper {
+ isEnabled() generates (bool rc);
+ setEnabled(bool enabled) generates (bool rc);
+};
diff --git a/interfaces/lineage/touch/1.0/IStylusMode.hal b/interfaces/lineage/touch/1.0/IStylusMode.hal
new file mode 100644
index 0000000..ca4bc6c
--- /dev/null
+++ b/interfaces/lineage/touch/1.0/IStylusMode.hal
@@ -0,0 +1,22 @@
+/*
+ * Copyright (C) 2018-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.touch@1.0;
+
+interface IStylusMode {
+ isEnabled() generates (bool rc);
+ setEnabled(bool enabled) generates (bool rc);
+};
diff --git a/interfaces/lineage/touch/1.0/ITouchscreenGesture.hal b/interfaces/lineage/touch/1.0/ITouchscreenGesture.hal
new file mode 100644
index 0000000..a3fdcab
--- /dev/null
+++ b/interfaces/lineage/touch/1.0/ITouchscreenGesture.hal
@@ -0,0 +1,22 @@
+/*
+ * Copyright (C) 2018-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.touch@1.0;
+
+interface ITouchscreenGesture {
+ getSupportedGestures() generates (vec<Gesture> gestures);
+ setGestureEnabled(Gesture gesture, bool enabled) generates (bool rc);
+};
diff --git a/interfaces/lineage/touch/1.0/types.hal b/interfaces/lineage/touch/1.0/types.hal
new file mode 100644
index 0000000..c901667
--- /dev/null
+++ b/interfaces/lineage/touch/1.0/types.hal
@@ -0,0 +1,23 @@
+/*
+ * Copyright (C) 2018-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.touch@1.0;
+
+struct Gesture {
+ int32_t id;
+ string name;
+ int32_t keycode;
+};