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/DumpstateUtil.h
|
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/DumpstateUtil.h
|
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/DumpstateUtil.h
|
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/DumpstateUtil.h
|
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/DumpstateUtil.h
|
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/DumpstateUtil.h
|
6f674aefab201fbf9141aabbb603bbfc84771927 |
|
19-Nov-2016 |
Felipe Leme <felipeal@google.com> |
Uses Dumpstate HIDL instead of dumpstate_board. BUG: 31982882 Test: manual verification Test: dumpstate_tests pass Change-Id: I2d9a2658b52fba916984f0095edbd26ccd45a278
/frameworks/native/cmds/dumpstate/DumpstateUtil.h
|
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/DumpstateUtil.h
|