diff options
author | Mike Lockwood <lockwood@google.com> | 2014-05-14 09:51:30 -0700 |
---|---|---|
committer | Mike Lockwood <lockwood@google.com> | 2014-06-13 09:06:35 -0700 |
commit | 2263dd1ddd1a8ac828c25d34000c85165cad21ef (patch) | |
tree | 11acd19742db98cffb786343c1bac34f859251d8 /core/java/android/bluetooth/IBluetoothA2dpSink.aidl | |
parent | 0b611b5f3bcbe29fd63102f6924b43eb7c6533f5 (diff) | |
download | frameworks_base-2263dd1ddd1a8ac828c25d34000c85165cad21ef.zip frameworks_base-2263dd1ddd1a8ac828c25d34000c85165cad21ef.tar.gz frameworks_base-2263dd1ddd1a8ac828c25d34000c85165cad21ef.tar.bz2 |
BluetoothA2dpSink: Add new BluetoothProfile subclass for A2DP sink
Change-Id: I09d5cb8fdaea4c4828f333949b7c18deffd22722
Diffstat (limited to 'core/java/android/bluetooth/IBluetoothA2dpSink.aidl')
-rw-r--r-- | core/java/android/bluetooth/IBluetoothA2dpSink.aidl | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/core/java/android/bluetooth/IBluetoothA2dpSink.aidl b/core/java/android/bluetooth/IBluetoothA2dpSink.aidl new file mode 100644 index 0000000..b7c6476 --- /dev/null +++ b/core/java/android/bluetooth/IBluetoothA2dpSink.aidl @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2014 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; + +import android.bluetooth.BluetoothAudioConfig; +import android.bluetooth.BluetoothDevice; + +/** + * APIs for Bluetooth A2DP sink service + * + * @hide + */ +interface IBluetoothA2dpSink { + boolean connect(in BluetoothDevice device); + boolean disconnect(in BluetoothDevice device); + List<BluetoothDevice> getConnectedDevices(); + List<BluetoothDevice> getDevicesMatchingConnectionStates(in int[] states); + int getConnectionState(in BluetoothDevice device); + BluetoothAudioConfig getAudioConfig(in BluetoothDevice device); +} |