OSDN Git Service

expose the GetPidByName API of dumpstate
authorEcco Park <eccopark@google.com>
Thu, 27 Oct 2016 22:46:26 +0000 (15:46 -0700)
committerEcco Park <eccopark@google.com>
Thu, 12 Jan 2017 23:04:32 +0000 (15:04 -0800)
commit61ffcf73d50dbed5b52265e79bb73abf1849324d
tree2045e8a628174529c675baa71e08ba4c0cddbd85
parente0ea99cc4ba89452b9b6b1baa33bddcb11f3351a
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>
cmds/dumpstate/DumpstateUtil.cpp
cmds/dumpstate/DumpstateUtil.h
cmds/dumpstate/dumpstate.cpp
cmds/dumpstate/tests/dumpstate_test.cpp