Home
last modified time | relevance | path

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

/frameworks/native/cmds/dumpstate/tests/
Ddumpstate_test.cpp599 int RunCommand(const std::string& title, const std::vector<std::string>& full_command, in RunCommand() function in android::os::dumpstate::DumpstateTest
603 int status = ds.RunCommand(title, full_command, options); in RunCommand()
655 EXPECT_EQ(-1, RunCommand("", {})); in TEST_F()
659 EXPECT_EQ(0, RunCommand("", {kSimpleCommand})); in TEST_F()
665 EXPECT_EQ(0, RunCommand("I AM GROOT", {kSimpleCommand})); in TEST_F()
674 0, RunCommand("", {kSimpleCommand}, in TEST_F()
681 EXPECT_EQ(0, RunCommand("", {kSimpleCommand}, in TEST_F()
688 EXPECT_EQ(0, RunCommand("", {kEchoCommand, "one"})); in TEST_F()
694 EXPECT_EQ(0, RunCommand("", {kEchoCommand, "one", "is", "the", "loniest", "number"})); in TEST_F()
701 EXPECT_EQ(0, RunCommand("I AM GROOT", {kSimpleCommand})); in TEST_F()
[all …]
/frameworks/native/cmds/dumpstate/
Ddumpstate.cpp238 static int RunCommand(const std::string& title, const std::vector<std::string>& fullCommand, in RunCommand() function
240 return ds.RunCommand(title, fullCommand, options); in RunCommand()
459 if (RunCommand("ANRD_DUMP", {"kill", "-SIGUSR1", buf}, in dump_anrd_trace()
957 RunCommand( in DoKernelLogcat()
968 RunCommand("SYSTEM LOG", in DoLogcat()
972 RunCommand( in DoLogcat()
977 RunCommand( in DoLogcat()
982 RunCommand( in DoLogcat()
987 RunCommand("LOG STATISTICS", {"logcat", "-b", "all", "-S"}); in DoLogcat()
990 RunCommand("LAST LOGCAT", {"logcat", "-L", "-b", "all", "-v", "threadtime", "-v", "printable", in DoLogcat()
[all …]
Dutils.cpp72 static int RunCommand(const std::string& title, const std::vector<std::string>& full_command, in RunCommand() function
74 return ds.RunCommand(title, full_command, options); in RunCommand()
576 RunCommand(title, {"showmap", "-q", arg}, CommandOptions::AS_ROOT); in do_showmap()
698 int Dumpstate::RunCommand(const std::string& title, const std::vector<std::string>& full_command, in RunCommand() function in Dumpstate
718 RunCommand(title, dumpsys, options); in RunDumpsys()
823 RunCommand("ROUTE TABLE IPv4", {"ip", "-4", "route", "show", "table", table}); in dump_route_tables()
824 RunCommand("ROUTE TABLE IPv6", {"ip", "-6", "route", "show", "table", table}); in dump_route_tables()
883 RunCommand("", {"/system/bin/screencap", "-p", real_path}, in TakeScreenshot()
Ddumpstate.h225 int RunCommand(const std::string& title, const std::vector<std::string>& fullCommand,