diff options
author | Kyunglyul Hyun <klhyun@google.com> | 2022-01-17 19:04:19 +0900 |
---|---|---|
committer | Kyunglyul Hyun <klhyun@google.com> | 2022-03-10 15:49:53 +0900 |
commit | 6ff7941a5fc7696d035c7569520a63b068075c54 (patch) | |
tree | 574add42c19c7f0674c7a7f5fdd1a5880e9f24cb /framework/java/android/bluetooth/BluetoothUuid.java | |
parent | 33d07faedee7bf1a696459fe489432798f04bb82 (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/BluetoothUuid.java')
-rw-r--r-- | framework/java/android/bluetooth/BluetoothUuid.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/framework/java/android/bluetooth/BluetoothUuid.java b/framework/java/android/bluetooth/BluetoothUuid.java index 7847718c5d..c77b981d35 100644 --- a/framework/java/android/bluetooth/BluetoothUuid.java +++ b/framework/java/android/bluetooth/BluetoothUuid.java @@ -197,6 +197,10 @@ public final class BluetoothUuid { ParcelUuid.fromString("00001853-0000-1000-8000-00805F9B34FB"); /** @hide */ @NonNull + public static final ParcelUuid BATTERY = + ParcelUuid.fromString("0000180F-0000-1000-8000-00805F9B34FB"); + /** @hide */ + @NonNull @SystemApi public static final ParcelUuid BASS = ParcelUuid.fromString("0000184F-0000-1000-8000-00805F9B34FB"); |