commit | 75a6ea2e588ef6923ed6d603749ca4586b6ac1b2 | [log] [tgz] |
---|---|---|
author | Lakshman Annadorai <lakshmana@google.com> | Fri Apr 30 10:40:08 2021 -0700 |
committer | Lakshman Annadorai <lakshmana@google.com> | Fri May 14 21:01:55 2021 +0000 |
tree | 69973eba71cbb35900e604886576adf0376b1602 | |
parent | 8040ee4f45cbf94b33c5fdfb45220437c04382da [diff] |
Re-add listener impl to CarService only when there are other listeners. Manager's listener implementation is removed from CarService when there are no more listeners for a specific resource type. This implementation should be re-added to CarService only when there are listeners available for other resource types. This behavior is tested by verifying there are no more unexpected interactions with CarService at the end of the unit tests. Test: atest CarWatchdogManagerUnitTest Fixes: 186865583 Change-Id: I3679973e7a8da29317a60b814289982621a9c084
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.