diff options
author | Etienne Ruffieux <eruffieux@google.com> | 2022-01-25 15:21:02 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2022-01-25 15:21:02 +0000 |
commit | 803a18d615e6493a79770b0e8465b53464ac32a5 (patch) | |
tree | 5566317401739c5b13982a07121da9502b1bb296 /framework/java | |
parent | da2dd5b797712b0ad503d6d6981eb7c3c59954e2 (diff) | |
parent | cd8180a3411a048886df64d8a96b13d8efebf245 (diff) |
Migrating Bluetooth resources to Bluetooth module am: 46f0869e44 am: 41f1eda6e5 am: 2b17efdfab am: cd8180a341
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/1931007
Change-Id: I57b927ec983e8906fcda0f9cc7a4407906e55d1c
Diffstat (limited to 'framework/java')
-rw-r--r-- | framework/java/android/bluetooth/BluetoothAdapter.java | 8 | ||||
-rw-r--r-- | framework/java/android/bluetooth/BluetoothHeadset.java | 21 |
2 files changed, 4 insertions, 25 deletions
diff --git a/framework/java/android/bluetooth/BluetoothAdapter.java b/framework/java/android/bluetooth/BluetoothAdapter.java index f302da12a8..1700254ba7 100644 --- a/framework/java/android/bluetooth/BluetoothAdapter.java +++ b/framework/java/android/bluetooth/BluetoothAdapter.java @@ -2397,10 +2397,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 @@ -2416,7 +2416,7 @@ public final class BluetoothAdapter { } finally { mServiceLock.readLock().unlock(); } - return 1; + return -1; } /** diff --git a/framework/java/android/bluetooth/BluetoothHeadset.java b/framework/java/android/bluetooth/BluetoothHeadset.java index 91449df0f4..f4fcf1dff6 100644 --- a/framework/java/android/bluetooth/BluetoothHeadset.java +++ b/framework/java/android/bluetooth/BluetoothHeadset.java @@ -887,16 +887,6 @@ public final class BluetoothHeadset implements BluetoothProfile { return defaultValue; } - /** - * Indicates if current platform supports voice dialing over bluetooth SCO. - * - * @return true if voice dialing over bluetooth is supported, false otherwise. - * @hide - */ - public static boolean isBluetoothVoiceDialingEnabled(Context context) { - return context.getResources().getBoolean( - com.android.internal.R.bool.config_bluetooth_sco_off_call); - } /** @hide */ @Retention(RetentionPolicy.SOURCE) @@ -1450,17 +1440,6 @@ public final class BluetoothHeadset implements BluetoothProfile { return defaultValue; } - /** - * Check if in-band ringing is supported for this platform. - * - * @return true if in-band ringing is supported, false if in-band ringing is not supported - * @hide - */ - public static boolean isInbandRingingSupported(Context context) { - return context.getResources().getBoolean( - com.android.internal.R.bool.config_bluetooth_hfp_inband_ringing_support); - } - @SuppressLint("AndroidFrameworkBluetoothPermission") private final IBluetoothProfileServiceConnection mConnection = new IBluetoothProfileServiceConnection.Stub() { |