commit | 920f6572c648ad43a701f6a7b8bd413050f63dc0 | [log] [tgz] |
---|---|---|
author | Andy Hung <hunga@google.com> | Thu Oct 06 12:09:49 2022 -0700 |
committer | Andy Hung <hunga@google.com> | Thu Mar 30 18:48:14 2023 -0700 |
tree | 652138650858109adbdba5a041c4e211e7a11826 | |
parent | 7dd4c76232939e595726f460efd9e11aa69b5b35 [diff] [blame] |
AudioFlinger: Add clang tidy checks on build First pass just enables warnings. Test: compiles Bug: 252907478 Merged-In: I3d0622ab908b85adb1913d8482d55e1950fdccc0 Change-Id: I3d0622ab908b85adb1913d8482d55e1950fdccc0
diff --git a/services/audioflinger/DeviceEffectManager.cpp b/services/audioflinger/DeviceEffectManager.cpp index 9105500..2f61a01 100644 --- a/services/audioflinger/DeviceEffectManager.cpp +++ b/services/audioflinger/DeviceEffectManager.cpp
@@ -145,7 +145,9 @@ return status; } -void AudioFlinger::DeviceEffectManager::dump(int fd) { +void AudioFlinger::DeviceEffectManager::dump(int fd) +NO_THREAD_SAFETY_ANALYSIS // conditional try lock +{ const bool locked = dumpTryLock(mLock); if (!locked) { String8 result("DeviceEffectManager may be deadlocked\n");