1. 10 Jun, 2014 1 commit
  2. 28 May, 2014 1 commit
    • Eric Laurent's avatar
      DO NOT MERGE - audio policy: enable use of new AudioPolicyManager · e5cfbd53
      Eric Laurent authored
      Do not define USE_LEGACY_AUDIO_POLICY by default.
      By default, all devices will now use the new audio policy implementation
      in AudioPolicyManager.cpp
      
      To continue using the legacy audio policy implemented by
      AudioPolicyManagerBase in libhardware_legacy a device should
      define USE_LEGACY_AUDIO_POLICY in its makefile.
      
      Change-Id: I7b8cac3cbb24b11105ba6233501c7212f5985727
      e5cfbd53
  3. 23 May, 2014 1 commit
    • Eric Laurent's avatar
      audio policy: enable use of new AudioPolicyManager · 7a0aecb0
      Eric Laurent authored
      Do not define USE_LEGACY_AUDIO_POLICY by default.
      By default, all devices will now use the new audio policy implementation
      in AudioPolicyManager.cpp
      
      To continue using the legacy audio policy implemented by
      AudioPolicyManagerBase in libhardware_legacy a device should
      define USE_LEGACY_AUDIO_POLICY in its makefile.
      
      Change-Id: I7b8cac3cbb24b11105ba6233501c7212f5985727
      7a0aecb0
  4. 21 May, 2014 1 commit
    • Eric Laurent's avatar
      audio policy: split audio policy library · 98c6be0e
      Eric Laurent authored
      Split audio policy library into a service part and a policy part.
      This will allow OEMs to customize the policy part:
      - libaudiopolicyservice for the service.
      - libaudiopolicymanager for the policy.
      
      Two build options can be defined in device make file to select
      the policy library:
      - USE_LEGACY_AUDIO_POLICY = 1: this will use the legacy policy
      in hardware/libhardware_legacy implemented by AudioPolicyManagerBase class.
      This policy is loaded as a harware module and exposes the audio policy HAL
      defined in include/hardware/audio_policy.h and is in a library called
      audio_policy.XXX.so (e.g audio_policy.default.so)
      
      The legacy HAL will not be updated with new features.
      
      If USE_LEGACY_AUDIO_POLICY is not defined, the policy is implemented by
      a class named AudioPolicyManager exposing an interface defined in
      AudioPolicyInterface.h.
      The corresponding library is libaudiopolicymanager.so.
      
      New features will be added only to AudioPolicyInterface.h
      
      The default implementation is provided here in file AudioPolicyManager.cpp
      
      OEMs wanting to cutomize the policy can implement the AudioPolicyManager class
      and provide the libaudiopolicymanager.so library.
      In this case the device make file should define:
      - USE_CUSTOM_AUDIO_POLICY = 1
      
      For now, USE_LEGACY_AUDIO_POLICY = 1 is forced in audio policy service make file.
      This will be removed when the new audio policy is enabled.
      
      Change-Id: I066799dacc9b182b468a43d48ff7798c9109a414
      98c6be0e
  5. 18 Mar, 2014 1 commit
    • Eric Laurent's avatar
      audio policy: add option to use new policy manager · dce54a14
      Eric Laurent authored
      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
      dce54a14
  6. 11 Mar, 2014 1 commit
  7. 30 Oct, 2012 2 commits