to check if the report is uploadable. Move incidentheader.proto to libincident so statds is able to include a lite proto class for incident header. Change IncidentReportArgs to add the proto object instead of serialized bytes to prevent caller gives meaningless data. Bug: 70241842 Test: push config to statsd and verify incidentd generate the report with correct header. Change-Id: If95b655be71047b019b229e5903a08f3c21a1f29
incidentd
How to build, deploy, unit test
For the first time, build the test and create an empty directly on device:
root$ make -j incidentd_test && adb shell mkdir /data/nativetest/incidentd_test
Run the test on a device manually
root$ mmm -j frameworks/base/cmds/incidentd && \
adb push $OUT/data/nativetest/incidentd_test/* /data/nativetest/ && \
adb shell /data/nativetest/incidentd_test 2>/dev/null
Run the test via AndroidTest.xml
root$ atest incidentd_test