History log of /frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
82dd3b0bf6716ccee0f82b2b2db234cdefd34ff6 27-Dec-2016 Fan Zhang <zhfan@google.com> Make classes non-final so mockito can mock them.

Bug: 33341275
Test: RunSettingsRoboTests
Change-Id: If83180d7caf3af29c9d0dcdc20d557d8d9827c74
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java
4984d66b6a98fec066f9a16c824dc091b0069037 06-Oct-2016 Jakub Pawlowski <jpawlowski@google.com> Merge "Fix connecting to profiles when bonding from local device (1/3)" am: 44c013d739 am: 6fe3900791
am: 56757a44a6

Change-Id: I3bdacc816923d012f061e5310d5e076fcaf9d387
0278ab957a8c4a658953532997074e3297d197f5 20-Jul-2016 Jakub Pawlowski <jpawlowski@google.com> Fix connecting to profiles when bonding from local device (1/3)

When bond is created from Bluetooth Settings, profiles gets properly
auto connected when services are discovered. If pairing is done from any
other app, i.e. NFC app, the bond is not being recognized as initiated
from local device, and profiles are not connected.

This patch makes sure that if bonding is initiated, no matter from which
app, it will cause proper profiles to connect.

Bug: 30211618
Change-Id: I71131f33eb5b9db2f5b4a8737b191d541bf1fd3d
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java
b8d267a4edc5170f58ac71bc99b9b32f98adec49 06-Jun-2016 Hemant Gupta <hemantg@codeaurora.org> PBAP: Allow wearable handsfree device for PBAP Access

Allow wearable handsfree device for PBAP Access

Usecase:
1) Pair and connect with Jabra Stealth Headset.
2) Go out of range so that connection gets disconnected
3) Come back in range, so that reconnection happens.

Observation:
Headset fails to reconnect with DUT in some scenarios.

Root Cause:
Headset does not send page request to DUT in some scenarios
leading to reconnection issues. This propabaly happens because
Headset fails to connect PBAP in previous iteration so it goes
in bad state, and does not page after Link Supervision Timeout.

Current Settings code only allows Audio_video_Handsfree Class of
devices to have PBAP Access permission, and set Rejected Permission
for other Audio Device Class. This headset being Wearable Class (0x0404)
is set as PBAP Rejected, and all PBAP connection to DUT from this remote
device are rejected leading to issue of bad state in headset.

Fix:
Allow wearable class audio devices to also have PBAP access permission.

Bug: 29219133
Change-Id: I18d8412cbeb86c18610091898d1c79f26d3d808d
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java
f8a1c9121dae665ec9dc29484f89adfb5f3f0886 27-Jan-2016 Sanket Agarwal <sanketa@google.com> Add Headset HF role to the settings menu

- Makes the HF client a configurable item in Settings. You can
enable/disable HF per item.
- Disconnect works cleanly since Settings now disconnects HF and hence
tear down the ACL.

Bug: b/26808830

Change-Id: I062b64beac4c009a6075756b7f163c6455d77af2
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java
1bec6a5b0d67f120b7013572f6b1a4f1e1b3c584 22-Oct-2015 Sanket Agarwal <sanketa@google.com> Add support for AVRCP 1.3.

* Add metadata support.
* Add player settings support.
* Add playback support.

A2DP Settings App support.

Bluetooth: A2DP Sink support for Settings App

- add support for A2DP Sink in Settings App. This will enable connection
initiation and updation on Settings App
- add framework Apis to support A2DP Sink. Any third party Apps can access
A2DP Sink priority of device and playing state of device
- add support for key to set priority. This manages priority of device for
A2DP Sink profile

Change-Id: If5f9139f37cdb9d200387877c7801075205c78a0
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java
07533dbffff5551ad4c58852b5856f57d7da6801 12-Nov-2015 Sanket Padawe <sanketpadawe@google.com> Don't allow contact sharing by default for device not recognized as carkit.

+ Don't allow contact sharing by default for devices not recognized
as carkit at pair time.

Bug: 23607427
Change-Id: If6babb10117ba7ee5008a4a29450a7cb981bea4a
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java
7be83c578c611cd28185333696c17b2560f30444 04-Sep-2015 Andre Eisenbach <eisenbach@google.com> Bluetooth: Fix profile auto-connect logic

The fix in commit 05e08c3a2f27d5027b34e81b7c0a67e4da7341f6 caused a
duplicate connect message to be sent to A2DP devices (and others),
causing the A2DP state machine to disconnect a device shortly after
connecting it.

This patch reverts the relevant part of commit 05e06c that causes the
faulty auto-connect behaviour.

Bug: 22128169
Change-Id: Ie0dadd5c9583bf2b64a8434a2a3603cb749b21d0
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java
9debd5106e14ecb5f31413b0c5991a5f723c7cfc 17-Jul-2015 Sanket Padawe <sanketpadawe@google.com> Make default selection for contact sharing to "Checked".

Bug: 22556703
Change-Id: I33343301c4097f0e966f11a8d503ca30949e9a82
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java
ceeaef3852a19649d16e61f184bd8ab920d0177b 19-Jun-2015 Sanket Padawe <sanketpadawe@google.com> Set default PBAP checkbox state to false (checkbox unselected).

Bug: 20488109
Change-Id: I6259ea8d048cbface2ba63b8c1077af12d0fee1b
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java
78c23767ecbb5c43420e5e015caca5c47d4bd45b 02-Jun-2015 Sanket Padawe <sanketpadawe@google.com> Fix issue related selecting of "Contact sharing" in BT Settings.

Bug: 20041014
Change-Id: I84b59fdfd82c4bf25965bcb10a15fbff2dfbe721
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java
424681e43e454bfcbceb863ddccb875ea57ec26f 05-May-2015 Casper Bonde <c.bonde@samsung.com> Settings UI for SIM access profile (2/2)

Change-Id: I2e44a858ee3f3349baa401ee7002186d3ae19412
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java
05e08c3a2f27d5027b34e81b7c0a67e4da7341f6 07-Apr-2015 Venkat Raghavan <venkatrv@broadcom.com> 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
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java
50d47618300016766852523111bfc7ec991f00ea 31-Mar-2015 Etan Cohen <etancohen@google.com> 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
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java
be3c5dbee66758517a8198f98ed2e20c80af326b 04-Feb-2015 Jason Monk <jmonk@google.com> 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
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java
7ce96b9e610de2782ec5f2af806e7bc0f90c8578 02-Feb-2015 Jason Monk <jmonk@google.com> 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
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java