History log of /frameworks/native/cmds/dumpstate/tests/dumpstate_test.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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