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.BluetoothLeBroadcastMetadata;
20 
21 /**
22  * Callback definitions for interacting with Le Audio Broadcaster
23  * @hide
24  */
25 oneway interface IBluetoothLeBroadcastCallback {
26     @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED)")
onBroadcastStarted(in int reason, in int broadcastId)27     void onBroadcastStarted(in int reason, in int broadcastId);
28     @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED)")
onBroadcastStartFailed(in int reason)29     void onBroadcastStartFailed(in int reason);
30     @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED)")
onBroadcastStopped(in int reason, in int broadcastId)31     void onBroadcastStopped(in int reason, in int broadcastId);
32     @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED)")
onBroadcastStopFailed(in int reason)33     void onBroadcastStopFailed(in int reason);
34     @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED)")
onPlaybackStarted(in int reason, in int broadcastId)35     void onPlaybackStarted(in int reason, in int broadcastId);
36     @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED)")
onPlaybackStopped(in int reason, in int broadcastId)37     void onPlaybackStopped(in int reason, in int broadcastId);
38     @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED)")
onBroadcastUpdated(in int reason, in int broadcastId)39     void onBroadcastUpdated(in int reason, in int broadcastId);
40     @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED)")
onBroadcastUpdateFailed(in int reason, in int broadcastId)41     void onBroadcastUpdateFailed(in int reason, in int broadcastId);
42     @JavaPassthrough(annotation="@android.annotation.RequiresPermission(android.Manifest.permission.BLUETOOTH_PRIVILEGED)")
onBroadcastMetadataChanged(in int broadcastId, in BluetoothLeBroadcastMetadata metadata)43     void onBroadcastMetadataChanged(in int broadcastId, in BluetoothLeBroadcastMetadata metadata);
44 }
45