From 46f0869e440ec05086a4916b95855b865eeb085c Mon Sep 17 00:00:00 2001 From: Etienne Ruffieux Date: Wed, 22 Dec 2021 15:44:54 +0000 Subject: Migrating Bluetooth resources to Bluetooth module In order for the Bluetooth module to build as an apex all non-public resources must be located in the same package. Made getMaxConnectedAudioDevices system API in order for development Settings to access it. Removed isInbandRingingSupported as only usage was by bt service (config is now directly in service). Removed isBluetoothVoiceDialingEnabled as there were no usages, and no overlays. All configs used only by the Bluetooth app are moved to the Bluetooth module. Tag: #feature Bug: 211570675 Test: build Test: make RunSettingsRoboTests Change-Id: Ieed30c31fc44b5b477d43ae120ef11f96ab115ca --- framework/java/android/bluetooth/BluetoothAdapter.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'framework/java/android/bluetooth/BluetoothAdapter.java') diff --git a/framework/java/android/bluetooth/BluetoothAdapter.java b/framework/java/android/bluetooth/BluetoothAdapter.java index b70d268dee..8361eb1af3 100644 --- a/framework/java/android/bluetooth/BluetoothAdapter.java +++ b/framework/java/android/bluetooth/BluetoothAdapter.java @@ -2416,10 +2416,10 @@ public final class BluetoothAdapter { } /** - * Get the maximum number of connected audio devices. + * Get the maximum number of connected devices per audio profile for this device. * - * @return the maximum number of connected audio devices - * @hide + * @return the number of allowed simultaneous connected devices for each audio profile + * for this device, or -1 if the Bluetooth service can't be reached */ @RequiresLegacyBluetoothPermission @RequiresBluetoothConnectPermission @@ -2435,7 +2435,7 @@ public final class BluetoothAdapter { } finally { mServiceLock.readLock().unlock(); } - return 1; + return -1; } /** -- cgit v1.2.3