commit | 4cbb5f4654f93e956f0cdb4d6e5f255b155338b5 | [log] [tgz] |
---|---|---|
author | Eric Jeong <ericjeong@google.com> | Thu Mar 05 13:58:36 2020 -0800 |
committer | Eric Jeong <ericjeong@google.com> | Mon Mar 16 17:14:47 2020 -0700 |
tree | 2c60bb47d73372e3cd672b1a424be0aa918011ae | |
parent | 8fdb7c0fa28e45c8a1e6fea0e5177942f648eb4c [diff] |
Add test car watchdog client - Test client is started by running vendor app. - Using dumpsys, various test cases can be set. - Currently, only ANR is supported. - Usage: carwatchdog_testclient [timeout] [inactive_after] [terminate_after] [--forcedkill] - timeout: critical|moderate|normal - inactive_after: number in seconds (-1 for never being inactive) - terminate_after: number in seconds (-1 for running forever) - [--forcedkill]: terminate without unregistering from car watchdog daemon Bug: 149332259 Test: Run carwatchdog_testclient critical 5 10, and check if the process terminates after 10 seconds. Change-Id: Ib4de222e678ec667eea761f470bfd2531aae92ee
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.