commit | f07c3f9dbeabfd8e2c6a077ca691f924e5230b0c | [log] [tgz] |
---|---|---|
author | Felipe Leme <felipeal@google.com> | Wed Feb 12 14:26:33 2020 -0800 |
committer | Felipe Leme <felipeal@google.com> | Wed Feb 12 14:43:14 2020 -0800 |
tree | af45867b4b89c9d8e5fedfcd3aef2613e32baafe | |
parent | 5bf135b618b4baa11cdfac8784ab21ad028f8a5b [diff] |
Improvements on CarService dump(): - Added --help option - Added --hal option do dump halls (all or specific ones) - Fixed UserHalService dump Examples: $ adb shell dumpsys car_service --help Car service dump usage: [NO ARG] dumps everything (all services and HALs) --help shows this help --list lists the name of all services --list lists the name of all HAls --services <SVC1> [SVC2] [SVCN] dumps just the specific services, where SVC is just the service class name (like CarUserService) --vms-hal dumps the VMS HAL metrics --hal [HAL1] [HAL2] [HALN] dumps just the specified HALs (or all of them if none specified), where HAL is just the class name (like UserHalService) -h shows commands usage (NOTE: commands are not available on USER builds [ANYTHING ELSE] runs the given command (use --h to see the available commands) $ adb shell dumpsys car_service --list-hals com.android.car.hal.PowerHalService com.android.car.hal.InputHalService com.android.car.hal.PropertyHalService com.android.car.hal.DiagnosticHalService com.android.car.hal.VmsHalService com.android.car.hal.UserHalService $ adb shell dumpsys car_service --hal UserHalService *User HAL* next request id: 1 no pending callbacks $ adb shell dumpsys car_service --hal 9000 No HAL named 9000. Valid options are: [VmsHalService, UserHalService, PropertyHalService, PowerHalService, InputHalService, DiagnosticHalService] Bug: 146207078 Test: see above Change-Id: I7063128df3749645d7fa9453968076ebe68a506b
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.