diff options
author | jonerlin <jonerlin@google.com> | 2022-05-13 10:26:33 +0800 |
---|---|---|
committer | jonerlin <jonerlin@google.com> | 2022-05-18 19:44:51 +0800 |
commit | 3be71c8f975f3ed4d49060bd88ed82c37e77031f (patch) | |
tree | 6e297d14418786795699192911cde463a941454a | |
parent | d54a404deac5fe92e8d24535b4adf99f49bb651d (diff) | |
download | interfaces-3be71c8f975f3ed4d49060bd88ed82c37e77031f.tar.gz |
Introduce BluetoothExt HAL 1.0
Bug: 228943442
Test: Manually
Change-Id: Id6b3a1b83a456bb894505e8a2ac78c14ee5f0bbb
-rw-r--r-- | bluetooth/ext/1.0/Android.bp | 16 | ||||
-rw-r--r-- | bluetooth/ext/1.0/IBluetoothExt.hal | 30 |
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); +}; |