Home
last modified time | relevance | path

Searched refs:Command (Results 1 – 15 of 15) sorted by relevance

/system/extras/simpleperf/
Dcommand.cpp23 static std::vector<Command*>& Commands() { in Commands()
26 static std::vector<Command*> commands; in Commands()
30 Command* Command::FindCommandByName(const std::string& cmd_name) { in FindCommandByName()
39 static bool CompareCommandByName(Command* cmd1, Command* cmd2) { in CompareCommandByName()
43 const std::vector<Command*>& Command::GetAllCommands() { in GetAllCommands()
48 void Command::RegisterCommand(Command* cmd) { in RegisterCommand()
52 void Command::UnRegisterCommand(Command* cmd) { in UnRegisterCommand()
Dcommand_test.cpp21 class MockCommand : public Command {
23 MockCommand(const std::string& name) : Command(name, name + "_short_help", name + "_long_help") { in MockCommand()
32 ASSERT_EQ(Command::FindCommandByName("mock1"), nullptr); in TEST()
35 ASSERT_EQ(Command::FindCommandByName("mock1"), &mock1); in TEST()
37 ASSERT_EQ(Command::FindCommandByName("mock1"), nullptr); in TEST()
41 size_t command_count = Command::GetAllCommands().size(); in TEST()
44 ASSERT_EQ(command_count + 1, Command::GetAllCommands().size()); in TEST()
46 ASSERT_EQ(command_count, Command::GetAllCommands().size()); in TEST()
Dcommand.h25 class Command {
27 Command(const std::string& name, const std::string& short_help_string, in Command() function
33 virtual ~Command() { in ~Command()
51 static Command* FindCommandByName(const std::string& cmd_name);
52 static const std::vector<Command*>& GetAllCommands();
59 static void RegisterCommand(Command* cmd);
60 static void UnRegisterCommand(Command* cmd);
62 DISALLOW_COPY_AND_ASSIGN(Command);
Dcmd_help.cpp25 class HelpCommand : public Command {
28 : Command("help", "print help information for simpleperf", in HelpCommand()
38 void PrintLongHelpForOneCommand(const Command& cmd);
45 Command* cmd = Command::FindCommandByName(args[1]); in Run()
59 for (auto& command : Command::GetAllCommands()) { in PrintShortHelp()
64 void HelpCommand::PrintLongHelpForOneCommand(const Command& command) { in PrintLongHelpForOneCommand()
Dcmd_dumprecord_test.cpp24 record_cmd = Command::FindCommandByName("record"); in SetUp()
26 dumprecord_cmd = Command::FindCommandByName("dump"); in SetUp()
30 Command* record_cmd;
31 Command* dumprecord_cmd;
Dcmd_list_test.cpp22 Command* list_cmd = Command::FindCommandByName("list"); in TEST()
Dcmd_stat_test.cpp24 stat_cmd = Command::FindCommandByName("stat"); in SetUp()
29 Command* stat_cmd;
Dcmd_list.cpp38 class ListCommand : public Command {
41 : Command("list", "list all available perf events", in ListCommand()
Dmain.cpp41 Command* command = Command::FindCommandByName(args[0]); in main()
Dcmd_record_test.cpp29 record_cmd = Command::FindCommandByName("record"); in SetUp()
33 Command* record_cmd;
Dcmd_dumprecord.cpp190 class DumpRecordCommand : public Command {
193 : Command("dump", "dump perf record file", in DumpRecordCommand()
Dcmd_stat.cpp220 class StatCommand : public Command {
223 : Command("stat", "gather performance counter information", in StatCommand()
Dcmd_record.cpp366 class RecordCommand : public Command {
369 : Command("record", "record sampling info in perf.data", in RecordCommand()
/system/core/fastboot/
Dfastboot_protocol.txt97 Command Reference
100 * Command parameters are indicated by printf-style escape sequences.
/system/core/init/
Dreadme.txt111 Execute a Command (see below) when service restarts.