Home
last modified time | relevance | path

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

/system/extras/simpleperf/
Dcommand.cpp50 void RegisterCommand(const std::string& cmd_name, in RegisterCommand() argument
52 CommandMap().insert(std::make_pair(cmd_name, callback)); in RegisterCommand()
55 void UnRegisterCommand(const std::string& cmd_name) { in UnRegisterCommand() argument
56 CommandMap().erase(cmd_name); in UnRegisterCommand()
59 std::unique_ptr<Command> CreateCommandInstance(const std::string& cmd_name) { in CreateCommandInstance() argument
60 auto it = CommandMap().find(cmd_name); in CreateCommandInstance()
Dcmd_help.cpp74 for (auto& cmd_name : GetAllCommandNames()) { in PrintShortHelp() local
75 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()
Dcommand.h63 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);
/system/extras/tests/memtest/
Dmemtest.cpp75 const char *cmd_name; member
99 if (strcmp(argv[1], function_table[i].cmd_name) == 0) { in main()
/system/core/init/
Dproperty_service.cpp338 const char* cmd_name = legacy_protocol ? "PROP_MSG_SETPROP" : "PROP_MSG_SETPROP2"; in handle_property_set() local
340 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()