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 
17 package android.bluetooth;
18 
19 import android.bluetooth.BluetoothRemoteDeviceProps;
20 
21 oneway interface IBluetoothCallback {
OnBluetoothStateChange(int prev_state, int new_state)22     void OnBluetoothStateChange(int prev_state, int new_state);
OnScanEnableChanged(boolean scan_enabled)23     void OnScanEnableChanged(boolean scan_enabled);
OnDeviceConnectionStateChanged( String device_address, boolean connected)24     void OnDeviceConnectionStateChanged(
25         String device_address,
26         boolean connected);
OnSspRequest( String device_address, String device_name, int cod, int pairing_variant, int pass_key)27     void OnSspRequest(
28         String device_address,
29         String device_name,
30         int cod,
31         int pairing_variant,
32         int pass_key);
OnGetBondedDevices(int status, in String[] device_addresses)33     void OnGetBondedDevices(int status, in String[] device_addresses);
OnBondStateChanged(int status, String device_address, int state)34     void OnBondStateChanged(int status, String device_address, int state);
OnGetRemoteDeviceProperties( int status, String device_address, in BluetoothRemoteDeviceProps props)35     void OnGetRemoteDeviceProperties(
36         int status,
37         String device_address,
38         in BluetoothRemoteDeviceProps props);
OnDeviceFound( in BluetoothRemoteDeviceProps props)39     void OnDeviceFound(
40         in BluetoothRemoteDeviceProps props);
41 }
42