summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoner Lin <jonerlin@google.com>2022-05-20 05:06:31 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2022-05-20 05:06:31 +0000
commitb1f2d51ae7000c977b5cd32754529a0a696cd63d (patch)
tree7c44e59856608895fd9431af8353d21d1ab81cf1
parent8de65c3ab919a9a97e679857934b594c49d4a12c (diff)
parent3be71c8f975f3ed4d49060bd88ed82c37e77031f (diff)
downloadinterfaces-b1f2d51ae7000c977b5cd32754529a0a696cd63d.tar.gz
Merge "Introduce BluetoothExt HAL 1.0" into tm-dev
-rw-r--r--bluetooth/ext/1.0/Android.bp16
-rw-r--r--bluetooth/ext/1.0/IBluetoothExt.hal30
2 files changed, 46 insertions, 0 deletions
diff --git a/bluetooth/ext/1.0/Android.bp b/bluetooth/ext/1.0/Android.bp
new file mode 100644
index 0000000..da64eed
--- /dev/null
+++ b/bluetooth/ext/1.0/Android.bp
@@ -0,0 +1,16 @@
+package {
+ // See: http://go/android-license-faq
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
+hidl_interface {
+ name: "hardware.google.bluetooth.ext@1.0",
+ root: "hardware.google",
+ srcs: [
+ "IBluetoothExt.hal",
+ ],
+ interfaces: [
+ "android.hidl.base@1.0",
+ ],
+ gen_java: true,
+}
diff --git a/bluetooth/ext/1.0/IBluetoothExt.hal b/bluetooth/ext/1.0/IBluetoothExt.hal
new file mode 100644
index 0000000..653903c
--- /dev/null
+++ b/bluetooth/ext/1.0/IBluetoothExt.hal
@@ -0,0 +1,30 @@
+/*
+ * Copyright 2020 The Android Open Source 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.
+ */
+
+/**
+ * This is pixel only extension for Bluetooth HAL.
+ */
+package hardware.google.bluetooth.ext@1.0;
+
+interface IBluetoothExt {
+ /**
+ * API to set Bluetooth HCI packet
+ *
+ * @param opcode : Bluetooth HCI command opcode to be send
+ * @param params : Bluetooth HCI command paramethers for the opcode
+ */
+ setBluetoothCmdPacket(uint16_t opcode, vec<uint8_t> params) generates (bool value);
+};