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

Commit 733ee8aa authored by Eric Laurent's avatar Eric Laurent Committed by Android Git Automerger
Browse files

am f5ada6ed: audio policy: move intializations to onFirstRef()

* commit 'f5ada6ed':
  audio policy: move intializations to onFirstRef()
parents 6f559515 f5ada6ed
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