Alice Kuo | 84e8767 | 2021-10-28 12:53:38 +0800 | [diff] [blame] | 1 | /* |
| 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 | |
| 23 | namespace android { |
| 24 | namespace hardware { |
| 25 | namespace bluetooth { |
| 26 | namespace audio { |
| 27 | namespace V2_2 { |
| 28 | namespace implementation { |
| 29 | |
| 30 | class 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 Pawlowski | 8d87eb7 | 2021-12-06 15:22:03 +0100 | [diff] [blame] | 41 | Return<void> startSession_2_2(const sp<V2_2::IBluetoothAudioPort>& hostIf, |
Alice Kuo | 84e8767 | 2021-10-28 12:53:38 +0800 | [diff] [blame] | 42 | const AudioConfiguration& audioConfig, |
| 43 | startSession_cb _hidl_cb) override; |
| 44 | |
| 45 | private: |
| 46 | Return<void> onSessionReady(startSession_cb _hidl_cb) override; |
| 47 | }; |
| 48 | |
| 49 | class LeAudioOffloadOutputAudioProvider : public LeAudioOffloadAudioProvider { |
| 50 | public: |
| 51 | LeAudioOffloadOutputAudioProvider(); |
| 52 | }; |
| 53 | |
| 54 | class 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 |