diff options
author | Glenn Kasten <gkasten@google.com> | 2011-02-04 14:00:17 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-02-04 14:00:17 -0800 |
commit | 802da7bc462f6f9df6e681cc75c51dc0a056a4a1 (patch) | |
tree | 7c790352639bd38de380849726a10e7e47e04c5f /services/audioflinger/AudioPolicyService.h | |
parent | ca0dd6114d7f5195373b40ff477b17a1b778c13d (diff) | |
parent | d2dcb08808aed82218b258726fa66f8e095a3f9c (diff) | |
download | frameworks_av-802da7bc462f6f9df6e681cc75c51dc0a056a4a1.zip frameworks_av-802da7bc462f6f9df6e681cc75c51dc0a056a4a1.tar.gz frameworks_av-802da7bc462f6f9df6e681cc75c51dc0a056a4a1.tar.bz2 |
Merge "Bug 3366668 Use BinderService template"
Diffstat (limited to 'services/audioflinger/AudioPolicyService.h')
-rw-r--r-- | services/audioflinger/AudioPolicyService.h | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/services/audioflinger/AudioPolicyService.h b/services/audioflinger/AudioPolicyService.h index 54af1f1..4749b8b 100644 --- a/services/audioflinger/AudioPolicyService.h +++ b/services/audioflinger/AudioPolicyService.h @@ -21,6 +21,7 @@ #include <hardware_legacy/AudioPolicyInterface.h> #include <media/ToneGenerator.h> #include <utils/Vector.h> +#include <binder/BinderService.h> namespace android { @@ -28,12 +29,17 @@ class String8; // ---------------------------------------------------------------------------- -class AudioPolicyService: public BnAudioPolicyService, public AudioPolicyClientInterface, +class AudioPolicyService : + public BinderService<AudioPolicyService>, + public BnAudioPolicyService, + public AudioPolicyClientInterface, public IBinder::DeathRecipient { + friend class BinderService<AudioPolicyService>; public: - static void instantiate(); + // for BinderService + static const char *getServiceName() { return "media.audio_policy"; } virtual status_t dump(int fd, const Vector<String16>& args); @@ -241,11 +247,3 @@ private: }; // namespace android #endif // ANDROID_AUDIOPOLICYSERVICE_H - - - - - - - - |