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
diff --git a/service/src/com/android/car/ICarImpl.java b/service/src/com/android/car/ICarImpl.java
index 5b01bcf..bd42454 100644
--- a/service/src/com/android/car/ICarImpl.java
+++ b/service/src/com/android/car/ICarImpl.java
@@ -248,6 +248,8 @@
return mCarTestService;
}
}
+ case Car.BLUETOOTH_SERVICE:
+ return mCarBluetoothService;
default:
Log.w(CarLog.TAG_SERVICE, "getCarService for unknown service:" + serviceName);
return null;