commit | 1b36608d892887b1684918b44588a01fb374355a | [log] [tgz] |
---|---|---|
author | Lakshman Annadorai <lakshmana@google.com> | Tue Jun 01 13:57:04 2021 -0700 |
committer | Lakshman Annadorai <lakshmana@google.com> | Mon Jun 07 09:13:58 2021 -0700 |
tree | 532f78c521962e3b5a0d3599813fe115076f62d6 | |
parent | af207dbe187a605235c1184ed86e1106ee883099 [diff] |
Read the on-device XML configurations on initialization. Update watchdog daemon to read the on-device resource overuse configurations, that are stored as XML files, on initialization. When latest configs are available under the data partition, watchdog daemon uses the latest configs. Otherwise, the XML configurations from the build are used. If all of these fail, watchdog daemon fallbacks to using int max as the default thresholds. When either of the vendor or third-party configurations aren't available, watchdog daemon uses the system component's thresholds for the vendor or third-party components. Test: atest libwatchdog_test Bug: 186445673 Change-Id: I94e08d618ff0cd164aadf4d37eae93e19b2dae67
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.