History log of /packages/services/Car/car-lib/src/android/car/ICarBluetoothUserService.aidl
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
06cb47a38cf7ccf66d8591cf42c54230ac3ae98f 01-Jun-2017 Ram Periathiruvadi <ramperry@google.com> Fix Bluetooth failing to connect after pairing

After successful pairing, supported profiles between 2 devices was not
connecting automatically, if the device was previously paired and
unpaired. This is because, unpairing sets the priority of the profile
for that device to UNDEFINED. Hence, subsequent pairing attempts fails
to connect, since the Bluetooth profiles ignore connection requests when
the priority is not set to ON or AUTO_CONNECT.
So, its upto the Device's Bluetooth policy to set the priority of
supported bluetooth profiles per remote device to ON, everytime it
pairs to a remote device. For Carkit, we do this in its
BluetoothDeviceConnectionPolicy. For phones, it is done in PhonePolicy.

Bug: b/38500587
Test: Tested by pairing and seeing the supported Car Bluetooth profiles
connect automatically. Also, checked the saved priority for the profile
per device in Settingsglobal content provider by querying
adb shell content query --uri content://settings/global

Change-Id: Ie102a0923022d844106bdb864cbd57c4ab5aa19c
(cherry picked from commit be7ea0fe212996a6afc095bb910e44a0c8cb4c2f)
/packages/services/Car/car-lib/src/android/car/ICarBluetoothUserService.aidl
6bd897fd7519d2939edda09cc454943b76ea663d 14-Apr-2017 Ram Periathiruvadi <ramperry@google.com> Bluetooth Auto-connect per user, fix multidevice connections

When auto connecting to devices on bluetooth, store and try devices per
user. Added a CarUserService that is created for the current user on
UserSwitch. The CarUserService deals with scenarios where the
CarService, running as a System User, doesn't get to listen to events
from processes running as the current user.
Fix the issue where when 2 phones were connected on HFP, auto-connect
only connects to one.
Other cleanup and slight code re-org

Bug: b/35324581
Bug: b/37305537
Test: Manually tested by switching between different users and connecting
to multiple phones.

Change-Id: I53583bee9ed1ff1a6bfd20363d4544efd2cc152f
(cherry picked from commit acb6024180232a2c0b6bad6f14758ef28d8f63f7)
/packages/services/Car/car-lib/src/android/car/ICarBluetoothUserService.aidl