commit | 8d970a4ba62629db52c9d73b8cfd5ca2124b0d7e | [log] [tgz] |
---|---|---|
author | Mikhail Petrov <mikhail.petrov@gm.com> | Mon Apr 26 20:08:12 2021 -0700 |
committer | Eric Jeong <ericjeong@google.com> | Thu Apr 29 14:18:01 2021 -0700 |
tree | bcbebbce5168472e07d5e1ab6550a1ba02eefd83 | |
parent | 7e15fd44e37c431815548f6dcc4ce05a384eaf7a [diff] |
Fix race condition in SHUTDOWN_PREPARE handling Race condition happens in CarPowerManagementService during SHUTDOWN_PREPARE request handling. If all listeners for power state changes reply back with completion to CPMS before it updates mProcessingStartTime, processing is not marked as completed until default (15 mins) timeout is triggered. Test: manual test bug: 184883568 Signed-off-by: Mikhail Petrov <mikhail.petrov@gm.com> Change-Id: I17b052d4824fdbb78673d1df9e4405c306b0d221
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.