commit | 4c43add01ddcbbc1aefd78249bbe1cf981381f8e | [log] [tgz] |
---|---|---|
author | Enrico Granata <egranata@google.com> | Wed Mar 15 18:01:34 2017 -0700 |
committer | Enrico Granata <egranata@google.com> | Thu Mar 16 13:57:37 2017 -0700 |
tree | ea1caef6d7a959f0a91172b3fee7d57cd11bf487 | |
parent | 185a2c831e365fb42f385b3280f27bfdc2ac0218 [diff] |
Automatically generate the Java list of OBD2 sensor indices from the HIDL definition. This commit introduces the hidl_parser library, which is capable of generating a parse tree from a set of HIDL enum definitions. It then uses the output of hidl_parser to generate CarDiagnosticSensorIndices.java. Test: update-obd2-sensors.py + rebuild Change-Id: Ie368b616468b0a2b46da5aa92deb4617c78302e1