commit | 110f516e91b5daae9e149e398edb0434851a37f2 | [log] [tgz] |
---|---|---|
author | Eric Jeong <ericjeong@google.com> | Sun Mar 15 19:04:04 2020 -0700 |
committer | Eric Jeong <ericjeong@google.com> | Mon Mar 16 12:51:02 2020 -0700 |
tree | f0133aae8514aa3d6be7b43a1dd6a297f3562196 | |
parent | 8600ad46f8dfb26fc47d687fc8ef7aa42f592820 [diff] |
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
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.