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
9 files changed
tree: 2c60bb47d73372e3cd672b1a424be0aa918011ae
  1. car-bugreportd/
  2. car-default-input-service/
  3. car-lib/
  4. car-maps-placeholder/
  5. car-systemtest-lib/
  6. car-test-lib/
  7. car-usb-handler/
  8. car_product/
  9. computepipe/
  10. EncryptionRunner/
  11. evs/
  12. experimental/
  13. FrameworkPackageStubs/
  14. obd2-lib/
  15. procfs-inspector/
  16. service/
  17. surround_view/
  18. tests/
  19. tools/
  20. user/
  21. vehicle-hal-support-lib/
  22. watchdog/
  23. .clang-format
  24. .gitignore
  25. Android.mk
  26. CleanSpec.mk
  27. CPPLINT.cfg
  28. OWNERS
  29. PREUPLOAD.cfg
  30. README.md
README.md

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.