blob: fe58de527d8d0835bbfdfb616cb79295bfd530fa [file] [log] [blame]
Alice Kuo84e87672021-10-28 12:53:38 +08001/*
2 * Copyright 2021 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#pragma once
18
19#include <android/hardware/bluetooth/audio/2.2/types.h>
20
21#include "BluetoothAudioProvider.h"
22
23namespace android {
24namespace hardware {
25namespace bluetooth {
26namespace audio {
27namespace V2_2 {
28namespace implementation {
29
30class LeAudioOffloadAudioProvider : public BluetoothAudioProvider {
31 public:
32 LeAudioOffloadAudioProvider();
33
34 bool isValid(const V2_1::SessionType& sessionType) override;
35 bool isValid(const V2_0::SessionType& sessionType) override;
36
37 Return<void> startSession_2_1(const sp<V2_0::IBluetoothAudioPort>& hostIf,
38 const V2_1::AudioConfiguration& audioConfig,
39 startSession_cb _hidl_cb) override;
40
Jakub Pawlowski8d87eb72021-12-06 15:22:03 +010041 Return<void> startSession_2_2(const sp<V2_2::IBluetoothAudioPort>& hostIf,
Alice Kuo84e87672021-10-28 12:53:38 +080042 const AudioConfiguration& audioConfig,
43 startSession_cb _hidl_cb) override;
44
45 private:
46 Return<void> onSessionReady(startSession_cb _hidl_cb) override;
47};
48
49class LeAudioOffloadOutputAudioProvider : public LeAudioOffloadAudioProvider {
50 public:
51 LeAudioOffloadOutputAudioProvider();
52};
53
54class LeAudioOffloadInputAudioProvider : public LeAudioOffloadAudioProvider {
55 public:
56 LeAudioOffloadInputAudioProvider();
57};
58
59} // namespace implementation
60} // namespace V2_2
61} // namespace audio
62} // namespace bluetooth
63} // namespace hardware
64} // namespace android