diff options
| author | Matthew Xie <mattx@google.com> | 2012-05-17 17:43:00 -0700 |
|---|---|---|
| committer | Matthew Xie <mattx@google.com> | 2012-05-17 17:43:00 -0700 |
| commit | 8b4ca7a1a9c8ea6f1cda126b1508226a580efafb (patch) | |
| tree | b648b4a41019a05f548e252693fe47bb3090164d /core/java/android/server | |
| parent | 9cb376e792567b5278e0eb418a3aeb848339a283 (diff) | |
Increase the setup-sdp delay to cover for all the devices.
20 ms worked well for GN hspa for stress test, but failed sometimes
for other platform. Increased it to 50ms. Tested on all the device types
bug 6438556
Change-Id: Ic5fcde3de7ea6d3d983edab7ae3df5684637bd20
Diffstat (limited to 'core/java/android/server')
| -rwxr-xr-x | core/java/android/server/BluetoothService.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/server/BluetoothService.java b/core/java/android/server/BluetoothService.java index 3cf207fd1dcc..97c0209850ca 100755 --- a/core/java/android/server/BluetoothService.java +++ b/core/java/android/server/BluetoothService.java @@ -530,7 +530,7 @@ public class BluetoothService extends IBluetooth.Stub { // Bluetooth stack needs a small delay here before adding // SDP records, otherwise dbus stalls for over 30 seconds 1 out of 50 runs try { - Thread.sleep(20); + Thread.sleep(50); } catch (InterruptedException e) {} updateSdpRecords(); return true; @@ -602,7 +602,7 @@ public class BluetoothService extends IBluetooth.Stub { // Bluetooth stack need some a small delay here before adding more // SDP records, otherwise dbus stalls for over 30 seconds 1 out of 50 runs try { - Thread.sleep(20); + Thread.sleep(50); } catch (InterruptedException e) {} if (R.getBoolean(com.android.internal.R.bool.config_bluetooth_default_profiles)) { |
