commit | 69d6805ec5efa1cee36eef55a02dad9abfb0486c | [log] [tgz] |
---|---|---|
author | Eric Jeong <ericjeong@google.com> | Wed Dec 16 17:54:00 2020 -0800 |
committer | Eric Yin <ericyin@google.com> | Thu Jan 07 11:14:00 2021 -0800 |
tree | 24e8ed0411d77ec60c7a65b534506f0939cbda56 | |
parent | b6508c0dc1ec8e76edf657a0beb5bc4ad3647423 [diff] |
Add a shell command to power off car - This CL introduces "power-off" command which makes the car powered off. - The final state can be "suspend" or "shutdown". To make it shutdown, "--shutdown" option needs to be given. - Also, it is possible to skip Garage Mode by giving "--skip-garagemode". - If the vehicle doesn't support S2R, the car will be shutdown even if the command is "suspend". Bug: 175757530 Bug: 175337240 Test: run "cmd car_service power-off --skip-garagemode" and make sure that the device suspends. Change-Id: I81489d7941da56ba0a44df26c9d9dff2fead4a5f Merged-In: I81489d7941da56ba0a44df26c9d9dff2fead4a5f (cherry picked from commit e701e0d568184721126b5a991974753f765f2ae4)
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.