PageRenderTime 122ms CodeModel.GetById 61ms app.highlight 3ms RepoModel.GetById 57ms app.codeStats 0ms

/src/android/bluetooth/IBluetoothHeadset.aidl

http://auto-answer.googlecode.com/
Android Interface Definition Language | 56 lines | 14 code | 3 blank | 39 comment | 0 complexity | ea9b1e1e71bc92405fb2f397f6f6e715 MD5 | raw file
 1/*
 2 * AutoAnswer
 3 * Copyright (C) 2010 EverySoft
 4 *
 5 *   This program is free software: you can redistribute it and/or modify
 6 *   it under the terms of the GNU General Public License as published by
 7 *   the Free Software Foundation, either version 3 of the License, or
 8 *   (at your option) any later version.
 9 *
10 *   This program is distributed in the hope that it will be useful,
11 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
12 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 *   GNU General Public License for more details.
14 *
15 *   You should have received a copy of the GNU General Public License
16 *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
17 *
18 * This file incorporates work covered by the following copyright and
19 * permission notice:
20 *
21 *   Copyright (C) 2008 The Android Open Source Project
22 *
23 *   Licensed under the Apache License, Version 2.0 (the "License");
24 *   you may not use this file except in compliance with the License.
25 *   You may obtain a copy of the License at
26 *
27 *       http://www.apache.org/licenses/LICENSE-2.0
28 *
29 *   Unless required by applicable law or agreed to in writing, software
30 *   distributed under the License is distributed on an "AS IS" BASIS,
31 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
32 *   See the License for the specific language governing permissions and
33 *   limitations under the License.
34 */
35
36package android.bluetooth;
37
38import android.bluetooth.BluetoothDevice;
39
40/**
41 * System private API for Bluetooth Headset service
42 *
43 * {@hide}
44 */
45interface IBluetoothHeadset {
46    int getState();
47    BluetoothDevice getCurrentHeadset();
48    boolean connectHeadset(in BluetoothDevice device);
49    void disconnectHeadset();
50    boolean isConnected(in BluetoothDevice device);
51    boolean startVoiceRecognition();
52    boolean stopVoiceRecognition();
53    boolean setPriority(in BluetoothDevice device, int priority);
54    int getPriority(in BluetoothDevice device);
55    int getBatteryUsageHint();
56}