commit | 2086a3cb41809c4ab9af404508ee77664b97df79 | [log] [tgz] |
---|---|---|
author | Yu Shan <shanyu@google.com> | Fri Apr 01 17:00:38 2022 -0700 |
committer | Yu Shan <shanyu@google.com> | Fri Apr 08 11:13:03 2022 -0700 |
tree | 11a7e5c421938442c30e2a756d4b5b9d7ec5df6e | |
parent | 057c2c95b59c3f70631223cb8fad5b72eb8f7434 [diff] |
Properly handle binder death. Property handle binder death in CarPropertyService.We need to make sure no new resources are allocated between binderDied is called and resource cleanup is done. This CL introduces a variable mBinderDied to prevent allocating resources when the binder is already dead. Test: Presubmit Manually run on gcar_emu for 2 days, saw 8 error messages due to client crash and no log spam. Bug: 210894734 Change-Id: I773bc66594f9054117d7c4f45e72435f179822b4 Merged-In: I773bc66594f9054117d7c4f45e72435f179822b4
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.