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