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; |
Mikhail Naganov | d0e2c74 | 2020-03-25 15:59:59 -0700 | [diff] [blame] | 33 | uint32_t getAudioPortGeneration() const { return mAudioPortGeneration; } |
Mikhail Naganov | ad3f8a1 | 2017-12-12 13:24:23 -0800 | [diff] [blame] | 34 | }; |
| 35 | |
| 36 | } // namespace android |