commit | 39da9c8db3f9cb2b8ac3cd7296f38a74889556d7 | [log] [tgz] |
---|---|---|
author | Jordan Jozwiak <jjoz@google.com> | Fri Oct 25 10:46:38 2019 -0700 |
committer | Jordan Jozwiak <jjoz@google.com> | Tue Nov 05 15:54:33 2019 -0800 |
tree | f778960c7eb4fdc73cf68a5181d94507dcb9f8bb | |
parent | 4d1321608b3616b65862cbe18684ddda94bca50d [diff] |
Fix drive state property events synchronization The heart of the deadlock is caused by dispatching callbacks. By doing the dispatch logic on a seprate thread, we avoid the deadlock scenario. Ideally the client that registers with CarDrivingStateService should be able to specify the handler used for receiving callbacks, however, that would require an API change and is out of scope for this fix. This change should be simple and understandable enough to be considered low-risk for qpr2. Bug: 142804287 Test: atest CarUxRestrictionsManagerServiceTest Change-Id: I875c83ca46e4ce5d9d1b36b2589f1ea99023c3fa
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.