History log of /frameworks/base/core/java/android/server/BluetoothBondState.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
89d55ad781c6f1eba77342c89136dce41a7de72a 16-Aug-2011 Jaikumar Ganesh <jaikumar@google.com> Fix stuck in pairing when BT is turned off.

When pairing is stuck, on turning BT off, we were
not setting the outgoing parining variable to null in
setBondState because of the extra check for isEnabled.

isEnabled check was added to prevent the proxy crash in
setProfilePriorities function. Proxies should never be null.
Add a safety check and also some extra logs to debug the problem.

Change-Id: I694dfeb8fa9426b3916775ca868c2313fa9c22ee
/frameworks/base/core/java/android/server/BluetoothBondState.java
bc85a087c9a6011743d808d4bf90bd98d31aae90 10-Aug-2011 Jaikumar Ganesh <jaikumar@google.com> Check for BT state when sending Bond State Change intent.

When users use application specific Bluetooth state changes,
and the bond state changes, we crash.

We need to recheck Bluetooth state in all functions and scenarios
and even maintain a per application pid Bluetooth state, but this fix
is quick fix for a problem.

Change-Id: I905dfb53965907ccb27757ff6ed1816536277f14
/frameworks/base/core/java/android/server/BluetoothBondState.java
8594394aadeaaa3f834d33d7b198fb071e0f31fe 30-Jul-2011 Matthew Xie <mattx@google.com> Move mBluetoothService.runBluetooth after broadcasting the STATE_ON intent.

This is because broadcastState method move the Bluetooth adapter state
to ON. The mBluetoothService.runBluetooth should be called only in the ON state.
Remove mIsDiscovering variable in BluetoothService.
Fix a bug in BluetoothA2dpService that caused 2 times of state change
from DISCONNECTED to CONNECTING that messed up BluetoothService's
connection state count.
Change-Id: Ifb782a845ae70f007d2e036d930bb55f445d68b5
/frameworks/base/core/java/android/server/BluetoothBondState.java
d3728cb32fbd0a85bc77f4bcbdfea386ede2c75f 20-Jul-2011 Jaikumar Ganesh <jaikumar@google.com> Incoming connection dialog tweaks.

Don't show incoming connection dialog when the device shows
the pairing dialog - this means that the device has already been
trusted by the user.

Change-Id: I98a9f56528f6b62d0f824bbc7612aaa0077ba1e6
/frameworks/base/core/java/android/server/BluetoothBondState.java
a0c680393f2dd03a937c598b2cb9abf98a58152c 26-Jun-2011 Matthew Xie <mattx@google.com> Incoming Bluetooth Connection requests - dialog.

This sends the intents to the Settings app to show
the dialogs for the incoming connection requests.
Includes down merged contributions from Jaikumar Ganesh.

Change-Id: Ic8b857aad3554315aae39a0e871eb94d0ac98a91
/frameworks/base/core/java/android/server/BluetoothBondState.java
c73dd732c962238330cc2e5538a88bffbbb40fe8 28-Jun-2011 Jaikumar Ganesh <jaikumar@google.com> Fix crash while device is pairing / unpairing.

When there are no paired devices, pairing a new device
will cause a crash since the profile proxies will be null.

Change-Id: Ie1a9fd198e46d7e9cc2ba1b2f3a806b3c709f568
/frameworks/base/core/java/android/server/BluetoothBondState.java
78ff1a658b9eac751228ff64ca7f415a9a00e738 23-Jun-2011 Jaikumar Ganesh <jaikumar@google.com> Get the profile proxies after the BT Service is up.

Trying to get the profile proxies before service is up will
cause a NPE.

Change-Id: I604041d6823775abbc2fe10794afaac83d6827ce
/frameworks/base/core/java/android/server/BluetoothBondState.java
f7bc4bd13d630fedce6d14accfbc53345a4a438f 06-Jun-2011 Jaikumar Ganesh <jaikumar@google.com> Fix crash during unpair.

Change-Id: I8901abbbb6593b78fb5df93ab5d0085b32b6ba94
/frameworks/base/core/java/android/server/BluetoothBondState.java
abc3642d6c72051b8a5aadebcb39d4da2ea1bb42 06-Apr-2011 Matthew Xie <mattx@google.com> Set service priority of A2DP and Headset from BluetoothService via IPC call

We used to do the priority change in the 2 services after the broadcasted
intent reach them. But that left a small time gap that could reject
incoming connection due to undefined priorities.

Bug 4096186

Change-Id: I9bb6aedc7ed98c53a9b00c48eedd20b0cf5f1660
/frameworks/base/core/java/android/server/BluetoothBondState.java
9a62c9cd6585656f4e29ba971b1f88a510d674bd 09-Dec-2010 Jake Hamby <jhamby@google.com> Refactor android.server.BluetoothService classes.

Several cleanups to BluetoothService:
- Move BluetoothService.BondState inner class to top level.
- Extract adapter and remote device properties cache management
logic into two new classes: BluetoothAdapterProperties and
BluetoothDeviceProperties.
- Add getter methods for other classes in the package to access
the new properties cache objects for multi-part operations.
- Inline log() method in BluetoothService and selected the
appropriate Log method (Log.d, Log.w, Log.e) for each message.
- Refactor dump() method into smaller sized pieces.
- Clean up logic of updateCountersAndCheckForConnectionStateChange()
method for better readability.
- Change sendConnectionStateChange() to return instead of sending
an intent if the current or previous state values are invalid.
Previously the code sent an intent with -1 for the invalid state.
- Added Javadoc comments to document the methods that are called from
native Bluez code.
- Fixed some typos and code style issues.

Original Change by: Jake Hamby
Modified by: Jaikumar Ganesh

Change-Id: I76ebac00ecd29566dcb2d1ad3e7a486b7530ce24
/frameworks/base/core/java/android/server/BluetoothBondState.java