History log of /frameworks/base/core/java/android/bluetooth/BluetoothDeviceProfileState.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
9bb275197df8eb999eab4cdd0a2aff83c2bb2ef6 28-Nov-2011 Jaikumar Ganesh <jaikumar@google.com> Cleanup references when turning BT off.

Bug: 5572649
Change-Id: I62f9e0620832b69995d5c6e1c24634c9a3895a4b
/frameworks/base/core/java/android/bluetooth/BluetoothDeviceProfileState.java
98f06da8ed2851a768358de1979838ad1bb6d187 10-Nov-2011 Matthew Xie <mattx@google.com> Send CONNECT_OTHER_PROFILE to Device profile for hfp and a2dp incoming connect

Send CONNECT_OTHER_PROFILE to Device profile for low priority hfp and a2dp
incoming connect. In the case when HFP autoconnect is off but a2dp autoconnect
is on, if HF autoconnect to HFP, phone will reject HFP but connect a2dp.
Before this fix, phone reject HFP. A2dp will not get connected unless the HF do
media auto-connect, which most carkits do not do.
Also do similar change for incoming a2dp connection
bug 5091838

Change-Id: Ife1815f527bcd94e0d9ffc645028484fa9c49a43
/frameworks/base/core/java/android/bluetooth/BluetoothDeviceProfileState.java
6ae591217591e7f3e7de20b71f89d2ee9c8dc8bb 27-Oct-2011 Jaikumar Ganesh <jaikumar@google..com> Fix auto connection of headset profile.

Sometimes when headset service doesn't get bound, the auto
connection fails.

Based on a patch by: Chunho Park <chun.ho.park@samsung.com>

Change-Id: Ia24613b47487717f51895953c7e8bc52abffecb5
/frameworks/base/core/java/android/bluetooth/BluetoothDeviceProfileState.java
dca56b9432e2cc851d1a58920071fed2e1e3d142 02-Sep-2011 Eric Laurent <elaurent@google.com> Fix issue 5252593: any app can restart the runtime

Replace null device address string by empty sting.

Change-Id: I285c35f3345334e6d2190493b1a8a5aca1a361a4
/frameworks/base/core/java/android/bluetooth/BluetoothDeviceProfileState.java
bbd86750570ff75e428b3810dc2e65db558c14b2 02-Aug-2011 Jaikumar Ganesh <jaikumar@google.com> Fix tethering using BT.

1. Since Input device runs in Bluetooth Service, avoid the proxy call.
2. Accept or reject incoming tethering connections.

This broke because of incoming connection request change for phonebook, HID,
A2DP.
Change-Id: Ia8c537bb79e4dbc66cfb6b23dcad4f99dbf950b3
/frameworks/base/core/java/android/bluetooth/BluetoothDeviceProfileState.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/bluetooth/BluetoothDeviceProfileState.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/bluetooth/BluetoothDeviceProfileState.java
37677849998e6c9a39afe0a730b2f0131a371f3b 19-Apr-2011 Wink Saville <wink@google.com> am 64c42cae: Rename HierarchicalStateMachine and HierarchicalState to StateMachine and State.

* commit '64c42cae4482fe0157e977b8ddd0f2c2436b3f31':
Rename HierarchicalStateMachine and HierarchicalState to StateMachine and State.
64c42cae4482fe0157e977b8ddd0f2c2436b3f31 18-Apr-2011 Wink Saville <wink@google.com> Rename HierarchicalStateMachine and HierarchicalState to StateMachine and State.

Change-Id: Ib4b33894da75f5f156066092fb145b478e52f7d7
/frameworks/base/core/java/android/bluetooth/BluetoothDeviceProfileState.java
8698c91204d56ea52a4393cd8cf91c9a3a49c4c8 17-Mar-2011 Brad Fitzpatrick <bradfitz@android.com> am b8332786: am d973bed3: Merge "Removing dead store; it was likely a relict of debuging code."

* commit 'b8332786e3ac6d58504a7c3128e94e63255b3515':
Removing dead store; it was likely a relict of debuging code.
f1aa297b1788fa4210a3850080e2f632025909c0 22-Feb-2011 Jozef BABJAK <jozef.babjak@gmail.com> Removing dead store; it was likely a relict of debuging code.

Change-Id: I4daab1359d7c4b300ef61e3de1578d9fecb6f8da
/frameworks/base/core/java/android/bluetooth/BluetoothDeviceProfileState.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/bluetooth/BluetoothDeviceProfileState.java
4ab0e7746fe74a9e4d75d374f73b7af87420b2f6 18-Feb-2011 Jaikumar Ganesh <jaikumar@google.com> Make BluetoothInputDevice inherit from BluetoothProfile.

This makes it in sync with BluetoothHeadset and BluetoothA2dp profiles.

Change-Id: I3ddb1d18b04aacb173b7bc376bca21c277a6afe4
/frameworks/base/core/java/android/bluetooth/BluetoothDeviceProfileState.java
a8d18865a48932158270d59cd46f8d95bdbfbe5a 22-Jan-2011 Jaikumar Ganesh <jaikumar@google.com> Connect other profiles when priority is auto connect.

ACL auto connection was removed so other profiles
won't auto connect when priority was auto connect.

Reduced connect other profiles time delay.

Bug: 3281016
Change-Id: I8d98fd0d9bace193d619d7f241fff22f07e3e935
/frameworks/base/core/java/android/bluetooth/BluetoothDeviceProfileState.java
40e6c210f88bfde3f5bc0faa93de0910f1a8181b 22-Jan-2011 Jaikumar Ganesh <jaikumar@google.com> Do Not Merge Connect other profiles when priority is auto connect.

ACL auto connection was removed so other profiles
won't auto connect when priority was auto connect.

Reduced connect other profiles time delay.

Bug: 3281016
Change-Id: Ic56ca6e95f618f02bc316d1f80014e58c4b6c3bc
/frameworks/base/core/java/android/bluetooth/BluetoothDeviceProfileState.java
d1287f5ef091bd41ec902d6a83284db21a4dcabb 14-Jan-2011 Jaikumar Ganesh <jaikumar@google.com> Fix bug in handling connect/disconnect multiple devices.

Multiple HID devices can be connected. There is no pointing
maintaining the global state. Check individual device state.

Bug: 3350904

Change-Id: I03d9a6015e39e4f9d7f68cc8bbdb19731129b4e6
/frameworks/base/core/java/android/bluetooth/BluetoothDeviceProfileState.java
d50ac2966edd9c58d8026a624fd795bf54311158 07-Jan-2011 Jaikumar Ganesh <jaikumar@google.com> DO NOT MERGE: Remove auto connection on ACL connection.

There is no need for this and causes problems with certian cars.

Fixes bug: 3281016

Change-Id: Idb65bbd4c8573923ebf82195b828ae071cb20aef
/frameworks/base/core/java/android/bluetooth/BluetoothDeviceProfileState.java
ef28e7eb527b0e4beffe9788b105e57e9675e352 07-Jan-2011 Jaikumar Ganesh <jaikumar@google.com> Remove auto connection on ACL connection.

There is no need for this and causes problems with HID.
Its the reponsibility of the remote device to initiate connection
when back in range.

Fixes bug: 3282682
Change-Id: I9fed15d4ce0ae4539059001db54cc302a55e2015
/frameworks/base/core/java/android/bluetooth/BluetoothDeviceProfileState.java
2d1fc4e3f5eb612f9ef8a50080310ced1dfaaadf 14-Dec-2010 Jaikumar Ganesh <jaikumar@google.com> Remove delay with auto connection.

SDP records are now registered with a dbus call so we don't have to wait
for initiating auto connections.

Also reduce time to connect other profiles case by 2 secs.

Change-Id: I8f0eab6a95d3bfaf11a8eb7495a024949639d7fc
/frameworks/base/core/java/android/bluetooth/BluetoothDeviceProfileState.java
1c96a00685f48aaa7cbe1ea03b4f031089631e89 24-Nov-2010 Jaikumar Ganesh <jaikumar@google.com> Fix some formatting issues.

Review comments from a previous review.

Change-Id: Ifa6136f9bc5590ffb6a777240ad1e6607b616ca6
/frameworks/base/core/java/android/bluetooth/BluetoothDeviceProfileState.java
58b93c36409c7fb91a644605f004b6d247d9b540 24-Nov-2010 Jaikumar Ganesh <jaikumar@google.com> Update BT code for voice capability cases.

1. Disable PBAP and Headset / Handsfree records.
2. Add API to query for local adapter UUIDs.

Change-Id: Ic84ba6a49738adc89a8695d3a4890f08562e0621
/frameworks/base/core/java/android/bluetooth/BluetoothDeviceProfileState.java
7a0f816916abb200d9337a5afde5d6d2a637a20a 01-Nov-2010 Jaikumar Ganesh <jaikumar@google.com> Disconnect PAN and Input devices on BT disable.

Also, add a missing break.

Change-Id: I228f80a4223de20e60d2f3828e3f63bdc14f5afc
/frameworks/base/core/java/android/bluetooth/BluetoothDeviceProfileState.java
470132509f698f36290535238c5369482e98d569 28-Oct-2010 Jaikumar Ganesh <jaikumar@google.com> Fix incoming connection problem

This fixes the incoming auto connection of profiles with certain remote devices.

Bug: 3136095
Change-Id: If26b5aa91403c0c7bd547e2970ee5bf2ac381416
/frameworks/base/core/java/android/bluetooth/BluetoothDeviceProfileState.java
28967499d7433f2cc498e7432707e2d5991a408a 28-Oct-2010 Jaikumar Ganesh <jaikumar@google.com> DO NOT MERGE Fix auto connection with headsets which don't send incoming
connections for all profiles.

Bug: 3136095
Change-Id: I48f36b99f3f7619a6a18c6adc2057c9d6d23c3e3
/frameworks/base/core/java/android/bluetooth/BluetoothDeviceProfileState.java
5a1e4cf83f5be1b5d79e2643fa791aa269b6a4bc 19-Oct-2010 Jaikumar Ganesh <jaikumar@google.com> Update BT APIs return type from Set to List.

Change-Id: Ia27220dd26cde13007f6938c830517ee7f6968ce
/frameworks/base/core/java/android/bluetooth/BluetoothDeviceProfileState.java
db3694d03068aca596feee7326d3c14eb71d8dc9 15-Oct-2010 Jaikumar Ganesh <jaikumar@google.com> am a905d955: am a31cbd61: Merge "Remove STOPSHIP and reduce log spam." into gingerbread

Merge commit 'a905d9551103c5be465429ffeb0352b78058457e'

* commit 'a905d9551103c5be465429ffeb0352b78058457e':
Remove STOPSHIP and reduce log spam.
72cd64b20ed7118a6c0ed12f4924659abb5dcd0d 15-Oct-2010 Jaikumar Ganesh <jaikumar@google.com> resolved conflicts for merge of bbb90d13 to master

Change-Id: I85de73f6e11e7547a006d41ca49021bca19af14b
c8e87e3ce64bc623b856c12cc63e4a46029da743 15-Oct-2010 Jaikumar Ganesh <jaikumar@google.com> am 373a6961: am 64f42803: Merge "Bluez doesn\'t handle disconnect while connecting well. Defer the message." into gingerbread

Merge commit '373a69614e534ae04dddd79c92933b6d8969fad7'

* commit '373a69614e534ae04dddd79c92933b6d8969fad7':
Bluez doesn't handle disconnect while connecting well.
2beaf7316facf9230b79a0dec85266e0fb487e8f 15-Oct-2010 Jaikumar Ganesh <jaikumar@google.com> Disconnect PBAP while disconnecting HFP profile.

PBAP profile is associated with HFP profile. Disconnect PBAP
profile while disconnecting HFP profile. We ever never doing this
and were expecting the remote end to do it. So when the user
disconnects a headset, we will end up with the ACL link still up
because PBAP has not been disconnected.

This is little bit of a hack till PBAP profile is converted to
use the new profile APIs.

Change-Id: I04821daae6588955fbfea01472e6a1b6f9212608
/frameworks/base/core/java/android/bluetooth/BluetoothDeviceProfileState.java
bdb1d9320b49c286935b04e286ae41734b8f7237 14-Oct-2010 Jaikumar Ganesh <jaikumar@google.com> Remove STOPSHIP and reduce log spam.

We still need some logs, as it helped me fix the errant headset bug.

Bug: 3095000
Change-Id: If12601430e6dc30490df1ff86fc3f9d4d455e6d5
/frameworks/base/core/java/android/bluetooth/BluetoothDeviceProfileState.java
70a053bf1ba331d727e2fbfca8f39d96b3b324b4 14-Oct-2010 Jaikumar Ganesh <jaikumar@google.com> Work around for errant headsets.

1. Some headsets send an AVCTP connection before an AVDTP connection
When that AVCTP connection fails, we get stuck in IncomingA2DP state
because we don't handle AVCTP signals for now.
We need to handle the signals and fix it better.

2. Also when ACL gets disconnected, reset state i.e
when the low level connection disconnected reset our state.
This is like a fail safe in case we get stuck.

Bug: 3051490
Change-Id: Ibcf188103999ffb1e08c36c2554504c639fb7f50
/frameworks/base/core/java/android/bluetooth/BluetoothDeviceProfileState.java
adbda6f094bf957e2943f80ef63d4530f6fcfc5a 13-Oct-2010 Jaikumar Ganesh <jaikumar@google.com> Bluez doesn't handle disconnect while connecting well.
Defer the message.

Bug: 3076404
Change-Id: Id62e1008346f492a85e714240a832a061def1786
/frameworks/base/core/java/android/bluetooth/BluetoothDeviceProfileState.java
59453c947a2d4d64e2f4a4216a479cd33728439c 04-Oct-2010 Jaikumar Ganesh <jaikumar@google.com> DO NOT MERGE: Disconnect PBAP while disconnecting HFP profile.

PBAP profile is associated with HFP profile. Disconnect PBAP
profile while disconnecting HFP profile. We ever never doing this
and were expecting the remote end to do it. So when the user
disconnects a headset, we will end up with the ACL link still up
because PBAP has not been disconnected.

This is little bit of a hack till PBAP profile is converted to
use the new profile APIs.

Change-Id: I5f68b228fd5e607605928a52343ad4b86c58ac0b
/frameworks/base/core/java/android/bluetooth/BluetoothDeviceProfileState.java
96a79830ea1ae3ab3d6d3cce2bd1397fcd40ea0e 28-Sep-2010 Jaikumar Ganesh <jaikumar@google.com> Update code for new BT public APIs.

Change-Id: Id730fb6226db59f3a0416111c4790653c2fccb0b
/frameworks/base/core/java/android/bluetooth/BluetoothDeviceProfileState.java
de07503a382e81ba82f4cd4dee81ff2fbf3295bc 20-Jul-2010 Jaikumar Ganesh <jaikumar@google.com> Add HID to the state machine and add native call backs.

Change-Id: Ib9f3e476d4176bc04e23e7674dc54aa5a6417308
/frameworks/base/core/java/android/bluetooth/BluetoothDeviceProfileState.java
f1048cdb68d4e4671be2060ca31a3adfc613e88e 03-Jun-2010 Jaikumar Ganesh <jaikumar@google.com> Serialize all commands for a particular profile.

Change-Id: I843ea9ab0bb2372c8316e99e8c083a9939ad774a
/frameworks/base/core/java/android/bluetooth/BluetoothDeviceProfileState.java