diff options
author | François Gaffie <francois.gaffie@intel.com> | 2015-03-18 16:55:35 +0100 |
---|---|---|
committer | Jean-Michel Trivi <jmtrivi@google.com> | 2015-04-01 10:19:16 -0700 |
commit | ad3183e2d4cecd02f6261270a7ea1c68be0efa0f (patch) | |
tree | 5c08be8ee10c2525c0df9dc42529d5fae0240b74 /services/audiopolicy/managerdefault/AudioOutputDescriptor.h | |
parent | 4de725a32a825bd26d9fc0ec6901ffffa92778e1 (diff) | |
download | frameworks_av-ad3183e2d4cecd02f6261270a7ea1c68be0efa0f.zip frameworks_av-ad3183e2d4cecd02f6261270a7ea1c68be0efa0f.tar.gz frameworks_av-ad3183e2d4cecd02f6261270a7ea1c68be0efa0f.tar.bz2 |
Audio Policy Refactor: reorganise headers inclusion
This patch reoganises the headers inclusion in order to prepare
the split of managerdefault into a manager and a separated lib
of pillar policy elements.
It also moves back the isStrategyActive to the manager to avoid
any dependancies from this pillars to the manager.
Change-Id: I1a35c45d86db7a3878a40dc7d6858dfea37c5ac9
Signed-off-by: François Gaffie <francois.gaffie@intel.com>
Diffstat (limited to 'services/audiopolicy/managerdefault/AudioOutputDescriptor.h')
-rw-r--r-- | services/audiopolicy/managerdefault/AudioOutputDescriptor.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/services/audiopolicy/managerdefault/AudioOutputDescriptor.h b/services/audiopolicy/managerdefault/AudioOutputDescriptor.h index 32f46e4..f7a06ee 100644 --- a/services/audiopolicy/managerdefault/AudioOutputDescriptor.h +++ b/services/audiopolicy/managerdefault/AudioOutputDescriptor.h @@ -14,10 +14,19 @@ * limitations under the License. */ +#pragma once + +#include "Ports.h" #include "ApmImplDefinitions.h" +#include <utils/Errors.h> +#include <utils/Timers.h> +#include <system/audio.h> namespace android { +class IOProfile; +class AudioMix; + // descriptor for audio outputs. Used to maintain current configuration of each opened audio output // and keep track of the usage of this output by each audio stream type. class AudioOutputDescriptor: public AudioPortConfig @@ -38,9 +47,6 @@ public: bool isStreamActive(audio_stream_type_t stream, uint32_t inPastMs = 0, nsecs_t sysTime = 0) const; - bool isStrategyActive(routing_strategy strategy, - uint32_t inPastMs = 0, - nsecs_t sysTime = 0) const; virtual void toAudioPortConfig(struct audio_port_config *dstConfig, const struct audio_port_config *srcConfig = NULL) const; |