Make KitchenSink app a watchdog client to test watchdog service

- KitchenSink app registers itself as a car watchdog client.
- When a specific intent is recieved, the app starts working as a
client.
- To start as a client, call
adb shell am start -n com.google.android.car.kitchensink/.KitchenSinkActivity \
--es "watchdog" "[timeout] [not_respond_after] [inactive_main_after]"
- timeout: critical|moderate|normal
- not_respond_after: the client doesn't respond after the time in sec
- inactive_main_after: the main thread becomes inactive after the time
in sec
- To test the case of main thread being inactive, use "critical" for
timeout.

Bug: 149332259
Test: Run the above command and make sure KitchenSink app is terminated.
Change-Id: Ib66c330e6920185bfba2d89f16821cf83470ddc1
2 files changed
tree: f0133aae8514aa3d6be7b43a1dd6a297f3562196
  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.