Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4aa7cb5c authored by Eric Laurent's avatar Eric Laurent Committed by Android Git Automerger
Browse files

am ae9aec99: am 32c7e2e9: am 733ee8aa: am f5ada6ed: audio policy: move...

am ae9aec99: am 32c7e2e9: am 733ee8aa: am f5ada6ed: audio policy: move intializations to onFirstRef()

* commit 'ae9aec99':
  audio policy: move intializations to onFirstRef()
parents 115ba24d ae9aec99
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -60,6 +60,10 @@ namespace {
AudioPolicyService::AudioPolicyService()
    : BnAudioPolicyService(), mpAudioPolicyDev(NULL), mpAudioPolicy(NULL),
      mAudioPolicyManager(NULL), mAudioPolicyClient(NULL), mPhoneState(AUDIO_MODE_INVALID)
{
}

void AudioPolicyService::onFirstRef()
{
    char value[PROPERTY_VALUE_MAX];
    const struct hw_module_t *module;
+3 −0
Original line number Diff line number Diff line
@@ -134,6 +134,9 @@ public:
    // IBinder::DeathRecipient
    virtual     void        binderDied(const wp<IBinder>& who);

    // RefBase
    virtual     void        onFirstRef();

    //
    // Helpers for the struct audio_policy_service_ops implementation.
    // This is used by the audio policy manager for certain operations that