10f42037eb7b5118015c2caca635538324ccf0ccffredc/* 2fa0fd39a4bf296d254aa398c1b19ec960efa641dZhihai Xu * Copyright (C) 2012 The Android Open Source Project 3fa0fd39a4bf296d254aa398c1b19ec960efa641dZhihai Xu * 4fa0fd39a4bf296d254aa398c1b19ec960efa641dZhihai Xu * Licensed under the Apache License, Version 2.0 (the "License"); 5fa0fd39a4bf296d254aa398c1b19ec960efa641dZhihai Xu * you may not use this file except in compliance with the License. 6fa0fd39a4bf296d254aa398c1b19ec960efa641dZhihai Xu * You may obtain a copy of the License at 7fa0fd39a4bf296d254aa398c1b19ec960efa641dZhihai Xu * 8fa0fd39a4bf296d254aa398c1b19ec960efa641dZhihai Xu * http://www.apache.org/licenses/LICENSE-2.0 9fa0fd39a4bf296d254aa398c1b19ec960efa641dZhihai Xu * 10fa0fd39a4bf296d254aa398c1b19ec960efa641dZhihai Xu * Unless required by applicable law or agreed to in writing, software 11fa0fd39a4bf296d254aa398c1b19ec960efa641dZhihai Xu * distributed under the License is distributed on an "AS IS" BASIS, 12fa0fd39a4bf296d254aa398c1b19ec960efa641dZhihai Xu * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13fa0fd39a4bf296d254aa398c1b19ec960efa641dZhihai Xu * See the License for the specific language governing permissions and 14fa0fd39a4bf296d254aa398c1b19ec960efa641dZhihai Xu * limitations under the License. 150f42037eb7b5118015c2caca635538324ccf0ccffredc */ 16fa0fd39a4bf296d254aa398c1b19ec960efa641dZhihai Xu 170f42037eb7b5118015c2caca635538324ccf0ccffredcpackage android.bluetooth; 180f42037eb7b5118015c2caca635538324ccf0ccffredc 190f42037eb7b5118015c2caca635538324ccf0ccffredcimport android.bluetooth.BluetoothDevice; 200f42037eb7b5118015c2caca635538324ccf0ccffredc 210f42037eb7b5118015c2caca635538324ccf0ccffredc/** 220f42037eb7b5118015c2caca635538324ccf0ccffredc * API for Bluetooth Pan service 230f42037eb7b5118015c2caca635538324ccf0ccffredc * 240f42037eb7b5118015c2caca635538324ccf0ccffredc * {@hide} 250f42037eb7b5118015c2caca635538324ccf0ccffredc */ 260f42037eb7b5118015c2caca635538324ccf0ccffredcinterface IBluetoothPan { 270f42037eb7b5118015c2caca635538324ccf0ccffredc // Public API 280f42037eb7b5118015c2caca635538324ccf0ccffredc boolean isTetheringOn(); 290f42037eb7b5118015c2caca635538324ccf0ccffredc void setBluetoothTethering(boolean value); 300f42037eb7b5118015c2caca635538324ccf0ccffredc boolean connect(in BluetoothDevice device); 310f42037eb7b5118015c2caca635538324ccf0ccffredc boolean disconnect(in BluetoothDevice device); 320f42037eb7b5118015c2caca635538324ccf0ccffredc List<BluetoothDevice> getConnectedDevices(); 330f42037eb7b5118015c2caca635538324ccf0ccffredc List<BluetoothDevice> getDevicesMatchingConnectionStates(in int[] states); 340f42037eb7b5118015c2caca635538324ccf0ccffredc int getConnectionState(in BluetoothDevice device); 350f42037eb7b5118015c2caca635538324ccf0ccffredc} 36