diff options
author | Eric Laurent <elaurent@google.com> | 2014-10-09 17:49:00 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2014-10-10 10:51:37 -0700 |
commit | f5ada6edcc83bb1b313abcd4c4fbdc4f7724f04d (patch) | |
tree | 7c96b4c90e05dedccb318ca43fd4c3bf82e7204b /services | |
parent | a4c3d8f0f9aab53b106d95e6139e0465908909f4 (diff) | |
download | frameworks_av-f5ada6edcc83bb1b313abcd4c4fbdc4f7724f04d.zip frameworks_av-f5ada6edcc83bb1b313abcd4c4fbdc4f7724f04d.tar.gz frameworks_av-f5ada6edcc83bb1b313abcd4c4fbdc4f7724f04d.tar.bz2 |
audio policy: move intializations to onFirstRef()
Bug: 17896324.
Change-Id: I3bb74f5397142ac354bd815eb362e5ddacdcb463
Diffstat (limited to 'services')
-rw-r--r-- | services/audiopolicy/AudioPolicyService.cpp | 4 | ||||
-rw-r--r-- | services/audiopolicy/AudioPolicyService.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/services/audiopolicy/AudioPolicyService.cpp b/services/audiopolicy/AudioPolicyService.cpp index 4761a13..06a7e84 100644 --- a/services/audiopolicy/AudioPolicyService.cpp +++ b/services/audiopolicy/AudioPolicyService.cpp @@ -61,6 +61,10 @@ 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; int forced_val; diff --git a/services/audiopolicy/AudioPolicyService.h b/services/audiopolicy/AudioPolicyService.h index 2cea40b..4e68ab1 100644 --- a/services/audiopolicy/AudioPolicyService.h +++ b/services/audiopolicy/AudioPolicyService.h @@ -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 |