summaryrefslogtreecommitdiff
path: root/core/java/android/bluetooth/BluetoothDeviceProfileState.java
Commit message (Collapse)AuthorAgeFilesLines
* Delete various Bluetooth files for stack integration.Jaikumar Ganesh2012-07-131-1357/+0
|
* Enhance StateMachine Quitting and logging support.Wink Saville2012-05-291-20/+28
| | | | | | | | | | | | | | | | | | Make StateMachine#quit non-conditional and remove the need to process the SM_QUIT_CMD it is now private. Rename halting to onHalting. Add onQuitting Change the message specific logging to be more generic and change the xxxProcessedMessagesYyy methods to xxxLogRecXyy names. Also add addLogRec(String) and addLogRec(String, State) as the generic logging methods. bug: 5678189 Change-Id: I22f66d11828bfd70498db625fe1be728b90478b7
* Cleanup references when turning BT off.Jaikumar Ganesh2011-11-281-3/+25
| | | | | Bug: 5572649 Change-Id: I62f9e0620832b69995d5c6e1c24634c9a3895a4b
* Send CONNECT_OTHER_PROFILE to Device profile for hfp and a2dp incoming connectMatthew Xie2011-11-111-1/+1
| | | | | | | | | | | | 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
* Fix auto connection of headset profile.Jaikumar Ganesh2011-10-261-2/+8
| | | | | | | | | 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
* Fix issue 5252593: any app can restart the runtimeEric Laurent2011-09-021-1/+1
| | | | | | Replace null device address string by empty sting. Change-Id: I285c35f3345334e6d2190493b1a8a5aca1a361a4
* Fix tethering using BT.Jaikumar Ganesh2011-08-021-2/+2
| | | | | | | | | 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
* Incoming connection dialog tweaks.Jaikumar Ganesh2011-07-201-14/+32
| | | | | | | | 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
* Incoming Bluetooth Connection requests - dialog.Matthew Xie2011-07-071-11/+264
| | | | | | | | 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
* am 64c42cae: Rename HierarchicalStateMachine and HierarchicalState to ↵Wink Saville2011-04-181-24/+24
|\ | | | | | | | | | | | | StateMachine and State. * commit '64c42cae4482fe0157e977b8ddd0f2c2436b3f31': Rename HierarchicalStateMachine and HierarchicalState to StateMachine and State.
| * Rename HierarchicalStateMachine and HierarchicalState to StateMachine and State.Wink Saville2011-04-181-24/+24
| | | | | | | | Change-Id: Ib4b33894da75f5f156066092fb145b478e52f7d7
* | am b8332786: am d973bed3: Merge "Removing dead store; it was likely a relict ↵Brad Fitzpatrick2011-03-171-1/+0
|\ \ | |/ |/| | | | | | | | | of debuging code." * commit 'b8332786e3ac6d58504a7c3128e94e63255b3515': Removing dead store; it was likely a relict of debuging code.
| * Removing dead store; it was likely a relict of debuging code.Jozef BABJAK2011-03-171-1/+0
| | | | | | | | Change-Id: I4daab1359d7c4b300ef61e3de1578d9fecb6f8da
| * Do Not Merge Connect other profiles when priority is auto connect.Jaikumar Ganesh2011-01-211-5/+9
| | | | | | | | | | | | | | | | | | | | 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
| * DO NOT MERGE: Remove auto connection on ACL connection.Jaikumar Ganesh2011-01-121-4/+0
| | | | | | | | | | | | | | | | There is no need for this and causes problems with certian cars. Fixes bug: 3281016 Change-Id: Idb65bbd4c8573923ebf82195b828ae071cb20aef
| * DO NOT MERGE Fix auto connection with headsets which don't send incomingJaikumar Ganesh2010-10-271-4/+85
| | | | | | | | | | | | | | connections for all profiles. Bug: 3136095 Change-Id: I48f36b99f3f7619a6a18c6adc2057c9d6d23c3e3
* | Refactor android.server.BluetoothService classes.Jake Hamby2011-02-241-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Make BluetoothInputDevice inherit from BluetoothProfile.Jaikumar Ganesh2011-02-221-9/+9
| | | | | | | | | | | | This makes it in sync with BluetoothHeadset and BluetoothA2dp profiles. Change-Id: I3ddb1d18b04aacb173b7bc376bca21c277a6afe4
* | Connect other profiles when priority is auto connect.Jaikumar Ganesh2011-01-211-3/+7
| | | | | | | | | | | | | | | | | | | | 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
* | Fix bug in handling connect/disconnect multiple devices.Jaikumar Ganesh2011-01-131-3/+3
| | | | | | | | | | | | | | | | | | Multiple HID devices can be connected. There is no pointing maintaining the global state. Check individual device state. Bug: 3350904 Change-Id: I03d9a6015e39e4f9d7f68cc8bbdb19731129b4e6
* | Remove auto connection on ACL connection.Jaikumar Ganesh2011-01-061-4/+0
| | | | | | | | | | | | | | | | | | 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
* | Remove delay with auto connection.Jaikumar Ganesh2010-12-131-4/+4
| | | | | | | | | | | | | | | | | | 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
* | Fix some formatting issues.Jaikumar Ganesh2010-11-241-2/+2
| | | | | | | | | | | | Review comments from a previous review. Change-Id: Ifa6136f9bc5590ffb6a777240ad1e6607b616ca6
* | Update BT code for voice capability cases.Jaikumar Ganesh2010-11-241-4/+4
| | | | | | | | | | | | | | 1. Disable PBAP and Headset / Handsfree records. 2. Add API to query for local adapter UUIDs. Change-Id: Ic84ba6a49738adc89a8695d3a4890f08562e0621
* | Disconnect PAN and Input devices on BT disable.Jaikumar Ganesh2010-11-011-0/+1
| | | | | | | | | | | | Also, add a missing break. Change-Id: I228f80a4223de20e60d2f3828e3f63bdc14f5afc
* | Fix incoming connection problemJaikumar Ganesh2010-10-281-4/+82
| | | | | | | | | | | | | | This fixes the incoming auto connection of profiles with certain remote devices. Bug: 3136095 Change-Id: If26b5aa91403c0c7bd547e2970ee5bf2ac381416
* | Update BT APIs return type from Set to List.Jaikumar Ganesh2010-10-221-1/+1
| | | | | | | | Change-Id: Ia27220dd26cde13007f6938c830517ee7f6968ce
* | am a905d955: am a31cbd61: Merge "Remove STOPSHIP and reduce log spam." into ↵Jaikumar Ganesh2010-10-151-7/+7
|\| | | | | | | | | | | | | | | | | gingerbread Merge commit 'a905d9551103c5be465429ffeb0352b78058457e' * commit 'a905d9551103c5be465429ffeb0352b78058457e': Remove STOPSHIP and reduce log spam.
| * Remove STOPSHIP and reduce log spam.Jaikumar Ganesh2010-10-131-7/+7
| | | | | | | | | | | | | | We still need some logs, as it helped me fix the errant headset bug. Bug: 3095000 Change-Id: If12601430e6dc30490df1ff86fc3f9d4d455e6d5
* | resolved conflicts for merge of bbb90d13 to masterJaikumar Ganesh2010-10-151-4/+25
|\| | | | | | | Change-Id: I85de73f6e11e7547a006d41ca49021bca19af14b
| * Work around for errant headsets.Jaikumar Ganesh2010-10-131-4/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | am 373a6961: am 64f42803: Merge "Bluez doesn\'t handle disconnect while ↵Jaikumar Ganesh2010-10-141-1/+1
|\| | | | | | | | | | | | | | | | | connecting well. Defer the message." into gingerbread Merge commit '373a69614e534ae04dddd79c92933b6d8969fad7' * commit '373a69614e534ae04dddd79c92933b6d8969fad7': Bluez doesn't handle disconnect while connecting well.
| * Bluez doesn't handle disconnect while connecting well.Jaikumar Ganesh2010-10-121-1/+1
| | | | | | | | | | | | | | Defer the message. Bug: 3076404 Change-Id: Id62e1008346f492a85e714240a832a061def1786
| * DO NOT MERGE: Disconnect PBAP while disconnecting HFP profile.Jaikumar Ganesh2010-10-061-6/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Disconnect PBAP while disconnecting HFP profile.Jaikumar Ganesh2010-10-141-5/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Update code for new BT public APIs.Jaikumar Ganesh2010-09-281-50/+57
| | | | | | | | Change-Id: Id730fb6226db59f3a0416111c4790653c2fccb0b
* | Add HID to the state machine and add native call backs.Jaikumar Ganesh2010-07-211-7/+246
|/ | | | Change-Id: Ib9f3e476d4176bc04e23e7674dc54aa5a6417308
* Serialize all commands for a particular profile.Jaikumar Ganesh2010-06-071-0/+665
Change-Id: I843ea9ab0bb2372c8316e99e8c083a9939ad774a