20cf5036c1f373c1acfbb95295f118b7ff6c2227 |
|
05-Jan-2018 |
Vishnu Nair <vishnun@google.com> |
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
/frameworks/native/cmds/dumpstate/tests/dumpstate_test.cpp
|
6921f80f26cb779d2982d2e37e14aeadbc8230b7 |
|
22-Nov-2017 |
Vishnu Nair <vishnun@google.com> |
Support dumpsys timeouts in milliseconds - add new dumpsys argument to specify timeouts in milliseconds - use milliseconds to define timeouts in dumpstate - minor dumpsys output format changes: "SERVICE '<service_name>' DUMP TIMEOUT (1s) EXPIRED" -> "SERVICE '<service_name>' DUMP TIMEOUT (1000ms) EXPIRED" Bug: 27429130 Test: mmm -j32 frameworks/native/cmds/dumpsys && \ mmm -j32 frameworks/native/cmds/dumpstate && \ adb sync data && adb shell /data/nativetest/dumpsys_test/dumpsys_test && \ adb shell /data/nativetest64/dumpsys_test/dumpsys_test && \ adb shell /data/nativetest/dumpstate_test/dumpstate_test && \ adb shell /data/nativetest64/dumpstate_test/dumpstate_test && \ printf "\n\n#### ALL TESTS PASSED ####\n" Change-Id: Ibc96ad030bb2c6d880b8201c9b6241fce20b284f Change-Id: I6ef2ff19787f2b6d940d56e453a1a7462a8c854a
/frameworks/native/cmds/dumpstate/tests/dumpstate_test.cpp
|
f3b4c29209e471f56ffc0cf5540a721b8a39954c |
|
04-Oct-2017 |
Yifan Hong <elsk@google.com> |
Merge "Dumpstate: lshal runs in non-root in user build" am: 0c47ec9a82 am: 223a1cf193 am: cab71c3ffe Change-Id: Id4c256b1b9f70ff3bf1a19d0dd5c851b02512724
|
48e83a152179d5fe45dbef2ec7efc509f5f3adc4 |
|
03-Oct-2017 |
Yifan Hong <elsk@google.com> |
Dumpstate: lshal runs in non-root in user build lshal output is still useful even without root permission, so include it in user build as well. Test: lshal in user build Test: dumpstate_test Test: DumpstateTest.RunCommandAsRootIfAvailableOnUserBuild Test: DumpstateTest.RunCommandAsRootIfAvailableOnDebugBuild Test: DumpstateUtilTest.RunCommandAsRootIfAvailableOnDebugBuild Test: DumpstateUtilTest.RunCommandAsRootIfAvailableOnUserBuild Change-Id: Ie8ba9206feb6c2947ed38159ec9893e85d0e020d Fixes: 66476950
/frameworks/native/cmds/dumpstate/tests/dumpstate_test.cpp
|
7fb8dee8e4a52771790b8e94a020579168615872 |
|
25-Aug-2017 |
Felipe Leme <felipeal@google.com> |
Fixed dumpstate_test_fixture so it runs on 64 bits as well. Test: mmm -j32 frameworks/native/cmds/dumpstate/ && adb sync && \ adb shell /data/nativetest/dumpstate_test/dumpstate_test && \ adb shell /data/nativetest64/dumpstate_test/dumpstate_test Fixes: 64954094 Change-Id: I47fa6a6dcee0c3386c5a9b574583d84b20d30661
/frameworks/native/cmds/dumpstate/tests/dumpstate_test.cpp
|
47e9be2d71c5eca9002e289c98e8bbc20dffc073 |
|
22-Dec-2016 |
Felipe Leme <felipeal@google.com> |
Moved DumpstateUtil.h functions to its own namespace. Also make it a shared library. Test: dumpstate_test passes Test: manual verification Bug: 26379932 Change-Id: I75dd3ef9fec3ac692a132bdd8c68307c1a1ee602
/frameworks/native/cmds/dumpstate/tests/dumpstate_test.cpp
|
7440ddb786b7732478173fe142512dba4e2a8dfd |
|
16-Dec-2016 |
Steven Moreland <smoreland@google.com> |
dumpstate: remove references to legacy dumpstate Test: dumpstate_tests pass Test: manual verification Bug: 31982882 Change-Id: If48cccec2e334d54acf6f3a67098475d3122117a
/frameworks/native/cmds/dumpstate/tests/dumpstate_test.cpp
|
61ffcf73d50dbed5b52265e79bb73abf1849324d |
|
28-Oct-2016 |
Ecco Park <eccopark@google.com> |
expose the GetPidByName API of dumpstate Bug: 32248316 This API is used by external dumpstate module 1) add unittest for GetPidByName 2) change the API name to c++ style 3) Test: dumpstate_test pass Change-Id: I5eb80e0d1f1ef0f09b77ac3affd8a9b41d64f679 Signed-off-by: Ecco Park <eccopark@google.com>
/frameworks/native/cmds/dumpstate/tests/dumpstate_test.cpp
|
f029297f673ae06d219bd727a318a48b885db6fd |
|
22-Nov-2016 |
Felipe Leme <felipeal@google.com> |
Even moar refactoring... - Moved DumpstateUtil functions to its own .cpp file. - Created a DumpstateInternal file. - Moved properties setting to a PropertiesHelper class. - Added title to functions that uses a FD. - Moved Nanotime() out of DurationReporter. - Restricted number of default CommandOptions constants. BUG: 31982882 Test: manual verification Test: dumpstate_test pass Change-Id: Iab3e61594f6f7298484185f6f302472d31064f7d
/frameworks/native/cmds/dumpstate/tests/dumpstate_test.cpp
|
46b85da716a32f285fe1222e9978beacc8697d09 |
|
22-Nov-2016 |
Felipe Leme <felipeal@google.com> |
Lotta of small dumpstate fixes... - Fixed RunCommandToFd() so it respects DROP_ROOT. - Renamed enums to be more consistent with fd model. - Added tests to RunCommandToFd() and DumpFileToFd(). - Fixed RunCommandToFd() and DumpFileToFd(), which were rushed in. - Disable tests that fail when running as suite. BUG: 31982882 Test: manual verification Test: dumpstate_tests pass Change-Id: I1d8352a17be10a707a101fc1ac9c7d735e38f9fe
/frameworks/native/cmds/dumpstate/tests/dumpstate_test.cpp
|
bda15a00929b836a53bf03473b1ec36285e5944b |
|
17-Nov-2016 |
Felipe Leme <felipeal@google.com> |
Moved some functions to DumpstateUtil.h. dumpstate_board() is been refactored into a HIDL interface, and the HIDL implementations will need help functions to dump files and run commands into a file descriptor. BUG: 31982882 Test: dumpstate_test passes Test: manual verification Change-Id: I7a32f0ac236dae34fd85abe47bed0e52a34c5f36
/frameworks/native/cmds/dumpstate/tests/dumpstate_test.cpp
|
009ecbbd3fcfd06735b0102f0342fc7e60166d9b |
|
07-Nov-2016 |
Felipe Leme <felipeal@google.com> |
Deprecated system properties used to update progress: - Uses just the binder listener. - Don't send all updates to the listener. - SetListener returns a token that can be used to watch for dumpstate death. Bug: 31636879 Test: dumpstate_test passes Change-Id: Ie73fa355809b3b628ee39d7c52ded4b99387b14d
/frameworks/native/cmds/dumpstate/tests/dumpstate_test.cpp
|
7447d7c3d74b28f1a071b1d3503212cc8ad08d68 |
|
04-Nov-2016 |
Felipe Leme <felipeal@google.com> |
Save dumpstate duration stats so it can be tuned over time. Fixes: 26373682 Test: dumpstate_test passes and manual verification Change-Id: I72a308bfb314e157b12746c1be2c33833bdf9d8a
/frameworks/native/cmds/dumpstate/tests/dumpstate_test.cpp
|
75876a2c0649b8cde36329ca0a1dc6e349af6493 |
|
28-Oct-2016 |
Felipe Leme <felipeal@google.com> |
Created a dumpstate service. For now this is still a limited service: - It's only created when running an interactive bugreport. - It only provides a listener to get updates. - It will be just used by Shell to get updates. Test: dumpstate_test passes BUG: 31636879 Change-Id: Iae820261d220523c979bf905030456fcf0b2b618
/frameworks/native/cmds/dumpstate/tests/dumpstate_test.cpp
|
9a523aed06ef962f67385ac88191b08dc91059f4 |
|
21-Oct-2016 |
Felipe Leme <felipeal@google.com> |
Fixed variable names according to Google C++ style. Trivia question: what do you get when Java developers refactor C into C++? Anser: a_bigMess BUG: 26379932 Test: DumpstateTest passes Change-Id: I64c00f3b5953f077fb646cdc45a1656060a4b46e
/frameworks/native/cmds/dumpstate/tests/dumpstate_test.cpp
|
6d24dd590f10cd446af6b254633e77be13f3355c |
|
07-Oct-2016 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Fixed RunCommandDropRoot when running as Shell."
|
cef0298e2540e6ad8c2728e6fcc007247c68aac0 |
|
04-Oct-2016 |
Felipe Leme <felipeal@google.com> |
Added tests for DumpFile. BUG: 31807540 BUG: 30564705 Test: mmm -j32 frameworks/native/cmds/dumpstate/ && adb push ${ANDROID_PRODUCT_OUT}/data/nativetest/dumpstate_test* /data/nativetest && adb shell /data/nativetest/dumpstate_test/dumpstate_test Change-Id: Ide3a8d5f4b2c02b752ce6f6692c83b71ebdf62ed
/frameworks/native/cmds/dumpstate/tests/dumpstate_test.cpp
|
26c4157a0823688ba78bf29d93fbce0def3a0fa6 |
|
06-Oct-2016 |
Felipe Leme <felipeal@google.com> |
Fixed RunCommandDropRoot when running as Shell. BUG: 26379932 BUG: 31807540 Test: mmm -j32 frameworks/native/cmds/dumpstate/ && adb push ${ANDROID_PRODUCT_OUT}/data/nativetest/dumpstate_test* /data/nativetest&& adb unroot && adb shell /data/nativetest/dumpstate_test/dumpstate_test Change-Id: Id582f5fbd4d6282a2eacce602ae1a6d1f62d5c61
/frameworks/native/cmds/dumpstate/tests/dumpstate_test.cpp
|
d80e6b6109c52d57ebba675c1f97fcb2ca1d93c5 |
|
03-Oct-2016 |
Felipe Leme <felipeal@google.com> |
Moar Dumpstate refactoring and unit testing: - Moves UpdateProgress() into Dumpstate object. - Tests RunCommand.AsRoot(). - Tests RunCommand.DropRoot(). - Test update progress. BUG: 26379932 BUG: 31807540 Test: mmm -j32 frameworks/native/cmds/dumpstate/ && adb push ${ANDROID_PRODUCT_OUT}/data/nativetest/dumpstate_test* /data/nativetest && adb shell /data/nativetest/dumpstate_test/dumpstate_test Change-Id: I364d097487e090d201eb2e5f08fc794dce555510
/frameworks/native/cmds/dumpstate/tests/dumpstate_test.cpp
|
fd8affa8840d2d9f7f320201521a702919c677ff |
|
01-Oct-2016 |
Felipe Leme <felipeal@google.com> |
Moar tests for RunCommand: - Command not found. - Command returns non-0 status (and fixed return of RunCommand). - Command times out. - Command is killed. - Command crashes. - Command logs initial message. BUG: 31807540 Test: mmm -j32 frameworks/native/cmds/dumpstate/ && adb push ${ANDROID_PRODUCT_OUT}/data/nativetest/dumpstate_test* /data/nativetest && adb shell /data/nativetest/dumpstate_test/dumpstate_test Change-Id: I6459846791e45f4ebc4433b83feec81be4050167
/frameworks/native/cmds/dumpstate/tests/dumpstate_test.cpp
|
4c2d66379753e2b7680811726424026b9e54b18a |
|
28-Sep-2016 |
Felipe Leme <felipeal@google.com> |
Added initial tests for dumpstate. BUG: 31807540 Test: mmm -j32 frameworks/native/cmds/dumpstate/ && adb push ${ANDROID_PRODUCT_OUT}/data/nativetest/dumpstate_test* /data/nativetest && adb shell /data/nativetest/dumpstate_test/dumpstate_test Change-Id: If5497784052b8d13d7c856f9400dbcd8c2015d05
/frameworks/native/cmds/dumpstate/tests/dumpstate_test.cpp
|