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) |
| 25 | : AudioPolicyManager(clientInterface, true /*forTesting*/) { } |
| 26 | using AudioPolicyManager::getConfig; |
jiabin | b3f9804 | 2019-09-26 17:56:44 -0700 | [diff] [blame] | 27 | using AudioPolicyManager::loadConfig; |
Mikhail Naganov | ad3f8a1 | 2017-12-12 13:24:23 -0800 | [diff] [blame] | 28 | using AudioPolicyManager::initialize; |
Mikhail Naganov | 0756bbf | 2019-09-06 13:53:26 -0700 | [diff] [blame] | 29 | using AudioPolicyManager::getOutputs; |
Mikhail Naganov | c0d0498 | 2020-03-02 21:02:28 +0000 | [diff] [blame] | 30 | using AudioPolicyManager::getAvailableOutputDevices; |
| 31 | using AudioPolicyManager::getAvailableInputDevices; |
Kriti Dang | ef6be8f | 2020-11-05 11:58:19 +0100 | [diff] [blame] | 32 | using AudioPolicyManager::setSurroundFormatEnabled; |
Dean Wheatley | 8bee85a | 2021-02-10 16:02:23 +1100 | [diff] [blame] | 33 | using AudioPolicyManager::releaseMsdOutputPatches; |
| 34 | using AudioPolicyManager::setMsdOutputPatches; |
| 35 | using AudioPolicyManager::getAudioPatches; |
jiabin | 2b9d5a1 | 2021-12-10 01:06:29 +0000 | [diff] [blame] | 36 | using AudioPolicyManager::getDirectPlaybackSupport; |
Dorin Drimus | f2196d8 | 2022-01-03 12:11:18 +0100 | [diff] [blame] | 37 | using AudioPolicyManager::getDirectProfilesForAttributes; |
Nathalie Le Clair | b0775a7 | 2021-12-21 13:50:57 +0100 | [diff] [blame] | 38 | using AudioPolicyManager::setDeviceConnectionState; |
| 39 | using AudioPolicyManager::deviceToAudioPort; |
Ram Mohan M | 9334a20 | 2022-06-14 14:42:44 +0530 | [diff] [blame^] | 40 | using AudioPolicyManager::handleDeviceConfigChange; |
Mikhail Naganov | d0e2c74 | 2020-03-25 15:59:59 -0700 | [diff] [blame] | 41 | uint32_t getAudioPortGeneration() const { return mAudioPortGeneration; } |
Mikhail Naganov | ad3f8a1 | 2017-12-12 13:24:23 -0800 | [diff] [blame] | 42 | }; |
| 43 | |
| 44 | } // namespace android |