OSDN Git Service

audio policy: add option to use new policy manager
authorEric Laurent <elaurent@google.com>
Mon, 10 Mar 2014 19:19:46 +0000 (12:19 -0700)
committerEric Laurent <elaurent@google.com>
Tue, 18 Mar 2014 17:55:33 +0000 (10:55 -0700)
commitdce54a1492c410ad0d93253b341fb33305337505
tree2580556580832583ce5cd5a640684b8dc0948783
parent0fab43120972dfbf4d6f0ec19ab470131b6c8b09
audio policy: add option to use new policy manager

Add build option USE_LEGACY_AUDIO_POLICY to use either new
audio policy manager in local AudioPolicyManager.cpp
or the legacy AudioPolicyManagerBase.cpp via the policy HAL.

New features will be implemented only by the new audio policy manager.
Platform customiization will be by config file or new policy HAL.

AudioPolicyClientImplLegacy.cpp copied from AudioPolicyClientImpl.cpp
AudioPolicyInterfaceImplLegacy.cpp copied from AudioPolicyInterfaceImpl.cpp

New implementations of AudioPolicyInterface and AudioPolicyClient talking directly to
AudioPolicyManager.

Change-Id: I7a320883a1de13de2c9295343e996addf2f3c154
CleanSpec.mk
services/audiopolicy/Android.mk
services/audiopolicy/AudioPolicyClientImpl.cpp
services/audiopolicy/AudioPolicyClientImplLegacy.cpp [new file with mode: 0644]
services/audiopolicy/AudioPolicyInterface.h
services/audiopolicy/AudioPolicyInterfaceImpl.cpp
services/audiopolicy/AudioPolicyInterfaceImplLegacy.cpp [new file with mode: 0644]
services/audiopolicy/AudioPolicyService.cpp
services/audiopolicy/AudioPolicyService.h