summaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothProfile.java
diff options
context:
space:
mode:
authorKyunglyul Hyun <klhyun@google.com>2022-01-17 19:04:19 +0900
committerKyunglyul Hyun <klhyun@google.com>2022-03-10 15:49:53 +0900
commit6ff7941a5fc7696d035c7569520a63b068075c54 (patch)
tree574add42c19c7f0674c7a7f5fdd1a5880e9f24cb /framework/java/android/bluetooth/BluetoothProfile.java
parent33d07faedee7bf1a696459fe489432798f04bb82 (diff)
bas: add Battery service profile support
This profile provides the battery level characteristic of the BLE device. Settings.Global."settings_bluetooth_battery" or "sys.fflag.override.settings_bluetooth_battery" should be set to enable the feature. (or the ProfileService doesn't start) Bug: 193631822 Tag: #feature Test: atest BatteryStateMachineTest BatteryServiceTest DatabaseManagerTest AdapterServiceTest && manually with BLE keyboard as well Change-Id: I5459218a3362e97f37128aa6bdf286ccbdbc8761
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothProfile.java')
-rw-r--r--framework/java/android/bluetooth/BluetoothProfile.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/framework/java/android/bluetooth/BluetoothProfile.java b/framework/java/android/bluetooth/BluetoothProfile.java
index 190cbf7f9c..78d0e136cf 100644
--- a/framework/java/android/bluetooth/BluetoothProfile.java
+++ b/framework/java/android/bluetooth/BluetoothProfile.java
@@ -267,12 +267,19 @@ public interface BluetoothProfile {
int LE_AUDIO_BROADCAST_ASSISTANT = 29;
/**
+ * Battery Service
+ *
+ * @hide
+ */
+ int BATTERY = 30;
+
+ /**
* Max profile ID. This value should be updated whenever a new profile is added to match
* the largest value assigned to a profile.
*
* @hide
*/
- int MAX_PROFILE_ID = 29;
+ int MAX_PROFILE_ID = 30;
/**
* Default priority for devices that we try to auto-connect to and