From c58264b1ab01e66a9e3e7aab99307708d1afef96 Mon Sep 17 00:00:00 2001 From: William Escande Date: Wed, 23 Oct 2024 17:11:10 -0700 Subject: AICS: use aidl definition in java Bug: 372328699 Flag: com.android.bluetooth.flags.aics_api Test: m Bluetooth Change-Id: I058961dcf9f33f1280fa2c112a323c09e106dbe4 --- common/Android.bp | 15 +++++++++++++++ common/bluetooth/constants/aics/GainMode.aidl | 6 ++++++ 2 files changed, 21 insertions(+) (limited to 'common') 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) -- cgit v1.2.3-59-g8ed1b