summaryrefslogtreecommitdiffstats
blob: 666419dbd563c089f440a5ac7eff9f80d36c6054 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*
 * Copyright (C) 2018 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package android.hardware.bluetooth.a2dp@1.0;

/**
 * HAL interface for Bluetooth A2DP Offload functionality where
 * the encoding of the A2DP data packets is offloaded to platform
 * specific encoders. The A2DP control path is maintained in the
 * Bluetooth stack.
 *
 * This interface is from HAL server to HAL client.
 *
 * The HAL server must call into the IBluetoothAudioHost to initiate
 * the start, suspend and stop of the streaming operation. These
 * calls return immediately and the results, if any, are send over
 * the IBluetoothAudioOffload interface.
 */

interface IBluetoothAudioHost {
    /**
     * Invoked when the start stream is requested from HAL server
     * to HAL client. This indicates that the HAL server
     * has initialized the platform for streaming use case, and the
     * HAL client can proceed with the streaming procedure. The
     * result of the operation must be provided by the HAL
     * client using the IBluetoothAudioOffload interface.
     */
    oneway startStream();

    /**
     * Invoked when the suspend stream is requested from HAL server
     * to HAL client. This indicates that the HAL server
     * wants to suspend the streaming procedure. The result of the
     * operation must be provided by the HAL client using the
     * IBluetoothAudioOffload interface.
     */
    oneway suspendStream();

    /**
     * Invoked when the stop stream is requested from HAL server
     * to HAL client. This indicates that the HAL server wants to
     * stop and reset the streaming procedure. There is no result
     * provided by the HAL client for this call.
     */
    oneway stopStream();

};