Mikhail Naganov | ad3f8a1 | 2017-12-12 13:24:23 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2017 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 | #pragma once |
| 17 | |
| 18 | #include "managerdefault/AudioPolicyManager.h" |
| 19 | |
| 20 | namespace android { |
| 21 | |
| 22 | class AudioPolicyTestManager : public AudioPolicyManager { |
| 23 | public: |
| 24 | explicit AudioPolicyTestManager(AudioPolicyClientInterface *clientInterface) |
Mikhail Naganov | abb0478 | 2023-05-02 13:56:01 -0700 | [diff] [blame] | 25 | : AudioPolicyTestManager(AudioPolicyConfig::createDefault(), clientInterface) {} |
Mikhail Naganov | b0fbc1b | 2023-04-28 13:06:32 -0700 | [diff] [blame] | 26 | AudioPolicyTestManager(const sp<const AudioPolicyConfig>& config, |
| 27 | AudioPolicyClientInterface *clientInterface) |
Mikhail Naganov | abb0478 | 2023-05-02 13:56:01 -0700 | [diff] [blame] | 28 | : AudioPolicyManager(config, |
| 29 | loadApmEngineLibraryAndCreateEngine(config->getEngineLibraryNameSuffix()), |
| 30 | clientInterface) {} |
Mikhail Naganov | ad3f8a1 | 2017-12-12 13:24:23 -0800 | [diff] [blame] | 31 | using AudioPolicyManager::getConfig; |
| 32 | using AudioPolicyManager::initialize; |
Mikhail Naganov | 0756bbf | 2019-09-06 13:53:26 -0700 | [diff] [blame] | 33 | using AudioPolicyManager::getOutputs; |
jiabin | de7ae44 | 2024-02-06 00:57:36 +0000 | [diff] [blame] | 34 | using AudioPolicyManager::getInputs; |
Mikhail Naganov | c0d0498 | 2020-03-02 21:02:28 +0000 | [diff] [blame] | 35 | using AudioPolicyManager::getAvailableOutputDevices; |
| 36 | using AudioPolicyManager::getAvailableInputDevices; |
Mikhail Naganov | 2b61ab5 | 2024-05-30 16:56:25 -0700 | [diff] [blame] | 37 | using AudioPolicyManager::checkInputsForDevice; |
Kriti Dang | ef6be8f | 2020-11-05 11:58:19 +0100 | [diff] [blame] | 38 | using AudioPolicyManager::setSurroundFormatEnabled; |
Dean Wheatley | 8bee85a | 2021-02-10 16:02:23 +1100 | [diff] [blame] | 39 | using AudioPolicyManager::releaseMsdOutputPatches; |
| 40 | using AudioPolicyManager::setMsdOutputPatches; |
| 41 | using AudioPolicyManager::getAudioPatches; |
jiabin | 2b9d5a1 | 2021-12-10 01:06:29 +0000 | [diff] [blame] | 42 | using AudioPolicyManager::getDirectPlaybackSupport; |
Dorin Drimus | f2196d8 | 2022-01-03 12:11:18 +0100 | [diff] [blame] | 43 | using AudioPolicyManager::getDirectProfilesForAttributes; |
Nathalie Le Clair | b0775a7 | 2021-12-21 13:50:57 +0100 | [diff] [blame] | 44 | using AudioPolicyManager::setDeviceConnectionState; |
| 45 | using AudioPolicyManager::deviceToAudioPort; |
Ram Mohan M | 9334a20 | 2022-06-14 14:42:44 +0530 | [diff] [blame] | 46 | using AudioPolicyManager::handleDeviceConfigChange; |
Mikhail Naganov | d0e2c74 | 2020-03-25 15:59:59 -0700 | [diff] [blame] | 47 | uint32_t getAudioPortGeneration() const { return mAudioPortGeneration; } |
Mikhail Naganov | 2b61ab5 | 2024-05-30 16:56:25 -0700 | [diff] [blame] | 48 | HwModuleCollection getHwModules() const { return mHwModules; } |
Mikhail Naganov | ad3f8a1 | 2017-12-12 13:24:23 -0800 | [diff] [blame] | 49 | }; |
| 50 | |
| 51 | } // namespace android |