Add bugreport section progress reporter
- Allow dumpstatelisteners to monitor section size and duration and errors while the bugreport is generated. Data will be used to write smoke tests for bugreport. - Refactor main function to allow test to call dumpstate main function. Required until bugreport api is completed - Restore stdout and stderr fds before exiting dumpstate Bug: 70154685 Test: mmm -j56 frameworks/native/cmds/dumpstate && \ adb sync data && \ adb shell /data/nativetest64/dumpstate_test/dumpstate_test && \ printf "\n\n#### ALL TESTS PASSED ####\n" Change-Id: I7e0938baf6e055f14dce2348d0fe99f261870bf1
Showing
- cmds/dumpstate/Android.bp 2 additions, 0 deletionscmds/dumpstate/Android.bp
- cmds/dumpstate/DumpstateSectionReporter.cpp 42 additions, 0 deletionscmds/dumpstate/DumpstateSectionReporter.cpp
- cmds/dumpstate/DumpstateSectionReporter.h 65 additions, 0 deletionscmds/dumpstate/DumpstateSectionReporter.h
- cmds/dumpstate/DumpstateService.cpp 2 additions, 0 deletionscmds/dumpstate/DumpstateService.cpp
- cmds/dumpstate/DumpstateService.h 1 addition, 0 deletionscmds/dumpstate/DumpstateService.h
- cmds/dumpstate/binder/android/os/IDumpstate.aidl 4 additions, 1 deletioncmds/dumpstate/binder/android/os/IDumpstate.aidl
- cmds/dumpstate/binder/android/os/IDumpstateListener.aidl 12 additions, 0 deletionscmds/dumpstate/binder/android/os/IDumpstateListener.aidl
- cmds/dumpstate/dumpstate.cpp 8 additions, 3 deletionscmds/dumpstate/dumpstate.cpp
- cmds/dumpstate/dumpstate.h 5 additions, 1 deletioncmds/dumpstate/dumpstate.h
- cmds/dumpstate/main.cpp 21 additions, 0 deletionscmds/dumpstate/main.cpp
- cmds/dumpstate/tests/dumpstate_test.cpp 22 additions, 4 deletionscmds/dumpstate/tests/dumpstate_test.cpp
Loading
Please register or sign in to comment