commit | ebf3a88139a0233d3d3e7af9a76f85787c11e3eb | [log] [tgz] |
---|---|---|
author | Bin Tan <bint@google.com> | Wed Jul 21 18:15:52 2021 +0000 |
committer | Bin Tan <bint@google.com> | Wed Jul 21 20:32:35 2021 +0000 |
tree | c80234c7a8a3a90e7e392211d5caeeb91315e307 | |
parent | 954185a9df91e62c18f2a63d6fe23831c24b7f04 [diff] |
Remove redundant silent mode check SilentModeHandler uses FileObserver to monitor HWState file change. The delay of the propagation of the change to kernel silent mode change could break the immediately status assert. However, assertSilentMode method already check the status change with a timeout mechanism. Therefore, the pre-check is redundant. Bug: 194206039, 194205914 Test: atest CarServiceUnitTest:SilentModeHandlerUnitTest over seahawk, emulator and cuttlefish Change-Id: I8b3328a0fd913d580baf3a581b79e60c9b2332f9
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.