12 Commits

Author SHA1 Message Date
Venkat Raghavan
05e08c3a2f Bluetooth: Do not initiate inquiry during pairing/SDP
Retry SDP if it gets cancelled in BONDING state.
If SDP search initiated after the pairing gets cancelled, re-initiate
SDP search from the BTIF layer to ensure completion of the bonding
process.

While pairing/SDP discovery of the bonded device is in progress,
do not initiate inquiry.

Bug: 19417758
Change-Id: I2d80883999771c53b58cc3017a63b17e3564bc57
2015-04-06 16:27:09 -07:00
Etan Cohen
50d4761830 Merge (manually) pag/209446: Increase allowed duration to connect to HOGP profile
Original file was moved from packages/apps/Settings to frameworks/base.

Change-Id: I26912c0461780a255281a135c60cc0da2d25ae5a
2015-04-01 09:32:40 -07:00
Jason Monk
78981e0393 Merge "Make QS use SettingsLib's BT code" 2015-03-12 14:23:51 +00:00
Jason Monk
be3c5dbee6 Make QS use SettingsLib's BT code
A couple of changes needed to be made to SettingsLib to support this.
 - SettingsLib needed to track ACTION_CONNECTION_STATE_CHANGED
 - The summary code needed to move from Settings up into SettingsLib
 - Added a getMaxConnectionState to CachedBluetoothDevice
    - This simplifies the states of all of the profiles into
      one.

Change-Id: I7f828f0038ad0cf39274986ece6d486d545f0286
2015-03-02 10:40:21 -05:00
John Spurlock
08c7116ab9 Remove unused imports in frameworks/base.
Change-Id: I031443de83f93eb57a98863001826671b18f3b17
2015-02-28 14:47:49 -05:00
Jason Monk
08238bb624 Merge "Move non-ui bt settings code to SettingsLib" 2015-02-24 13:23:31 +00:00
Jason Monk
fb66b8ff48 Merge "Some Tethering code to SettingsLib and use in QS" 2015-02-24 13:16:27 +00:00
Jason Monk
95f03c4170 Some Tethering code to SettingsLib and use in QS
Change-Id: I640c84d4e42d2f1955db8cd6e473b6acac64dd39
2015-02-12 10:33:31 -05:00
Jason Monk
6572eae9d2 Fix crash in Wifi QS Panel
When open QS wifi panel while wifi was off was causing a crash from
wifi enabling while the WifiTracker was not in a scanning state.
Fix plus a test enclosed.

Bug: 19322090
Change-Id: Id863cdcbf4aa8d50822de3a200355dbaee74b488
2015-02-10 13:58:40 +00:00
Jason Monk
7ce96b9e61 Move non-ui bt settings code to SettingsLib
Mostly this is moving classes from Settings to SettingsLib but there
were a few changes to support this separation.
 - A bunch of things became public rather than package
 - Moved some settings only code out of these classes
 - Added error callback to handle errors

To see the changes from original classes view the diff against
patch-set 1.

Bug: 19180466
Change-Id: I69fd888362c6dbb325f6113b32c4b15cc6a23a41
2015-02-05 10:43:26 -05:00
Jason Monk
d52356aa5e Move Settings wifi tracking to SettingsLib
Make SettingsLib capable of tracking which wifi networks are
available/saved and their state.

Also modify Quick Settings to use this code rather than having
its own logic.

Bug: 19180466
Change-Id: Iff9f9aed240d79323dba41496496e8076b9fa6f2
2015-02-04 15:08:55 -05:00
Jason Monk
2ba4ce6a06 Create SettingsLib
This will hold common code that SystemUI and Settings (and others)
will share.

Bug: 19180466
Change-Id: I6614b31d6c3b0a2d426a2aa8ce66725245339d22
2015-02-02 11:33:17 -05:00