diff options
author | Casper Bonde <c.bonde@samsung.com> | 2015-03-19 10:36:45 +0100 |
---|---|---|
committer | Andre Eisenbach <eisenbach@google.com> | 2015-04-15 23:45:51 -0700 |
commit | 2a5f608e7a5765db3b91165dac5b6280b26da26c (patch) | |
tree | e8203d0bbdc81f0df1f97df010e7686db8a1a957 /core/java/android/bluetooth/IBluetoothSap.aidl | |
parent | d055adbe2c1c65d9346e65209fa8790190bc239e (diff) | |
download | frameworks_base-2a5f608e7a5765db3b91165dac5b6280b26da26c.zip frameworks_base-2a5f608e7a5765db3b91165dac5b6280b26da26c.tar.gz frameworks_base-2a5f608e7a5765db3b91165dac5b6280b26da26c.tar.bz2 |
Add support for Bluetooth Sim Access Profile (2/4)
Change-Id: I6c634aa38d31a7b5a98c9089840557257fd58209
Diffstat (limited to 'core/java/android/bluetooth/IBluetoothSap.aidl')
-rw-r--r-- | core/java/android/bluetooth/IBluetoothSap.aidl | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/core/java/android/bluetooth/IBluetoothSap.aidl b/core/java/android/bluetooth/IBluetoothSap.aidl new file mode 100644 index 0000000..8970639 --- /dev/null +++ b/core/java/android/bluetooth/IBluetoothSap.aidl @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2013 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.BluetoothDevice; + +/** + * System private API for Bluetooth SAP service + * + * {@hide} + */ +interface IBluetoothSap { + int getState(); + BluetoothDevice getClient(); + boolean connect(in BluetoothDevice device); + boolean disconnect(in BluetoothDevice device); + boolean isConnected(in BluetoothDevice device); + List<BluetoothDevice> getConnectedDevices(); + List<BluetoothDevice> getDevicesMatchingConnectionStates(in int[] states); + int getConnectionState(in BluetoothDevice device); + boolean setPriority(in BluetoothDevice device, int priority); + int getPriority(in BluetoothDevice device); +} |