Home
last modified time | relevance | path

Searched refs:cmd_name (Results 1 – 5 of 5) sorted by relevance

/system/extras/simpleperf/
Dcmd_help.cpp79 for (auto& cmd_name : GetAllCommandNames()) { in PrintShortHelp() local
80 std::unique_ptr<Command> cmd = CreateCommandInstance(cmd_name); in PrintShortHelp()
81 printf(" %-20s%s\n", cmd_name.c_str(), cmd->ShortHelpString().c_str()); in PrintShortHelp()
Dcommand.cpp153 void RegisterCommand(const std::string& cmd_name, in RegisterCommand() argument
155 CommandMap().insert(std::make_pair(cmd_name, callback)); in RegisterCommand()
158 void UnRegisterCommand(const std::string& cmd_name) { in UnRegisterCommand() argument
159 CommandMap().erase(cmd_name); in UnRegisterCommand()
162 std::unique_ptr<Command> CreateCommandInstance(const std::string& cmd_name) { in CreateCommandInstance() argument
163 auto it = CommandMap().find(cmd_name); in CreateCommandInstance()
Dcommand.h200 void RegisterCommand(const std::string& cmd_name,
202 void UnRegisterCommand(const std::string& cmd_name);
203 std::unique_ptr<Command> CreateCommandInstance(const std::string& cmd_name);
/system/extras/simpleperf/simpleperf_app_runner/
Dsimpleperf_app_runner.cpp110 static void CheckSimpleperfArguments(std::string_view cmd_name, char** args) { in CheckSimpleperfArguments() argument
113 if (cmd_name == "api-collect") { in CheckSimpleperfArguments()
115 } else if (cmd_name == "record") { in CheckSimpleperfArguments()
117 } else if (cmd_name == "stat") { in CheckSimpleperfArguments()
120 error(1, 0, "cmd isn't allowed: %s", cmd_name.data()); in CheckSimpleperfArguments()
/system/core/fastboot/device/
Dfastboot_device.cpp161 std::string cmd_name; in ExecuteCommands() local
164 cmd_name = FB_CMD_OEM; in ExecuteCommands()
167 cmd_name = args[0]; in ExecuteCommands()
170 auto found_command = kCommandMap.find(cmd_name); in ExecuteCommands()