History log of /frameworks/base/cmds/incident_helper/tests/KernelWakesParser_test.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
51d4c54eba8dd613dd0550c6633a747b53e0ce0a 25-Jan-2018 Yi Jin <jinyithu@google.com> Make the platform proto naming consistent, Part 1
Change proto names in incident_helper

Bug: 72474563
Test: atest incident_helper_test
Change-Id: Ia416ef9726a19d247e62d7de1028874408ec53f1
/frameworks/base/cmds/incident_helper/tests/KernelWakesParser_test.cpp
62c220b20b3fc431c27feac29a71d040fc8e2626 19-Nov-2017 Joe Onorato <joeo@google.com> Fix how we build the statsd protos.

This lets us include frameworks protos, and use the constants
and messages from them.

Change-Id: I609d6e524f780e6a5beea543a68561bede47813e
Test: make
/frameworks/base/cmds/incident_helper/tests/KernelWakesParser_test.cpp
04625ad4886a478bf74bbfc13937c10fa63eb272 18-Oct-2017 Yi Jin <jinyithu@google.com> Refactor incident_helper to use protoutil and cppstream plugin.

1. Split the parsers to its own file to prevent all the parsers in one
gaint file.

2. Completely get rid of protobuf-cpp-full in incident_helper, use
ProtoOutputStream and cppstream instead, the incident_helper binary is
reduced from ~500K to ~113K.

3. Write data to protobuf even its values are zero/default, the reason
is for example we have a repeated int32 orders = 1; and people
explicitly append 0 so the total repeated field has 10 values, if zero
is not written to serialized data, this repeated field will only have 9
values which is not what we want at first place. This also aligns with
the default protobuf serialization behavior in incident_helper_test.

4. Use Android.bp for protoutil lib since it is not able to depend on
libs compiled by .mk file, it works the other way.

5. Add a new custom message option for streaming_proto, if specified,
the cppstream will create extra metadata to get field ids by field name.
A Table class is created in incident_helper to use it.

Bug: 67860303
Test: unit tested as well as on device test
Change-Id: I8e136fd15f343a4a623d20910ec64b622b478a3e
/frameworks/base/cmds/incident_helper/tests/KernelWakesParser_test.cpp