summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
author William Escande <wescande@google.com> 2024-10-23 17:11:10 -0700
committer William Escande <wescande@google.com> 2024-11-01 12:29:41 -0700
commitc58264b1ab01e66a9e3e7aab99307708d1afef96 (patch)
tree518e468eea987537c8f603318ec7103a4db0c7f9 /common
parenteb64c56bb946e4634213b34d113f91de41c32851 (diff)
AICS: use aidl definition in java
Bug: 372328699 Flag: com.android.bluetooth.flags.aics_api Test: m Bluetooth Change-Id: I058961dcf9f33f1280fa2c112a323c09e106dbe4
Diffstat (limited to 'common')
-rw-r--r--common/Android.bp15
-rw-r--r--common/bluetooth/constants/aics/GainMode.aidl6
2 files changed, 21 insertions, 0 deletions
diff --git a/common/Android.bp b/common/Android.bp
index 9afdd9dcfc..900cc365d7 100644
--- a/common/Android.bp
+++ b/common/Android.bp
@@ -12,3 +12,18 @@ aidl_library {
],
visibility: ["//packages/modules/Bluetooth:__subpackages__"],
}
+
+// other java component doesn't know how to depend on an aidl_library
+java_library {
+ name: "bluetooth_constants_java",
+ srcs: [
+ "bluetooth/constants/AudioInputType.aidl",
+ "bluetooth/constants/aics/AudioInputStatus.aidl",
+ "bluetooth/constants/aics/GainMode.aidl",
+ "bluetooth/constants/aics/Mute.aidl",
+ ],
+ apex_available: ["com.android.btservices"],
+ min_sdk_version: "Tiramisu",
+ sdk_version: "module_current",
+ visibility: ["//packages/modules/Bluetooth:__subpackages__"],
+}
diff --git a/common/bluetooth/constants/aics/GainMode.aidl b/common/bluetooth/constants/aics/GainMode.aidl
index 97405e75d1..2f3516a290 100644
--- a/common/bluetooth/constants/aics/GainMode.aidl
+++ b/common/bluetooth/constants/aics/GainMode.aidl
@@ -18,6 +18,12 @@ package bluetooth.constants.aics;
/**
* See Audio Input Control Service 1.0 - 2.2.1.3. Gain_Mode field
+ * The Gain_Mode field shall be set to a value that reflects whether gain modes are manual
+ * or automatic.
+ * - Manual Only, the server allows only manual gain.
+ * - Automatic Only, the server allows only automatic gain.
+ *
+ * For all other Gain_Mode field values, the server allows switchable automatic/manual gain.
* {@hide}
*/
@JavaDerive(toString = true)