Home
last modified time | relevance | path

Searched refs:CommandSection (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/cmds/incidentd/src/
DSection.h124 class CommandSection : public Section {
126 CommandSection(int id, int64_t timeoutMs, const char* command, ...);
128 CommandSection(int id, const char* command, ...);
130 virtual ~CommandSection();
DSection.cpp540 CommandSection::CommandSection(int id, const int64_t timeoutMs, const char* command, ...) in CommandSection() function in android::os::incidentd::CommandSection
553 CommandSection::CommandSection(int id, const char* command, ...) : Section(id) { in CommandSection() function in android::os::incidentd::CommandSection
565 CommandSection::~CommandSection() { free(mCommand); } in ~CommandSection()
567 status_t CommandSection::Execute(ReportRequestSet* requests) const { in Execute()
/frameworks/base/cmds/incidentd/tests/
DSection_test.cpp192 CommandSection cs1(1, "echo", "\"this is a test\"", "ooo", NULL); in TEST_F()
193 CommandSection cs2(2, "single_command", NULL); in TEST_F()
194 CommandSection cs3(1, 3123, "echo", "\"this is a test\"", "ooo", NULL); in TEST_F()
195 CommandSection cs4(2, 43214, "single_command", NULL); in TEST_F()
206 CommandSection cs(REVERSE_PARSER, "/system/bin/echo", "about", NULL); in TEST_F()
214 CommandSection cs(NOOP_PARSER, QUICK_TIMEOUT_MS, "/system/bin/yes", NULL); in TEST_F()
220 CommandSection cs(TIMEOUT_PARSER, QUICK_TIMEOUT_MS, "/system/bin/echo", "about", NULL); in TEST_F()
227 CommandSection cs(NOOP_PARSER, "echoo", "about", NULL); in TEST_F()
232 CommandSection cs(TIMEOUT_PARSER, QUICK_TIMEOUT_MS, "nonexistcommand", "-opt", NULL); in TEST_F()