Searched defs:RunCommand (Results 1 - 3 of 3) sorted by relevance

/frameworks/native/cmds/dumpstate/tests/
H A Ddumpstate_test.cpp150 int RunCommand(const std::string& title, const std::vector<std::string>& full_command, function in class:android::os::dumpstate::DumpstateTest
154 int status = ds.RunCommand(title, full_command, options);
205 EXPECT_EQ(-1, RunCommand("", {}));
209 EXPECT_EQ(0, RunCommand("", {kSimpleCommand}));
215 EXPECT_EQ(0, RunCommand("I AM GROOT", {kSimpleCommand}));
225 0, RunCommand("", {kSimpleCommand},
232 EXPECT_EQ(0, RunCommand("", {kSimpleCommand},
239 EXPECT_EQ(0, RunCommand("", {kEchoCommand, "one"}));
245 EXPECT_EQ(0, RunCommand("", {kEchoCommand, "one", "is", "the", "loniest", "number"}));
252 EXPECT_EQ(0, RunCommand("
880 int RunCommand(const std::string& title, const std::vector<std::string>& full_command, function in class:android::os::dumpstate::DumpstateUtilTest
[all...]
/frameworks/native/cmds/dumpstate/
H A Ddumpstate.cpp125 static int RunCommand(const std::string& title, const std::vector<std::string>& fullCommand, function
127 return ds.RunCommand(title, fullCommand, options);
348 if (RunCommand("ANRD_DUMP", {"kill", "-SIGUSR1", buf},
439 if (RunCommand("SYSTRACE", {"/system/bin/atrace", "--async_dump", "-o", systrace_path},
442 // TODO: RunCommand tries to kill the process, but atrace doesn't die
445 // if (RunCommand("SYSTRACE", {"/system/bin/atrace", "--kill"})) {
478 RunCommand("RAFT LOGS", {"logcompressor", "-r", RAFT_DIR}, options);
482 RunCommand("RAFT LOGS", {"logcompressor", "-n", "-r", RAFT_DIR, "-o", raft_path}, options);
881 RunCommand(
892 RunCommand("SYSTE
[all...]
H A Dutils.cpp74 static int RunCommand(const std::string& title, const std::vector<std::string>& full_command, function
76 return ds.RunCommand(title, full_command, options);
556 RunCommand(title, {"showmap", "-q", arg}, CommandOptions::AS_ROOT);
678 int Dumpstate::RunCommand(const std::string& title, const std::vector<std::string>& full_command, function in class:Dumpstate
698 RunCommand(title, dumpsys, options);
1070 RunCommand("ROUTE TABLE IPv4", {"ip", "-4", "route", "show", "table", table});
1071 RunCommand("ROUTE TABLE IPv6", {"ip", "-6", "route", "show", "table", table});
1124 RunCommand("", {"/system/bin/screencap", "-p", real_path},

Completed in 55 milliseconds