OSDN Git Service

Bluetooth: Add support for PBAP UI preference
authorHemant Gupta <hemantg@codeaurora.org>
Fri, 12 May 2017 15:44:44 +0000 (21:14 +0530)
committerMyles Watson <mylesgw@google.com>
Wed, 6 Dec 2017 19:09:27 +0000 (19:09 +0000)
commitdbc3d8dd1238b5c7dbef9579904f02895b2745b5
treeb424c176813f5fda3c15bb779414a1c735e49517
parentf845bbdfa414be28581510482b302b6efd2591c9
Bluetooth: Add support for PBAP UI preference

Usecase:
1) Connect with carkit that supports PBAP/MAP
2) Try to uncheck the checkbox for contact sharing from device sub
   settings menu

Expected Result:
1) DUT should display "Connected (No Media or Phone)"
1) Should be able to disconnect when checkbox moves from selected->unselected,
and carkit should be able to connect when checkbox is selected again

Observation:
1) No UI updates when PBAP/MAP are connected.
2) On unchecking Contact sharing checkbox nothing happens. PBAP connection
   remains active and user is not asked to disconnect profile level connection.

Fix:
Add support for PBAP UI preference in SettingsLib. Also Fix issues related to MAP
profile addition/removal.
Test: Connect from carkit, try disconnecting from sub settings menu by unchecking
Contact Sharing checkbox and check if PBAP is successfully disconnected.

Bug: 35014213
Change-Id: I283a0cb65cb132931010fb2f8c977bea20a67951
packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java
packages/SettingsLib/src/com/android/settingslib/bluetooth/LocalBluetoothProfileManager.java [changed mode: 0755->0644]