commit | c48cb07e9c11597ea68acdf2bbc9ff0e1534ada3 | [log] [tgz] |
---|---|---|
author | Danny Epstein <depstein@google.com> | Tue Feb 25 13:39:27 2020 -0800 |
committer | Danny Epstein <depstein@google.com> | Mon Mar 02 11:08:17 2020 -0800 |
tree | eb820049ea688c5519197c995a0dfa0e03aa6337 | |
parent | 47ac39736c643451caab5644726a557756c4d481 [diff] |
Make car service handle rotary VHAL property. Make InputHalService subscribe for changes to HW_ROTARY_INPUT (as well as HW_KEY_INPUT). When it receives these HAL events, it generates a pair of KeyEvents for each detent of rotation with the keycodes chosen based on the rotary input type of the HAL event: either system navigation or audio volume. The former will eventually be sent directly to RotaryService. Bug: 150234682 Test: Unit tests, changed Hawk VHAL to generate HW_ROTARY_INPUT events. Change-Id: I7439ab04f9ea95c29408d26c9b0c7145bb90ea81
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.