History log of /frameworks/base/cmds/incident_helper/src/main.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3c034c987e1eeb49660fb62d3426c292a01412c9 23-Dec-2017 Yi Jin <jinyithu@google.com> Implement a new type of section which reads from logd and dumps proto.

And implement a file section which reads from event-log-tags for
decoding binary logs.

Bug: 70936599
Test: atest incidentd_test && atest incident_helper_test and flush on
device and test log sections and event_log_tag_map
Change-Id: Ib3d35e317f355de69f01ded012482486e9a43da6
/frameworks/base/cmds/incident_helper/src/main.cpp
f5cc5759d55f803cd230c7a595e89e634c3c36ee 21-Dec-2017 Kweku Adams <kwekua@google.com> incidentd: parsing ps dump into proto.

Also changing from execv to execvp so that we don't have to specify the full command path.

Bug: 65750831
Test: atest incident_helper_test
Change-Id: I92191afff4e7f9a6d08ea22ecfc2de5623d3bde5
/frameworks/base/cmds/incident_helper/src/main.cpp
59e6fd792deb31512027548342b66af25056e237 28-Dec-2017 Kweku Adams <kwekua@google.com> incidentd: Parsing battery_type data to proto.

Bug: 65750835
Test: atest incident_helper_test
Change-Id: I3afefcfbd68924f8b6bd384cf1c7a41daeb243e3
/frameworks/base/cmds/incident_helper/src/main.cpp
0dc7e54400da07e98cc05e8531465df7501e81a5 20-Nov-2017 Yi Jin <jinyithu@google.com> Merge "Implement Cpu Freq Section"
0eb223496c3dee6bd0a33ea4fa664fb92ef557cc 07-Nov-2017 Yi Jin <jinyithu@google.com> Implement Cpu Freq Section

When poll from sysfs, revents return POLLERR by default, handles
this edge case in this cl.

Bug: 68774444
Test: unit tested + on device tests
Change-Id: I23540299c026d3e7676497f56690e9f8646a47bd
/frameworks/base/cmds/incident_helper/src/main.cpp
0dfa752e67116940f04a988ca4a264f7140dd81f 07-Nov-2017 Yi Jin <jinyithu@google.com> Implement System Properties Section

Bug: 68774852
Test: unit tested and on device tests
Change-Id: I0d4aadf8d4203fe56e35bbfb77e5c532116fd27e
/frameworks/base/cmds/incident_helper/src/main.cpp
e2f7f79d023f0b3ba2fee374492dde61f525ece6 02-Nov-2017 Yi Jin <jinyithu@google.com> Implement Cpu Info Section

Support carriage return in Read class, and add a new way to parse lines
which is not able to split purly by delimiters

Bug: 65642861
Test: unit test and on device test
Change-Id: Ib82dd4e458bb7d2fa33462b23fbe11b828325916
/frameworks/base/cmds/incident_helper/src/main.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/src/main.cpp