Searched refs:Command (Results 1 – 15 of 15) sorted by relevance
/system/extras/simpleperf/ |
D | command.cpp | 23 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()
|
D | command_test.cpp | 21 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()
|
D | command.h | 25 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);
|
D | cmd_help.cpp | 25 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()
|
D | cmd_dumprecord_test.cpp | 24 record_cmd = Command::FindCommandByName("record"); in SetUp() 26 dumprecord_cmd = Command::FindCommandByName("dump"); in SetUp() 30 Command* record_cmd; 31 Command* dumprecord_cmd;
|
D | cmd_list_test.cpp | 22 Command* list_cmd = Command::FindCommandByName("list"); in TEST()
|
D | cmd_stat_test.cpp | 24 stat_cmd = Command::FindCommandByName("stat"); in SetUp() 29 Command* stat_cmd;
|
D | cmd_list.cpp | 38 class ListCommand : public Command { 41 : Command("list", "list all available perf events", in ListCommand()
|
D | main.cpp | 41 Command* command = Command::FindCommandByName(args[0]); in main()
|
D | cmd_record_test.cpp | 29 record_cmd = Command::FindCommandByName("record"); in SetUp() 33 Command* record_cmd;
|
D | cmd_dumprecord.cpp | 190 class DumpRecordCommand : public Command { 193 : Command("dump", "dump perf record file", in DumpRecordCommand()
|
D | cmd_stat.cpp | 220 class StatCommand : public Command { 223 : Command("stat", "gather performance counter information", in StatCommand()
|
D | cmd_record.cpp | 366 class RecordCommand : public Command { 369 : Command("record", "record sampling info in perf.data", in RecordCommand()
|
/system/core/fastboot/ |
D | fastboot_protocol.txt | 97 Command Reference 100 * Command parameters are indicated by printf-style escape sequences.
|
/system/core/init/ |
D | readme.txt | 111 Execute a Command (see below) when service restarts.
|