commit | c4e71f87351641a1f02d6c0d966bead1d8f851c4 | [log] [tgz] |
---|---|---|
author | Hall Liu <hallliu@google.com> | Fri Feb 26 17:32:48 2016 -0800 |
committer | Hall Liu <hallliu@google.com> | Tue Mar 08 18:29:53 2016 -0800 |
tree | a608d438e332899c632f7e7c579fad526672c112 | |
parent | cc21c7a4bbcdf66fb7d5f3f81d5bdf9b3845d729 [diff] |
Retry connectAudio if it returns false. Sometimes, when BluetoothManager#connectBluetoothAudio is called immediately after a bluetooth device connects, the HeadsetStateMachine in the bluetooth stack is not yet ready to accept commands, and therefore BluetoothHeadset#connectAudio returns false. This change adds a retry with 500ms backoff. Part of the fix for b/22507913 Bug: 22507913 Change-Id: I3084496c3af74687ea66c8558e20f1260420381c