History log of /packages/apps/Bluetooth/src/com/android/bluetooth/btservice/BondStateMachine.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a51c13ae7e6ce56922316a979aef570abafc9f3f 23-Sep-2014 Ariel Gertzenstein <agertzen@google.com> Set FLAG_RECEIVER_FOREGROUND when broadcasting
ACTION_PAIRING_REQUEST.

Bug: 17590080

Change-Id: I0a7cde5953f706a2b41b02878f0fdbd2d9e8ae35
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/BondStateMachine.java
fc9bed1b79edf77082f5baa21aa68d791a102ea4 05-Sep-2014 Edward Jee <edjee@google.com> Migrates PBAP and MAP access permission data from Settings to Bluetooth.

Currently, users' preference in phonebook and call history or message
access per each Bluetooth-paired device is stored in Settings application's
shared preferences.

However, some privileged applications other than Settings need to access
such data. So we decided to migrate the data from Settings application's
shared preferences to Bluetooth application's.

Bug: 17158953
Change-Id: I3808891cdcce84aa0d4df31f998c9f1240159d95
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/BondStateMachine.java
11b41d8123241ba8e693e21c4db308bacff23f57 29-Jul-2014 Mudumba Ananth <ananthm@broadcom.com> Pairing failed after 50 attempts

-> The issue was caused due to delayed message sent for
bond_state_changed_callback in BondStateMachine and RemoteDevices
was sending the pairing request(sspRequestcallback) intent to the Settings APP
before even the bond state is changed.
-> Moved the SSPRequestCallback and PinRequestCallback to BondStateMachine
to synchronize the above two callbacks using a single message
queue in the BondStateMachine message handler.
-> Changed the pending command state to accept the SSP_REQUEST
and PIN_REQUEST messages and send the intents.

Bug: 16560957
Change-Id: I8372bdd2e96aa09215f2f1e98d6eed4e892637e6
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/BondStateMachine.java
db681f3973bd8a088a878fd6f41d4330cdbc5522 05-Aug-2014 Andre Eisenbach <eisenbach@google.com> Add transport parameter to createBond() function (3/4)

Change-Id: Id3c59bcc8f9efb20fffdebaff34d6b2593f5e5ca
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/BondStateMachine.java
34409f35db6e9ca74f727e3fe92141388ae5b069 16-Jul-2013 Ganesh Ganapathi Batta <ganeshg@broadcom.com> Set profile priorities only after SDP completion

Set the profile priorities only after SDP completion.
Perform lookup and set profile priorities to ON, only for
profiles supported by bonded BT device.
CR BLTH02405767

Change-Id: I83fe6e772993b7c41c6a86f504d2b09ea38b2356

Conflicts:
src/com/android/bluetooth/btservice/AdapterService.java
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/BondStateMachine.java
03b8386de26ba6500af2d66687bff9b01f2cbbd7 06-Feb-2013 Ganesh Ganapathi Batta <ganeshg@broadcom.com> Initial version of BLE support for Bluedroid

Change-Id: I9579b3074bc4bc59dd45f71c0937e8879196555e
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/BondStateMachine.java
ede67c26e7b2564ea35db6d9b3027a269c150e13 24-Oct-2012 Zhihai Xu <zhihaixu@google.com> License of files Bluetooth package is not updated to ASL2

bug 7385618

Change-Id: I338fd87083387706f3b5f410c9592219bb8a1acb
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/BondStateMachine.java
bd704c741b8c523ad747214f6f0520ac3e2caf8f 17-Oct-2012 Zhihai Xu <zhihaixu@google.com> BT connection notification in not updated in status bar for second user
It is due to the system UI is always running as the first user. It can't receive
broadcast intent ACTION_CONNECTION_STATE_CHANGED and ACTION_BOND_STATE_CHANGED
from bluetooth service when We switch to second user. Also the system UI also
is running as uid 10055, which will also call function isEnabled, getState,
getBondedDevices, getAdapterConnectionState and getBondState in bluetooth service.
I allow these functions to be called by all the users.
I forget remove check for getBondState in my first patch set

bug 7333382

Change-Id: I57f39a722e78d6d2453ebfecaab043637fef4d9c
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/BondStateMachine.java
fd1da115cbf09b7dd9bca3c7d3a4fb816a835dc5 08-Oct-2012 Matthew Xie <mattx@google.com> Turn off dbg messages, be prepared for production build

bug 7174712

Change-Id: I58747ec6507da8ea8ae27a182b601aaf626ede42
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/BondStateMachine.java
6893668d1ccf0cc6361ef31ace52fedc2e37e35a 15-Sep-2012 Wink Saville <wink@google.com> Add StateMachine make methods.

StateMachines must be started before any messages are sent to them
otherwise an exception is thrown.

Bug: 7091976
Change-Id: I05315d45d4d6db42843442b7feb37c665cfabcab
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/BondStateMachine.java
ef39cada04683dd7ef7b68c89a8722f2ce635c28 06-Aug-2012 Ravi Nagarajan <nravi@broadcom.com> Add unbond reason to bond state change intent

HAL sends the status to indicate the reason for bonding failure, if any.
Add this to bond state change intent, so that the Settings app can
display the error dialong, if necessary.
bug 6936335

Change-Id: Ide7c9e497bbfc6428b60c7a6de6e01ca538edfb8
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/BondStateMachine.java
73d192095093759688cccc896714f71fcee218d8 08-Aug-2012 Matthew Xie <mattx@google.com> Merge "Fix for BT turn on/off issues: NPE, FD/thread leaks, ANR." into jb-mr1-dev
15d36984a79d6e35c659edb0efdf929f0b526bd5 01-Aug-2012 Fred <fredc@broadcom.com> Fix for BT turn on/off issues: NPE, FD/thread leaks, ANR.

This fix addresses numerous BT on/off issues found from the CTS test.
Fixed fD/pipe leak in various state machine Looper objects by calling quit() function.
Fixed cursor leak in AtPhonebook.
Change Pbap to stop the RFCOMM listener on the STATE_TURNING_OFF instead of STATE_OFF.
Removed several cleanup() methods causing NPE.
Reduced RFCOMM listener timeout from 3 seconds to 300ms between retry.
bug 6834336

Change-Id: I52423343d8f52f65294af0143f373871a9874d77
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/BondStateMachine.java
4f5430babbc5a8f870e5a578a4ea3452f41dd97a 01-Aug-2012 Ganesh Ganapathi Batta <ganeshg@broadcom.com> Implement Profile Auto connection logic

Implement Profile Auto connection logic (moved from Settings App )in Bluetooth APK
to avoid Auto connection not happening if the Settings App is not running
As part of this implementation following features are implemented
1. Auto connection initiation during BT on OFF
2. Profile Auto connection priority management
3. Connecting Missing profile logic
4. Initialize Profile Priorities on Bond State Change

Change-Id: I12b7c190e28f043b4b008c9b48ac7e13aaf178e6
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/BondStateMachine.java
4603dc081506452854023a1c6eacdfca468e0dc4 12-Jun-2012 Matthew Xie <mattx@google.com> comment out state machine quit call

Change-Id: I0d4f72d50cd981a3c334583948dc0563f0662662
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/BondStateMachine.java
179fd2512d1a93bbd2a1a3803f5764cb417fe4c9 11-Jun-2012 Kausik Sinnaswamy <kausik@broadcom.com> Add remote device while pairing without inquiry

Change-Id: Ia7d99075b196414b3ded117b323ca5295c2c0b73
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/BondStateMachine.java
2f9a79b2d545e1a8b50a0018456892a9934db99a 06-Jun-2012 Ravi Nagarajan <nravi@broadcom.com> Resolved incoming pairing/connection issue

Sending bond_state_changed and adapter_properties_cb concurrently was
causing a race condition, which resulted in the BOND_STATE_CHANGED intent not
being sent. This caused the Settings to not show the newly bonded
device. This has been resolved by letting BondStateMachine manage
the mBondedDevices

Change-Id: Ieba39602436370fd9a87c3aa938ff3bd724c68cf
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/BondStateMachine.java
c181b8b49f5ad5b49b33334a9ba8f342ddb3545c 14-May-2012 Kausik Sinnaswamy <kausik@broadcom.com> Fix to ensure that we are able to pair with a device that was just unpaired. The fix was to clear a boolean variable which was causing some stale data to be maintained

Change-Id: Iaad0e21794b0b6e47d12c837ef36e026b6ece655
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/BondStateMachine.java
74ae04c73312403e89db0f8e9bd9601d403b4783 07-May-2012 fredc <fredc@broadcom.com> Fixed memory leak in Binder objects from repeatedly turning on/off Bluetooth

Change-Id: Ibee5382816d47b1e9b846461942a9daccc4210a7
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/BondStateMachine.java
31ba132491053bc86d419a7d51fc04af3299c076 26-Apr-2012 fredc <fredc@broadcom.com> Fixed Bluetooth on/off issues. Removed singleton instances causing issues when services reload. Updated adapter state machine

Change-Id: Ie1ff4284f507c7da102569f3c0acfd55612a5f6b
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/BondStateMachine.java
7aab11364743cbca6eeefecbbde19f0434aff362 24-Apr-2012 fredc <fredc@broadcom.com> Fixed exception in BondStateMachine when quit message occurs. Fixed exception in OPP when remote does not accept incoming request.

Change-Id: Ibb43a26ee0ac62967518468d243880a0af987ba0
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/BondStateMachine.java
b5cc776c9353a203cdde97e62b25f05d9633d14c 19-Apr-2012 fredc <fredc@broadcom.com> Fixed BT on/off issue

Change-Id: I47cbac9fc694d5604a664f20170eeed90eeee8e6

Conflicts:

jni/com_android_bluetooth_btservice_AdapterService.cpp
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/BondStateMachine.java
6654f5c903de510a70f9e72cd5ad7837b615d93f 12-Apr-2012 fredc <fredc@broadcom.com> Non persistent adapter service

Change-Id: I65e1c18e2899cea0a1e5c0102c4d24d39dce0249

Conflicts:

jni/com_android_bluetooth_hdp.cpp
jni/com_android_bluetooth_hid.cpp

Conflicts:

jni/com_android_bluetooth_hid.cpp
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/BondStateMachine.java
aa90f0cbb860434c5310ae6bfa16987834f582f0 11-Apr-2012 Priti Aghera <paghera@broadcom.com> Patch to fix getBondedDevices and inconsistent pair state

Change-Id: Idaf2a18dcaaaca422d3d5ee9245dbfa75cbbb96c
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/BondStateMachine.java
986b5b03a378385bfea6c5cc6b6c1d7f0424e0a5 09-Mar-2012 Ravi Nagarajan <nravi@broadcom.com> Added new state BT_BOND_STATE_BONDING. Stack will send a callback for all three states, app does not have to rely on the api return code to switch to bonding. This addresses the incoming pairing as well as the remote unpaired test cases

Change-Id: I37208e5bae7264a0ff78195322ba0a6bd1d82f0f
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/BondStateMachine.java
b9122437dc3562f8306b1c8bc97124dc8c33ae45 07-Mar-2012 Jaikumar Ganesh <jaikumar@google.com> Fix Bond State Machine device list.

The device list was adding the device twice.
Note: This whole class should be removed and moved to
the stack.

Change-Id: I6086ee98bd1b4088a90b76f67a9fff21987f4b04
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/BondStateMachine.java
ff4f17bf64978d0738c66e1b6dd70be8664efc24 20-Dec-2011 Jaikumar Ganesh <jaikumar@google.com> Initial commit for new Bluetooth stack interface.

1. Changes to Android.mk file
2. changes to make the process persistent. This is temporary.
3. Addition of new java and jni classes.

Change-Id: I2453c7a1a475c66bf52f3a84cd8beb12dd37b87a
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/BondStateMachine.java