diff options
| author | 2021-10-11 20:04:54 +0000 | |
|---|---|---|
| committer | 2021-10-11 20:04:54 +0000 | |
| commit | 56d58ee593da5a6b6cb8306cd6bbcb2422ebff14 (patch) | |
| tree | f4579845303003b31508ce656b660bcbc8f8dc4b | |
| parent | 590544a1088c240238ece48f457b326066e682cc (diff) | |
| parent | 929d2e04ee59ea578ad214c6362808662d9906c0 (diff) | |
Merge "bluetooth: Set special delay for LeAudio auto connect" am: a457cb6f90 am: 929d2e04ee
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1830517
Change-Id: I16dced7a78151fc45cc7d3ae483863c1c4f75b1b
| -rw-r--r-- | packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java b/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java index 7ce9b516990e..243194188727 100644 --- a/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java +++ b/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java @@ -69,6 +69,7 @@ public class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice> // Some Hearing Aids (especially the 2nd device) needs more time to do service discovery private static final long MAX_HEARING_AIDS_DELAY_FOR_AUTO_CONNECT = 15000; private static final long MAX_HOGP_DELAY_FOR_AUTO_CONNECT = 30000; + private static final long MAX_LEAUDIO_DELAY_FOR_AUTO_CONNECT = 30000; private static final long MAX_MEDIA_PROFILE_CONNECT_DELAY = 60000; private final Context mContext; @@ -757,6 +758,8 @@ public class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice> timeout = MAX_HOGP_DELAY_FOR_AUTO_CONNECT; } else if (ArrayUtils.contains(uuids, BluetoothUuid.HEARING_AID)) { timeout = MAX_HEARING_AIDS_DELAY_FOR_AUTO_CONNECT; + } else if (ArrayUtils.contains(uuids, BluetoothUuid.LE_AUDIO)) { + timeout = MAX_LEAUDIO_DELAY_FOR_AUTO_CONNECT; } if (BluetoothUtils.D) { |