commit | a40956b305660017d26f06f8f88120831af20589 | [log] [tgz] |
---|---|---|
author | Jahdiel Alvarez <jahdiel@google.com> | Thu Jan 20 18:36:12 2022 +0000 |
committer | Jahdiel Alvarez <jahdiel@google.com> | Fri Mar 04 17:00:54 2022 -0800 |
tree | 0106763721143e6f21132e077e87cadcad61c2c7 | |
parent | da2573d3539d374906af5836050e5688a614b9eb [diff] |
On VHAL death unsubscribe from VHAL heartbeats and remove vhal messages. - In WatchdogProcessService#terminate(), unsubscribe the mProperyChangeListener and remove MSG_VHAL_HEALTH_CHECK messages from the handler. - In WatchdogProcessService#handleHidlDeath, remove MSG_VHAL_HEALTH_CHECK messages from the handler. This ensures that WatchodgProcessService doesn't try to terminate VHAL after it died. Test: atest libwatchdog_test Bug: 207545622 Bug: 217405065 Merged-In: I0a203966708463ce626753f6b38586eec7216b60 (cherry-pick from commit cab3e5044342d2d984fed2f0de1ffe659a25e39e) Change-Id: I0a203966708463ce626753f6b38586eec7216b60
Native (C++) code format is required to be compatible with .clang-format file. Run
git clang-format --style=file --extension='h,cpp,cc' HEAD~
Note that clang-format is not desirable for Android java files. Therefore the command line above is limited to specific extensions.