Home
last modified time | relevance | path

Searched refs:RunCommand (Results 1 – 4 of 4) sorted by relevance

/frameworks/native/cmds/dumpstate/tests/
Ddumpstate_test.cpp150 int RunCommand(const std::string& title, const std::vector<std::string>& full_command, in RunCommand() function in android::os::dumpstate::DumpstateTest
154 int status = ds.RunCommand(title, full_command, options); in RunCommand()
205 EXPECT_EQ(-1, RunCommand("", {})); in TEST_F()
209 EXPECT_EQ(0, RunCommand("", {kSimpleCommand})); in TEST_F()
215 EXPECT_EQ(0, RunCommand("I AM GROOT", {kSimpleCommand})); in TEST_F()
225 0, RunCommand("", {kSimpleCommand}, in TEST_F()
232 EXPECT_EQ(0, RunCommand("", {kSimpleCommand}, in TEST_F()
239 EXPECT_EQ(0, RunCommand("", {kEchoCommand, "one"})); in TEST_F()
245 EXPECT_EQ(0, RunCommand("", {kEchoCommand, "one", "is", "the", "loniest", "number"})); in TEST_F()
252 EXPECT_EQ(0, RunCommand("I AM GROOT", {kSimpleCommand})); in TEST_F()
[all …]
/frameworks/native/cmds/dumpstate/
Ddumpstate.cpp125 static int RunCommand(const std::string& title, const std::vector<std::string>& fullCommand, in RunCommand() function
127 return ds.RunCommand(title, fullCommand, options); in RunCommand()
348 if (RunCommand("ANRD_DUMP", {"kill", "-SIGUSR1", buf}, in dump_anrd_trace()
439 if (RunCommand("SYSTRACE", {"/system/bin/atrace", "--async_dump", "-o", systrace_path}, in dump_systrace()
478 RunCommand("RAFT LOGS", {"logcompressor", "-r", RAFT_DIR}, options); in dump_raft()
482 RunCommand("RAFT LOGS", {"logcompressor", "-n", "-r", RAFT_DIR, "-o", raft_path}, options); in dump_raft()
881 RunCommand( in DoKernelLogcat()
892 RunCommand("SYSTEM LOG", in DoLogcat()
896 RunCommand( in DoLogcat()
901 RunCommand( in DoLogcat()
[all …]
Dutils.cpp74 static int RunCommand(const std::string& title, const std::vector<std::string>& full_command, in RunCommand() function
76 return ds.RunCommand(title, full_command, options); in RunCommand()
556 RunCommand(title, {"showmap", "-q", arg}, CommandOptions::AS_ROOT); in do_showmap()
678 int Dumpstate::RunCommand(const std::string& title, const std::vector<std::string>& full_command, in RunCommand() function in Dumpstate
698 RunCommand(title, dumpsys, options); in RunDumpsys()
1070 RunCommand("ROUTE TABLE IPv4", {"ip", "-4", "route", "show", "table", table}); in dump_route_tables()
1071 RunCommand("ROUTE TABLE IPv6", {"ip", "-6", "route", "show", "table", table}); in dump_route_tables()
1124 RunCommand("", {"/system/bin/screencap", "-p", real_path}, in TakeScreenshot()
Ddumpstate.h202 int RunCommand(const std::string& title, const std::vector<std::string>& fullCommand,