From 694251eaaa8ea70a9b0427d55e9ede437c83a6d5 Mon Sep 17 00:00:00 2001 From: Bryce Lee Date: Wed, 28 Oct 2015 21:06:27 -0700 Subject: [PATCH] Declare new interface for headset client bluetooth profile to query. This is needed in order to allow implementations of the HFP HF side to define when audio can be routed to the device. This allows for calls dialed from an AG to be kept on the AG if desired. Bug: 25332357 Change-Id: I35a554cfc53f88c7dd3059bf52df5c69df9c7415 --- Android.mk | 1 + .../IBluetoothHeadsetClientController.aidl | 25 +++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 core/java/android/bluetooth/IBluetoothHeadsetClientController.aidl diff --git a/Android.mk b/Android.mk index 99e0c464bc951..f7bd9a1bf2c6c 100644 --- a/Android.mk +++ b/Android.mk @@ -117,6 +117,7 @@ LOCAL_SRC_FILES += \ core/java/android/bluetooth/IBluetoothSap.aidl \ core/java/android/bluetooth/IBluetoothStateChangeCallback.aidl \ core/java/android/bluetooth/IBluetoothHeadsetClient.aidl \ + core/java/android/bluetooth/IBluetoothHeadsetClientController.aidl \ core/java/android/bluetooth/IBluetoothGatt.aidl \ core/java/android/bluetooth/IBluetoothGattCallback.aidl \ core/java/android/bluetooth/IBluetoothGattServerCallback.aidl \ diff --git a/core/java/android/bluetooth/IBluetoothHeadsetClientController.aidl b/core/java/android/bluetooth/IBluetoothHeadsetClientController.aidl new file mode 100644 index 0000000000000..8f940f3117621 --- /dev/null +++ b/core/java/android/bluetooth/IBluetoothHeadsetClientController.aidl @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2015 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.bluetooth; + +/** + * Controller to specify behavior of bluetooth headset client. + * @hide + */ +interface IBluetoothHeadsetClientController { + boolean allowAudioConnect(); +}