summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2020-11-19 02:13:49 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2020-11-19 02:13:49 +0000
commit532cc9ae0feddcc7b45557d2ebc3fda64c29b5d9 (patch)
tree71a2e24280af35ac71f51a0f8bb5a78fd876511e
parente7c58b4a7fdddbda2881b41498df752a9d16d716 (diff)
parent2bb7cfefbeaecabd1c8ebf47b99abb67b13953e2 (diff)
downloadinterfaces-532cc9ae0feddcc7b45557d2ebc3fda64c29b5d9.tar.gz
Snap for 6982267 from 2bb7cfefbeaecabd1c8ebf47b99abb67b13953e2 to sc-d1-release
Change-Id: I60e50007799e8db693aa1d67081dce0cd7af5dcf
-rw-r--r--bluetooth/bt_channel_avoidance/1.0/Android.bp11
-rw-r--r--bluetooth/bt_channel_avoidance/1.0/IBTChannelAvoidance.hal35
2 files changed, 46 insertions, 0 deletions
diff --git a/bluetooth/bt_channel_avoidance/1.0/Android.bp b/bluetooth/bt_channel_avoidance/1.0/Android.bp
new file mode 100644
index 0000000..fc92deb
--- /dev/null
+++ b/bluetooth/bt_channel_avoidance/1.0/Android.bp
@@ -0,0 +1,11 @@
+hidl_interface {
+ name: "hardware.google.bluetooth.bt_channel_avoidance@1.0",
+ root: "hardware.google",
+ srcs: [
+ "IBTChannelAvoidance.hal",
+ ],
+ interfaces: [
+ "android.hidl.base@1.0",
+ ],
+ gen_java: true,
+}
diff --git a/bluetooth/bt_channel_avoidance/1.0/IBTChannelAvoidance.hal b/bluetooth/bt_channel_avoidance/1.0/IBTChannelAvoidance.hal
new file mode 100644
index 0000000..cc80d15
--- /dev/null
+++ b/bluetooth/bt_channel_avoidance/1.0/IBTChannelAvoidance.hal
@@ -0,0 +1,35 @@
+/*
+ * 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.bt_channel_avoidance@1.0;
+
+interface IBTChannelAvoidance {
+ /**
+ * API to set Bluetooth channel map.
+ *
+ * This API must be invoked whenever channels map of Bluetooth need to
+ * changed because Bluetooth channels have conflict with wifi or cellular.
+ *
+ * @param channelMap The lower 79 bits of the 80-bit parameterrepresents
+ * the status of 79 channels. 0 means the channel is bad and 1 means
+ * unknown. The most significant bit (bit 79) is reserved for future
+ * use.
+ */
+ oneway setBluetoothChannelStatus(uint8_t[10] channelMap);
+};