1/*
2 * Copyright (C) 2016 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.IBluetoothCallback;
20import android.bluetooth.IBluetoothLowEnergy;
21import android.bluetooth.IBluetoothLeAdvertiser;
22import android.bluetooth.IBluetoothLeScanner;
23import android.bluetooth.IBluetoothGattClient;
24import android.bluetooth.IBluetoothGattServer;
25
26import android.bluetooth.UUID;
27
28interface IBluetooth {
29  boolean IsEnabled();
30  int GetState();
31  boolean Enable(boolean startRestricted);
32  boolean EnableNoAutoConnect();
33  boolean Disable();
34
35  String GetAddress();
36  UUID[] GetUUIDs();
37  boolean SetName(String name);
38  String GetName();
39
40  void RegisterCallback(IBluetoothCallback callback);
41  void UnregisterCallback(IBluetoothCallback callback);
42
43  boolean IsMultiAdvertisementSupported();
44
45  IBluetoothLowEnergy GetLowEnergyInterface();
46  IBluetoothLeAdvertiser GetLeAdvertiserInterface();
47  IBluetoothLeScanner GetLeScannerInterface();
48  IBluetoothGattClient GetGattClientInterface();
49  IBluetoothGattServer GetGattServerInterface();
50}
51