History log of /packages/services/Car/service/src/com/android/car/CarBluetoothService.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
76a8489d09152192f356e61029eaffc401c5e639 28-Jul-2017 Ram Periathiruvadi <ramperry@google.com> Car Bluetooth policy - option to tag a device for autoconnect

Provide an option to tag a device with a priority for auto connection.
If a device is tagged as a Primary device for example, then the auto
connect policy will always try to connect to that device first
regardless of which device connected last (which is the default policy)

Bug: b/34722344
Test: Unit test
Change-Id: Ie364a4fbf5b29bc3f6cca7433ead2ed4b4debc9e
/packages/services/Car/service/src/com/android/car/CarBluetoothService.java
acb6024180232a2c0b6bad6f14758ef28d8f63f7 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
/packages/services/Car/service/src/com/android/car/CarBluetoothService.java
49d5a5a4b57b38abbfb6e83fcbaf066cba595c07 18-Feb-2017 Ram Periathiruvadi <ramperry@google.com> Adding IGN State START as a BT AutoConnect trigger

Bug: b/34723490
Test: Tested by adding a inject fake Ignition State Change event
adb shell dumpsys activity service com.android.car inject-event
global-integer 0x11400409 5

Change-Id: I26eff96da5b0987d2e261848c015af62ce238e0a
/packages/services/Car/service/src/com/android/car/CarBluetoothService.java
ee28c00d9a031c7316e47027482d8d6178574f35 08-Feb-2017 Ram Periathiruvadi <ramperry@google.com> Fixing Bluetooth Car policy bugs for auto-connect.

- Write device list to file on state changes - b/34723579
- Verify device after successful connection - b/34723492
- Only add device to device list for profiles that it connected on -
b/34723683
- Add MAP client to list of to-be-connected porfiles - b/34723437
- Fix NPE in Emulator builds that don't have Bluetooth Adapter -
b/34887372

Bug: b/34723579
Bug: b/34723492
Bug: b/34723683
Bug: b/34723437
Bug: b/34887372
Test: Manual testing of auto-connect by injecting fake Cabin events via
adb shell dumpsys activity service com.android.car inject-event
0x16200b02 1 false

Change-Id: I2bff6730ebfac2dd4ebbdcb57a130c23235c3b61
/packages/services/Car/service/src/com/android/car/CarBluetoothService.java
7ed8418790b9e30ef90bc808ce8641a6c2d814d4 21-Jan-2017 Ram Periathiruvadi <ramperry@google.com> Creating a BluetoothDeviceConnectionPolicy in CarService for Bluetooth Autoconnect.

A policy driven approach to trigger connection attempts to devices that have
previously connected to the vehicle. The policy listens for signals from the car
to decide on when to make the attempt and maintains a list of devices that it
can attempt the connections on for a given profile.

Bug: b/33080250
Test: New feature, testing using Car tests.
Change-Id: I6086c65a934f1721550a1049f5f7d95ae1d5251a
/packages/services/Car/service/src/com/android/car/CarBluetoothService.java