OSDN Git Service

Add a new priority for Auto Connection of A2DP.
authorJaikumar Ganesh <jaikumar@google.com>
Fri, 20 Nov 2009 23:21:47 +0000 (15:21 -0800)
committerJaikumar Ganesh <jaikumar@google.com>
Tue, 24 Nov 2009 23:05:37 +0000 (15:05 -0800)
commitaafff8a06900938ccf2717ab9ba7b664c5948eb0
treee8c287c1e47d32c43347bd897e827ffb74bc38cc
parent1e22cffa1d7299e725ec2a16689901aaa5790922
Add a new priority for Auto Connection of A2DP.

1. PRIORITY_OFF is when user unchecks A2DP connection profile box.
2. By default, when you bond, it will be PRIORITY_ON.
3. When the profile gets connected, the priority gets set to
   PRIORITY_AUTO_CONNECT. This means that we will connect
   automatically to this profile.
4. When the user disconnects, we downgrade the priority to PRIORITY_ON,
   which means we won't reconnect automatically.

a) We need to make a similar change to Handsfree profile.
b) We need to rework the profile management design and code which
  will fix the 6 second timer that we have for A2DP reconnection.
core/java/android/bluetooth/BluetoothA2dp.java
core/java/android/server/BluetoothA2dpService.java