diff options
author | Eric Laurent <elaurent@google.com> | 2009-11-02 10:29:02 -0800 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2009-11-03 09:33:35 -0800 |
commit | f4ee40e26ec43e17359ff5788565349a9aa71908 (patch) | |
tree | dca4b87fd01acc9c0897e3d5553e3cbcd11cc585 /libs/audioflinger/AudioPolicyService.h | |
parent | 8637759a1d34a4adda292579d5f8790587659235 (diff) | |
download | frameworks_base-f4ee40e26ec43e17359ff5788565349a9aa71908.zip frameworks_base-f4ee40e26ec43e17359ff5788565349a9aa71908.tar.gz frameworks_base-f4ee40e26ec43e17359ff5788565349a9aa71908.tar.bz2 |
Log for issue 2203561.
Implemented AudioPolicyService dump().
Added detailed dump for AudioPolicyManageriGeneric when AudioPolicyService is dumped.
Diffstat (limited to 'libs/audioflinger/AudioPolicyService.h')
-rw-r--r-- | libs/audioflinger/AudioPolicyService.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libs/audioflinger/AudioPolicyService.h b/libs/audioflinger/AudioPolicyService.h index 11a1214..7c1bb85 100644 --- a/libs/audioflinger/AudioPolicyService.h +++ b/libs/audioflinger/AudioPolicyService.h @@ -111,6 +111,8 @@ private: AudioPolicyService(); virtual ~AudioPolicyService(); + status_t dumpInternals(int fd); + // Thread used for tone playback and to send audio config commands to audio flinger // For tone playback, using a separate thread is necessary to avoid deadlock with mLock because startTone() // and stopTone() are normally called with mLock locked and requesting a tone start or stop will cause @@ -133,6 +135,8 @@ private: AudioCommandThread (); virtual ~AudioCommandThread(); + status_t dump(int fd); + // Thread virtuals virtual void onFirstRef(); virtual bool threadLoop(); @@ -149,6 +153,8 @@ private: // descriptor for requested tone playback event class AudioCommand { public: + void dump(char* buffer, size_t size); + int mCommand; // START_TONE, STOP_TONE ... nsecs_t mTime; // time stamp Condition mCond; // condition for status return @@ -188,7 +194,7 @@ private: }; // Internal dump utilities. - status_t dumpPermissionDenial(int fd, const Vector<String16>& args); + status_t dumpPermissionDenial(int fd); Mutex mLock; // prevents concurrent access to AudioPolicy manager functions changing device |