diff options
author | Ram Periathiruvadi <ramperry@google.com> | 2017-04-13 16:19:09 -0700 |
---|---|---|
committer | Ram Periathiruvadi <ramperry@google.com> | 2017-04-26 17:27:20 -0700 |
commit | acb6024180232a2c0b6bad6f14758ef28d8f63f7 (patch) | |
tree | ff3a09fb196f8b2407e6ebbf473a6b71815853c7 /car-lib/src/android/car/ICarBluetoothUserService.aidl | |
parent | 3d034b78d9e4ee76618d999b9115d73d1974eb58 (diff) | |
download | Car-acb6024180232a2c0b6bad6f14758ef28d8f63f7.tar.gz |
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
Diffstat (limited to 'car-lib/src/android/car/ICarBluetoothUserService.aidl')
-rw-r--r-- | car-lib/src/android/car/ICarBluetoothUserService.aidl | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/car-lib/src/android/car/ICarBluetoothUserService.aidl b/car-lib/src/android/car/ICarBluetoothUserService.aidl new file mode 100644 index 0000000000..b1f7a39c23 --- /dev/null +++ b/car-lib/src/android/car/ICarBluetoothUserService.aidl @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2017 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package android.car; +import android.bluetooth.BluetoothDevice; + +/** @hide */ +interface ICarBluetoothUserService { + // Bluetooth related APIs + void setupBluetoothConnectionProxy(); + void closeBluetoothConnectionProxy(); + boolean isBluetoothConnectionProxyAvailable(in int profile); + void bluetoothConnectToProfile(in int profile, in BluetoothDevice device); +} |