commit | 76d6225d9b6ab4754c470edf9526d75f818affec | [log] [tgz] |
---|---|---|
author | Howard Hao <hhhao@google.com> | Thu Sep 16 14:35:01 2021 -0700 |
committer | Howard Hao <hhhao@google.com> | Fri Oct 01 12:31:46 2021 -0700 |
tree | e84a1ca480b3bf299c0a1cdfdb1e52d58845b29a | |
parent | 6387c4f7a44252f3e21f198751feb6360f338849 [diff] |
Add parsing dimensions, exception and refactor to stats converter. - Atom fields that are encoded in dimension values are decoded and converted to PersistableBundle formats - Throw new StatsConversionException when there are atom fields mismatch or malformed dimension values - Changed the way atom data converters are implemented. New converters can simply extend the AbstractAtomDataConverter class. It just needs to provide a atom field parser which has all the atom fields metadata and actions in one place. Bug: 200064146 Test: atest CarServiceUnitTest:AppStartMemoryStateCapturedConverterTest Test: atest CarServiceUnitTest:AtomListConverterTest Test: atest CarServiceUnitTest:ConfigMetricsReportListConverterTest Test: atest CarServiceUnitTest:EventMetricDataConverterTest Test: atest CarServiceUnitTest:GaugeMetricDataConverterTest Test: atest CarServiceUnitTest:HashUtilsTest Test: atest CarServiceUnitTest:ProcessMemoryStateConverterTest Change-Id: I19d43a57ee5c26a113088d598050bbe81bf7e8ad
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.