diff options
Diffstat (limited to 'cmds/incidentd/src/Section.h')
-rw-r--r-- | cmds/incidentd/src/Section.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/cmds/incidentd/src/Section.h b/cmds/incidentd/src/Section.h index 0bb9da9aac5b..6162b3ae2ceb 100644 --- a/cmds/incidentd/src/Section.h +++ b/cmds/incidentd/src/Section.h @@ -112,7 +112,8 @@ private: }; /** - * Section that calls dumpsys on a system service. + * Section that calls protobuf dumpsys on a system service, usually + * "dumpsys [service_name] --proto". */ class DumpsysSection : public WorkerThreadSection { public: @@ -127,6 +128,21 @@ private: }; /** + * Section that calls text dumpsys on a system service, usually "dumpsys [service_name]". + */ +class TextDumpsysSection : public WorkerThreadSection { +public: + TextDumpsysSection(int id, const char* service, ...); + virtual ~TextDumpsysSection(); + + virtual status_t BlockingCall(unique_fd& pipeWriteFd) const; + +private: + String16 mService; + Vector<String16> mArgs; +}; + +/** * Section that calls dumpsys on a system service. */ class SystemPropertyDumpsysSection : public WorkerThreadSection { |