We Pair: Remote device sends incoming connection, we get connected.
We get BondingState change and we connect.
Settings app disconnects connected profiles and then connects
without checking whether we are disconnecting the same device itself.
How was it working before ? Settings app used to queue all
commands. The disconnect followed by the connect would work
but unnecessarily disconnect and then connect.
With the queuing moved to framework, the connect fails
since the disconnect status has not been broadcasted.
Settings app shouldn't be disconnecting connected profiles.
That logic should reside in the framework. There is an open bug
and when the new APIs get implemented this will get removed.
Change-Id: I32a7fa36ff3c3321691c55071498f985dcdcfe8e
Merge commit 'c5c8dad0afb84bda9495a0aa1f7d6a3db28de5cb' into gingerbread-plus-aosp
* commit 'c5c8dad0afb84bda9495a0aa1f7d6a3db28de5cb':
Use new apply() instead of commit().
apply() starts an async disk write and doesn't have a return
value but is otherwise identical in observable effects.
Change-Id: I0f528607319d7eb5136bb11fce0b24d8741ccdf9
Add UserLeaveHintListener.java, so that the settings won't use
its implementation around Activity#onUserLeaveHint().
Also fragmentize bluetooth tethering screen.
Change-Id: Id06ae3161fbdb5854ddb7a257f464fb16ea9b089
Merge commit '6e6d05801e68e8d2cee2c708274dc8226f04f756'
* commit '6e6d05801e68e8d2cee2c708274dc8226f04f756':
BT: The Phone doesn't "wake up" when trying to pair with it.
Merge commit '83c3b64ff7235e1382712a899ab0a269ce8a28d6' into gingerbread-plus-aosp
* commit '83c3b64ff7235e1382712a899ab0a269ce8a28d6':
BT: The Phone doesn't "wake up" when trying to pair with it.
To improve the pairing request usability:
- In the case where a notification shall be used the standard
notification sound is added
- When the screen is off notification is always used.
Change-Id: I751a7913517c64de5d7ba06d7c17358197d002c5
There were window leak in the settings application.
These leak happens when an AlertDialog displays, rotate the phone,
then it would cause window leak.
Change-Id: I914897bf657933efea72eeea66076dc288098420
The fix was to wait for the Bluetooth Headset service to come up before grabbing the settings and connecting.
Change-Id: I57affca2fe7d571c96cfeaf9ffe5439a0b02af45
The APIs implementations are being updated to expose
A2DP and HFP APIs. A connect call is not honoured if its
not a preferred profile. So if an app changes the preference
of the profile than it should first update the state before
making the connect call. The API for updating preference
might not be exposed and will be mostly an API for app with ADMIN
privileges like Settings app.
Change-Id: I58b8e8201357bcfe615dc2322342520319d9e355
For AlertActivity, the dialog needs to display at onCreate() time.
Otherwise, the decor view would be made. Trying to display the
dialog afterward would crash. Changed to AlertDialog instead.
Change-Id: I2ea8463b4c475b9b54746d0a722fa80eea3d4529
Merge commit '3a6b2df23950cd64c10dfbb437aa56a99cbce54a'
* commit '3a6b2df23950cd64c10dfbb437aa56a99cbce54a':
b/2370089 Pop the dock dialog above the keyguard
Merge commit 'fcd4e7fec3c80d0a16630246c4942595d34c655c'
* commit 'fcd4e7fec3c80d0a16630246c4942595d34c655c':
b/2332395 Fixed a bug where BT is not disabled if the phone was inserted and removed quickly.
Merge commit '97ed3f4b1ce40fd3ec8bc34bf2bfb7438b28afd7'
* commit '97ed3f4b1ce40fd3ec8bc34bf2bfb7438b28afd7':
b/2332395 Disable BT when undocked if BT was off to at docking time
Merge commit '49efbf8b5b7a6817a4a1020982cb34f4ca226d48'
* commit '49efbf8b5b7a6817a4a1020982cb34f4ca226d48':
b/2367861 Auto connect if the user turns on BT while docked.
unless if 1) the user has manually turned off bt while docked or
2) there's a connect device at the time we are ready to turn off bt
Change-Id: Ic27308688a525120a09a25c9416b3cdc477412ab
This mainly changes the way both enablers react to the airplane mode. Now
enablers show a toast message instead of disabling the check box directly. This
avoids the inconsistent state introduced by WirelessSettings which controls the
check box using layout dependency.
Related bug: 2053751
Merge commit 'd69a5ee28cb5164233805a751a7c3deafba58668'
* commit 'd69a5ee28cb5164233805a751a7c3deafba58668':
b/2367020 Enable bt profiles by default for car dock.