diff options
author | Jaikumar Ganesh <jaikumar@google.com> | 2010-10-15 10:02:57 -0700 |
---|---|---|
committer | Jaikumar Ganesh <jaikumar@google.com> | 2010-10-15 10:02:57 -0700 |
commit | 72cd64b20ed7118a6c0ed12f4924659abb5dcd0d (patch) | |
tree | ea54a93ea25ad9dd2e1d4d2cee40665d17b58b08 /core/java/android/server/BluetoothEventLoop.java | |
parent | 97929aa9960cf72b9eb108a02fb6a7d6420e9ea6 (diff) | |
parent | bbb90d134a3f3a8561a6b3315b6944be939b3778 (diff) | |
download | frameworks_base-72cd64b20ed7118a6c0ed12f4924659abb5dcd0d.zip frameworks_base-72cd64b20ed7118a6c0ed12f4924659abb5dcd0d.tar.gz frameworks_base-72cd64b20ed7118a6c0ed12f4924659abb5dcd0d.tar.bz2 |
resolved conflicts for merge of bbb90d13 to master
Change-Id: I85de73f6e11e7547a006d41ca49021bca19af14b
Diffstat (limited to 'core/java/android/server/BluetoothEventLoop.java')
-rw-r--r-- | core/java/android/server/BluetoothEventLoop.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/core/java/android/server/BluetoothEventLoop.java b/core/java/android/server/BluetoothEventLoop.java index 4edc01f..cfbc2bd 100644 --- a/core/java/android/server/BluetoothEventLoop.java +++ b/core/java/android/server/BluetoothEventLoop.java @@ -596,7 +596,14 @@ class BluetoothEventLoop { authorized = mA2dp.getPriority(device) > BluetoothProfile.PRIORITY_OFF; if (authorized) { Log.i(TAG, "Allowing incoming A2DP / AVRCP connection from " + address); - mBluetoothService.notifyIncomingA2dpConnection(address); + // Some headsets try to connect AVCTP before AVDTP - against the recommendation + // If AVCTP connection fails, we get stuck in IncomingA2DP state in the state + // machine. We don't handle AVCTP signals currently. We only send + // intents for AVDTP state changes. We need to handle both of them in + // some cases. For now, just don't move to incoming state in this case. + if (!BluetoothUuid.isAvrcpTarget(uuid)) { + mBluetoothService.notifyIncomingA2dpConnection(address); + } } else { Log.i(TAG, "Rejecting incoming A2DP / AVRCP connection from " + address); } |