Fix AudioFlinger TimeCheck
The conversion of IAudioFlinger to AIDL resulted in a regression in
its watchdog behavior. This change fixes that by allowing the
implementation to fully wrap the onTransact() call rather than just
prepend to it using onPreTransact().
Fixes: 187383878
Test: Added a long wait in createTrack, as described in the bug and
watched to logs to confirm that the watchdog kills the process.
Change-Id: I3cceb2b37d27dbea2060ced3659e11bde363f86d
diff --git a/services/audioflinger/AudioFlinger.h b/services/audioflinger/AudioFlinger.h
index c66ecb0..4b03d10 100644
--- a/services/audioflinger/AudioFlinger.h
+++ b/services/audioflinger/AudioFlinger.h
@@ -272,7 +272,8 @@
virtual status_t setVibratorInfos(const std::vector<media::AudioVibratorInfo>& vibratorInfos);
- status_t onPreTransact(TransactionCode code, const Parcel& data, uint32_t flags) override;
+ status_t onTransactWrapper(TransactionCode code, const Parcel& data, uint32_t flags,
+ const std::function<status_t()>& delegate) override;
// end of IAudioFlinger interface