1fe3807a5b23f54f6539436d71aa0cd931a2b76f0Matthew Xie/*
2fe3807a5b23f54f6539436d71aa0cd931a2b76f0Matthew Xie * Copyright (C) 2008 The Android Open Source Project
3fe3807a5b23f54f6539436d71aa0cd931a2b76f0Matthew Xie *
4fe3807a5b23f54f6539436d71aa0cd931a2b76f0Matthew Xie * Licensed under the Apache License, Version 2.0 (the "License");
5fe3807a5b23f54f6539436d71aa0cd931a2b76f0Matthew Xie * you may not use this file except in compliance with the License.
6fe3807a5b23f54f6539436d71aa0cd931a2b76f0Matthew Xie * You may obtain a copy of the License at
7fe3807a5b23f54f6539436d71aa0cd931a2b76f0Matthew Xie *
8fe3807a5b23f54f6539436d71aa0cd931a2b76f0Matthew Xie *      http://www.apache.org/licenses/LICENSE-2.0
9fe3807a5b23f54f6539436d71aa0cd931a2b76f0Matthew Xie *
10fe3807a5b23f54f6539436d71aa0cd931a2b76f0Matthew Xie * Unless required by applicable law or agreed to in writing, software
11fe3807a5b23f54f6539436d71aa0cd931a2b76f0Matthew Xie * distributed under the License is distributed on an "AS IS" BASIS,
12fe3807a5b23f54f6539436d71aa0cd931a2b76f0Matthew Xie * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13fe3807a5b23f54f6539436d71aa0cd931a2b76f0Matthew Xie * See the License for the specific language governing permissions and
14fe3807a5b23f54f6539436d71aa0cd931a2b76f0Matthew Xie * limitations under the License.
15fe3807a5b23f54f6539436d71aa0cd931a2b76f0Matthew Xie */
16fe3807a5b23f54f6539436d71aa0cd931a2b76f0Matthew Xie
17fe3807a5b23f54f6539436d71aa0cd931a2b76f0Matthew Xiepackage android.bluetooth;
18fe3807a5b23f54f6539436d71aa0cd931a2b76f0Matthew Xie
19fe3807a5b23f54f6539436d71aa0cd931a2b76f0Matthew Xieimport android.bluetooth.BluetoothDevice;
20fe3807a5b23f54f6539436d71aa0cd931a2b76f0Matthew Xie
21fe3807a5b23f54f6539436d71aa0cd931a2b76f0Matthew Xie/**
22fe3807a5b23f54f6539436d71aa0cd931a2b76f0Matthew Xie * System private API for Bluetooth MAP service
23fe3807a5b23f54f6539436d71aa0cd931a2b76f0Matthew Xie *
24fe3807a5b23f54f6539436d71aa0cd931a2b76f0Matthew Xie * {@hide}
25fe3807a5b23f54f6539436d71aa0cd931a2b76f0Matthew Xie */
26fe3807a5b23f54f6539436d71aa0cd931a2b76f0Matthew Xieinterface IBluetoothMap {
27fe3807a5b23f54f6539436d71aa0cd931a2b76f0Matthew Xie    int getState();
28fe3807a5b23f54f6539436d71aa0cd931a2b76f0Matthew Xie    BluetoothDevice getClient();
29fe3807a5b23f54f6539436d71aa0cd931a2b76f0Matthew Xie    boolean connect(in BluetoothDevice device);
300d376053747615ac7c4b45ab7810329ffbdf80d1Kim Schulz    boolean disconnect(in BluetoothDevice device);
31fe3807a5b23f54f6539436d71aa0cd931a2b76f0Matthew Xie    boolean isConnected(in BluetoothDevice device);
320d376053747615ac7c4b45ab7810329ffbdf80d1Kim Schulz    List<BluetoothDevice> getConnectedDevices();
330d376053747615ac7c4b45ab7810329ffbdf80d1Kim Schulz    List<BluetoothDevice> getDevicesMatchingConnectionStates(in int[] states);
340d376053747615ac7c4b45ab7810329ffbdf80d1Kim Schulz    int getConnectionState(in BluetoothDevice device);
350d376053747615ac7c4b45ab7810329ffbdf80d1Kim Schulz    boolean setPriority(in BluetoothDevice device, int priority);
360d376053747615ac7c4b45ab7810329ffbdf80d1Kim Schulz    int getPriority(in BluetoothDevice device);
37fe3807a5b23f54f6539436d71aa0cd931a2b76f0Matthew Xie}
38