IBluetooth.aidl revision efa1dd716da3372cc74a201d11de5e0ef1a9fe9a
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 17package android.bluetooth; 18 19/** 20 * System private API for talking with the Bluetooth service. 21 * 22 * {@hide} 23 */ 24interface IBluetooth 25{ 26 boolean isEnabled(); 27 int getBluetoothState(); 28 boolean enable(); 29 boolean disable(boolean persistSetting); 30 31 String getAddress(); 32 String getName(); 33 boolean setName(in String name); 34 35 int getScanMode(); 36 boolean setScanMode(int mode); 37 38 int getDiscoverableTimeout(); 39 boolean setDiscoverableTimeout(int timeout); 40 41 boolean startDiscovery(); 42 boolean cancelDiscovery(); 43 boolean isDiscovering(); 44 45 boolean createBond(in String address); 46 boolean cancelBondProcess(in String address); 47 boolean removeBond(in String address); 48 String[] listBonds(); 49 int getBondState(in String address); 50 51 String getRemoteName(in String address); 52 int getRemoteClass(in String address); 53 String[] getRemoteUuids(in String address); 54 int getRemoteServiceChannel(in String address, String uuid); 55 56 boolean setPin(in String address, in byte[] pin); 57 boolean setPasskey(in String address, int passkey); 58 boolean setPairingConfirmation(in String address, boolean confirm); 59 boolean cancelPairingUserInput(in String address); 60 61 boolean setTrust(in String address, in boolean value); 62 boolean getTrustState(in String address); 63} 64