1 /*
2  * Copyright 2022 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.BluetoothDevice;
20 import android.bluetooth.BluetoothLeBroadcastMetadata;
21 import android.bluetooth.BluetoothLeBroadcastReceiveState;
22 
23 /**
24 * Callback definitions for interacting with LE broadcast assistant service
25 *
26 * @hide
27 */
28 interface IBluetoothLeBroadcastAssistantCallback {
onSearchStarted(in int reason)29     void onSearchStarted(in int reason);
onSearchStartFailed(in int reason)30     void onSearchStartFailed(in int reason);
onSearchStopped(in int reason)31     void onSearchStopped(in int reason);
onSearchStopFailed(in int reason)32     void onSearchStopFailed(in int reason);
onSourceFound(in BluetoothLeBroadcastMetadata source)33     void onSourceFound(in BluetoothLeBroadcastMetadata source);
onSourceAdded(in BluetoothDevice sink, in int sourceId, in int reason)34     void onSourceAdded(in BluetoothDevice sink, in int sourceId, in int reason);
onSourceAddFailed(in BluetoothDevice sink, in BluetoothLeBroadcastMetadata source, in int reason)35     void onSourceAddFailed(in BluetoothDevice sink, in BluetoothLeBroadcastMetadata source,
36             in int reason);
onSourceModified(in BluetoothDevice sink, in int sourceId, in int reason)37     void onSourceModified(in BluetoothDevice sink, in int sourceId, in int reason);
onSourceModifyFailed(in BluetoothDevice sink, in int sourceId, in int reason)38     void onSourceModifyFailed(in BluetoothDevice sink, in int sourceId, in int reason);
onSourceRemoved(in BluetoothDevice sink, in int sourceId, in int reason)39     void onSourceRemoved(in BluetoothDevice sink, in int sourceId, in int reason);
onSourceRemoveFailed(in BluetoothDevice sink, in int sourceId, in int reason)40     void onSourceRemoveFailed(in BluetoothDevice sink, in int sourceId, in int reason);
onReceiveStateChanged(in BluetoothDevice sink, in int sourceId, in BluetoothLeBroadcastReceiveState state)41     void onReceiveStateChanged(in BluetoothDevice sink, in int sourceId,
42             in BluetoothLeBroadcastReceiveState state);
onSourceLost(in int broadcastId)43     void onSourceLost(in int broadcastId);
44 }
45