Add more options to collect the usage statistics

This change implements more options to collect EVS camera usage
statistics via LSHAL debug command.

Below commands show how to use each option:

$ adb shell lshal debug \
  android.hardware.automotive.evs@1.1::IEvsEnumerator/default --help
Usage:

--help: shows this help.
--list [all|camera|display]: lists camera or display devices or both
                             available to EVS manager.
--dump camera [all|device_id] --[current|collected|custom] [args]
    current: shows the current status
    collected: shows 10 most recent periodically collected camera usage
               statistics
    custom: starts/stops collecting the camera usage statistics
        start [interval] [duration]: starts collecting usage statistics
            at every [interval] during [duration].  Interval and
            duration are in milliseconds.
        stop: stops collecting usage statistics and shows collected
              records.
--dump display: shows current status of the display

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