History log of /frameworks/native/cmds/dumpsys/tests/dumpsys_test.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
64afc024d760e31f3f41e0c5cb8fc543c9392ef1 02-Feb-2018 Vishnu Nair <vishnun@google.com> Flip bugreport version to 2.0

- Adds support for proto dumps
- Adds support for priority service dumps
- Change order of arguments when dumping Normal priority services
- Adds a new DEFAULT priority for services which is treated the same as NORMAL priority but dumpsys does not send "--dump-priority" arguments to the service.
Bug: 67716082, 27429130
Test: Manually generate bugreport (default version) and check for any issues
Test: Load bugreport on ABT
Test: mmm -j56 frameworks/native/cmds/dumpstate && \
adb sync data && adb shell /data/nativetest/dumpstate_test/dumpstate_test && \
adb shell /data/nativetest64/dumpstate_test/dumpstate_test && \
adb shell /data/nativetest64/dumpstate_smoke_test/dumpstate_smoke_test && \
adb shell /data/nativetest/dumpsys_test/dumpsys_test && \
adb shell /data/nativetest64/dumpsys_test/dumpsys_test && \
printf "\n\n#### ALL TESTS PASSED ####\n"

Change-Id: Ie8761a2dd0425574b0d905752e1562196a1f7426
/frameworks/native/cmds/dumpsys/tests/dumpsys_test.cpp
e4f617485463ae35c7e2474c4f725ddf824ebfbb 21-Dec-2017 Vishnu Nair <vishnun@google.com> Refactor dumpsys to expose helper apis

- allow dumpstate to interact with services without executing dumpsys binary
- Remove "NORMAL" priority from section name for backwards compatibility when switching to version 2.0

Bug: 67716082

Test: mmm -j56 frameworks/native/cmds/dumpsys && \
adb sync data && \
adb shell /data/nativetest/dumpsys_test/dumpsys_test && \
adb shell /data/nativetest64/dumpsys_test/dumpsys_test && \
printf "\n\n#### ALL TESTS PASSED ####\n"

Test: manual tests with "adb bugreport"
Change-Id: I4198333a58ffe6cb521b5cb7066520c7a3ef0675
/frameworks/native/cmds/dumpsys/tests/dumpsys_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/dumpsys/tests/dumpsys_test.cpp
6a40853e06f5274d84b0fc66e349a36510d1497f 24-Oct-2017 Vishnu Nair <vishnun@google.com> Add proto dump flag to services (1/2)

Adds new PROTO flag which requests services to dump sections
in proto format. Modifies dumpsys to take in proto argument
and pass on proto flags to services which support proto
dumps. Modify PriorityDumper helper class to parse proto
arguments and set asProto flags.

Bug: 67716082

Test: mmm -j56 frameworks/native/cmds/dumpsys && \
mmm -j56 frameworks/native/services/utils && \
adb sync data && \
adb shell /data/nativetest/dumpsys_test/dumpsys_test && \
adb shell /data/nativetest64/dumpsys_test/dumpsys_test && \
adb shell /data/nativetest/prioritydumper_test/prioritydumper_test && \
adb shell /data/nativetest64/prioritydumper_test/prioritydumper_test && \
printf "\n\n#### ALL TESTS PASSED ####\n"

Change-Id: I42c2a6a8876efbf9a7d792d68572499b16985147
/frameworks/native/cmds/dumpsys/tests/dumpsys_test.cpp
f56042d6a496fca2e5cfc1f598251f77a9bc7986 20-Sep-2017 Vishnu Nair <vishnun@google.com> Pass dumpsys priority to IServiceManager

Modify IServiceManger to accept supported dumpsys priority as a bitmask
with NORMAL being the default priority. Change listServices to return
a list of services filtered by the priority or all services when the
priority is set to ALL.

BUG:27429130

Test: mmm -j32 frameworks/native/cmds/dumpsys && \
adb sync data && adb shell /data/nativetest/dumpsys_test/dumpsys_test && \
adb shell /data/nativetest64/dumpsys_test/dumpsys_test && \
printf "\n\n#### ALL TESTS PASSED ####\n"

Change-Id: Ibccba63035ace9970c2967a621ee2ad8d15cbeea
/frameworks/native/cmds/dumpsys/tests/dumpsys_test.cpp
215bcdcc2881eee96a8a887bbba56de40eadde66 02-Sep-2017 Felipe Leme <felipeal@google.com> Merge "Temporary fix for memory leak on DumpRunningServiceTimeout." into oc-mr1-dev
am: f2e446abe5

Change-Id: I3ed1b7943492eb358164b4a6ce75d9532c020f26
5c8a98f725debfc38ec95c5ee9312891aabfd2d2 25-Aug-2017 Felipe Leme <felipeal@google.com> Temporary fix for memory leak on DumpRunningServiceTimeout.

Test: mmm -j32 frameworks/native/cmds/dumpsys && \
adb sync && adb shell /data/nativetest/dumpsys_test/dumpsys_test && \
adb shell /data/nativetest64/dumpsys_test/dumpsys_test && \
printf "\n\n#### ALL TESTS PASSED ####\n"

Bug: 65056227
Change-Id: I328806e9edf8e156039fb5dd963c3750c67c98d9
/frameworks/native/cmds/dumpsys/tests/dumpsys_test.cpp
cb057c2e6bf23b43df49282c0db26b663e4535f7 04-Aug-2017 Chih-Hung Hsieh <chh@google.com> Fix clang-tidy performance warnings in frameworks/native.

* Use const reference parameter type to avoid unnecessary copy.
* Use more efficient overloaded string methods.
* Use const reference type for loop index variables to avoid unnecessary copy.

Bug: 30407689
Bug: 30411878
Bug: 30413223
Test: build with WITH_TIDY=1

Change-Id: I75ed62e2cb9939878b8932ed512ceb7e241edd6f
/frameworks/native/cmds/dumpsys/tests/dumpsys_test.cpp
a0f7f2dfd0ecb0ba13efdb62b5b850e198f01a1f 10-Mar-2017 Steven Moreland <smoreland@google.com> dumpsys: remove usage of String16::std_string

Test: pass

Change-Id: Ib74a126b91d25376a7235f73bbc12ada62ae7e69
/frameworks/native/cmds/dumpsys/tests/dumpsys_test.cpp
2c3cd83603a7eefe7efe8c99cbe1c04b54cfe599 14-Feb-2017 Steven Moreland <smoreland@google.com> Revert "dumpsys: add option to list hardware services."

This reverts commit 6270dd1bf7f4a6eaa0e36b2cbb0f9bdd4790b5d8.

Reason for revert: obsolete, removed in favor of lshal
Test: dumpsys_test

Change-Id: I06e256a5bd0995727a3d6f3f88f79a623b1474f3
/frameworks/native/cmds/dumpsys/tests/dumpsys_test.cpp
b7ddc9e5cba5a0a287993b5b3124a75d67d9557c 04-Feb-2017 Yifan Hong <elsk@google.com> Dump client PIDs for passthrough HALs.

* This is done with registerPassthroughClient in IServiceManager; when a
service is retrieved through the passthrough service manager, its PID
will be recoreded by the binderized service manager.
* The action of dumping all available dynamic libraries is now done by
dumpAllLibraries.
Bug: 34712252
Test: lshal

Change-Id: I7f08e3255ffed0f46435843504e0e225d0d9bbc9
/frameworks/native/cmds/dumpsys/tests/dumpsys_test.cpp
5ccdab9bc541ef2b3839c5d33b0c0ed4ecd3258f 26-Jan-2017 Yifan Hong <elsk@google.com> Add debugDump() to IServiceManager.

Test: mma
Change-Id: I04289500c7ee42a84d3593b4c0e45a0b829370a7
/frameworks/native/cmds/dumpsys/tests/dumpsys_test.cpp
6270dd1bf7f4a6eaa0e36b2cbb0f9bdd4790b5d8 21-Jan-2017 Steven Moreland <smoreland@google.com> dumpsys: add option to list hardware services.

This gives a convenient way to dump information about hidl services.
When hidl services dump information themselves as well, that dump will
be made here as well.

Bug: 33382892
Test: dumpsys_test, dumpsys --hw works as expected
Change-Id: Ib08b5d052e63ed6260035ee8d3ad3dac296202b1
/frameworks/native/cmds/dumpsys/tests/dumpsys_test.cpp
343175a5ffeba6d1714336913a81b3029df73dbb 03-Aug-2016 Felipe Leme <felipeal@google.com> Added test cases to dumpsys.

BUG: 28980245
BUG: 33382892

Test: dumpsys_test passes

Change-Id: Ief6c21022abc74022256431351fd6eef789faf39
(cherry picked from commit b6e244914deaffcdeea02deebf7c0da2643f601c)
/frameworks/native/cmds/dumpsys/tests/dumpsys_test.cpp