The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2008, The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | package android.bluetooth; |
| 18 | |
Jaikumar Ganesh | dd0463a | 2009-09-16 12:30:02 -0700 | [diff] [blame] | 19 | import android.bluetooth.ParcelUuid; |
| 20 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 21 | /** |
| 22 | * System private API for talking with the Bluetooth service. |
| 23 | * |
| 24 | * {@hide} |
| 25 | */ |
Nick Pelly | bd022f4 | 2009-08-14 18:33:38 -0700 | [diff] [blame] | 26 | interface IBluetooth |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 27 | { |
| 28 | boolean isEnabled(); |
The Android Open Source Project | 1059253 | 2009-03-18 17:39:46 -0700 | [diff] [blame] | 29 | int getBluetoothState(); |
| 30 | boolean enable(); |
| 31 | boolean disable(boolean persistSetting); |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 32 | |
| 33 | String getAddress(); |
| 34 | String getName(); |
| 35 | boolean setName(in String name); |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 36 | |
| 37 | int getScanMode(); |
| 38 | boolean setScanMode(int mode); |
| 39 | |
| 40 | int getDiscoverableTimeout(); |
| 41 | boolean setDiscoverableTimeout(int timeout); |
| 42 | |
Jaikumar Ganesh | d5ac1ae | 2009-05-05 22:26:12 -0700 | [diff] [blame] | 43 | boolean startDiscovery(); |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 44 | boolean cancelDiscovery(); |
| 45 | boolean isDiscovering(); |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 46 | |
| 47 | boolean createBond(in String address); |
| 48 | boolean cancelBondProcess(in String address); |
| 49 | boolean removeBond(in String address); |
| 50 | String[] listBonds(); |
| 51 | int getBondState(in String address); |
| 52 | |
| 53 | String getRemoteName(in String address); |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 54 | int getRemoteClass(in String address); |
Jaikumar Ganesh | dd0463a | 2009-09-16 12:30:02 -0700 | [diff] [blame] | 55 | ParcelUuid[] getRemoteUuids(in String address); |
Jaikumar Ganesh | 1caa6d1 | 2009-09-18 11:32:54 -0700 | [diff] [blame^] | 56 | boolean fetchRemoteUuidsWithSdp(in String address); |
Jaikumar Ganesh | dd0463a | 2009-09-16 12:30:02 -0700 | [diff] [blame] | 57 | int getRemoteServiceChannel(in String address,in ParcelUuid uuid); |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 58 | |
| 59 | boolean setPin(in String address, in byte[] pin); |
Jaikumar Ganesh | b0eca41 | 2009-07-16 18:26:28 -0700 | [diff] [blame] | 60 | boolean setPasskey(in String address, int passkey); |
| 61 | boolean setPairingConfirmation(in String address, boolean confirm); |
| 62 | boolean cancelPairingUserInput(in String address); |
| 63 | |
Lixin Yue | efa1dd7 | 2009-08-31 15:55:13 +0800 | [diff] [blame] | 64 | boolean setTrust(in String address, in boolean value); |
| 65 | boolean getTrustState(in String address); |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 66 | } |