Searched refs:cmd_name (Results 1 – 5 of 5) sorted by relevance
50 void RegisterCommand(const std::string& cmd_name, in RegisterCommand() argument52 CommandMap().insert(std::make_pair(cmd_name, callback)); in RegisterCommand()55 void UnRegisterCommand(const std::string& cmd_name) { in UnRegisterCommand() argument56 CommandMap().erase(cmd_name); in UnRegisterCommand()59 std::unique_ptr<Command> CreateCommandInstance(const std::string& cmd_name) { in CreateCommandInstance() argument60 auto it = CommandMap().find(cmd_name); in CreateCommandInstance()
74 for (auto& cmd_name : GetAllCommandNames()) { in PrintShortHelp() local75 std::unique_ptr<Command> cmd = CreateCommandInstance(cmd_name); in PrintShortHelp()76 printf(" %-20s%s\n", cmd_name.c_str(), cmd->ShortHelpString().c_str()); in PrintShortHelp()
63 void RegisterCommand(const std::string& cmd_name,65 void UnRegisterCommand(const std::string& cmd_name);66 std::unique_ptr<Command> CreateCommandInstance(const std::string& cmd_name);
75 const char *cmd_name; member99 if (strcmp(argv[1], function_table[i].cmd_name) == 0) { in main()
338 const char* cmd_name = legacy_protocol ? "PROP_MSG_SETPROP" : "PROP_MSG_SETPROP2"; in handle_property_set() local340 LOG(ERROR) << "sys_prop(" << cmd_name << "): illegal property name \"" << name << "\""; in handle_property_set()356 LOG(ERROR) << "sys_prop(" << cmd_name << "): Unable to " << (name.c_str() + 4) in handle_property_set()372 …LOG(ERROR) << "sys_prop(" << cmd_name << "): permission denied uid:" << cr.uid << " name:" << name; in handle_property_set()