summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/AudioPolicyService.h
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2011-02-04 14:00:17 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-02-04 14:00:17 -0800
commit802da7bc462f6f9df6e681cc75c51dc0a056a4a1 (patch)
tree7c790352639bd38de380849726a10e7e47e04c5f /services/audioflinger/AudioPolicyService.h
parentca0dd6114d7f5195373b40ff477b17a1b778c13d (diff)
parentd2dcb08808aed82218b258726fa66f8e095a3f9c (diff)
downloadframeworks_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.h18
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
-
-
-
-
-
-
-
-