commit | 0a4fd675d12ec68e0c738c12664576cc97786514 | [log] [tgz] |
---|---|---|
author | Keun young Park <keunyoung@google.com> | Fri Dec 13 12:46:04 2019 -0800 |
committer | Keun young Park <keunyoung@google.com> | Mon Dec 16 16:24:41 2019 -0800 |
tree | 65d18182e7d5d49ae58a08ccf7ab9420c32a04dc | |
parent | 1c0acf199096e46c9b937e01fbbbae5e9a920af3 [diff] |
Fix race in waiting for policy setting in CarPackageManagerService - In original impl, if policy is set quickly, wait logic can be stuck forever. - Use queued waiting policies to check completion instead of blindly waiting. - Also removed unnecessary setPolicy step as all it is doing is to notify waiting client. Bug: 140732933 Test: atest CarServiceTest Change-Id: I177596633255f60aa5f158c0017287223b536c40 Merged-In: I177596633255f60aa5f158c0017287223b536c40 (cherry picked from commit 0a7b41adf7b35839c197f21f47bf4369cec7e1cc)
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.