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 */
160f42037eb7b5118015c2caca635538324ccf0ccffredc
170f42037eb7b5118015c2caca635538324ccf0ccffredcpackage android.bluetooth;
180f42037eb7b5118015c2caca635538324ccf0ccffredc
190f42037eb7b5118015c2caca635538324ccf0ccffredcimport android.bluetooth.IBluetooth;
200f42037eb7b5118015c2caca635538324ccf0ccffredcimport android.bluetooth.IBluetoothManagerCallback;
210f42037eb7b5118015c2caca635538324ccf0ccffredcimport android.bluetooth.IBluetoothStateChangeCallback;
220f42037eb7b5118015c2caca635538324ccf0ccffredc
230f42037eb7b5118015c2caca635538324ccf0ccffredc/**
240f42037eb7b5118015c2caca635538324ccf0ccffredc * System private API for talking with the Bluetooth service.
250f42037eb7b5118015c2caca635538324ccf0ccffredc *
260f42037eb7b5118015c2caca635538324ccf0ccffredc * {@hide}
270f42037eb7b5118015c2caca635538324ccf0ccffredc */
280f42037eb7b5118015c2caca635538324ccf0ccffredcinterface IBluetoothManager
290f42037eb7b5118015c2caca635538324ccf0ccffredc{
300f42037eb7b5118015c2caca635538324ccf0ccffredc    IBluetooth registerAdapter(in IBluetoothManagerCallback callback);
310f42037eb7b5118015c2caca635538324ccf0ccffredc    void unregisterAdapter(in IBluetoothManagerCallback callback);
320f42037eb7b5118015c2caca635538324ccf0ccffredc    void registerStateChangeCallback(in IBluetoothStateChangeCallback callback);
330f42037eb7b5118015c2caca635538324ccf0ccffredc    void unregisterStateChangeCallback(in IBluetoothStateChangeCallback callback);
340f42037eb7b5118015c2caca635538324ccf0ccffredc    boolean isEnabled();
350f42037eb7b5118015c2caca635538324ccf0ccffredc    boolean enable();
36fffa86ba834d37684238c83c0dd081133324984dGanesh Ganapathi Batta    boolean enableNoAutoConnect();
370f42037eb7b5118015c2caca635538324ccf0ccffredc    boolean disable(boolean persist);
380f42037eb7b5118015c2caca635538324ccf0ccffredc
390f42037eb7b5118015c2caca635538324ccf0ccffredc    String getAddress();
400f42037eb7b5118015c2caca635538324ccf0ccffredc    String getName();
410f42037eb7b5118015c2caca635538324ccf0ccffredc}
42