Searched refs:Command (Results 1 - 25 of 34) sorted by relevance

12

/system/extras/simpleperf/
H A Dcmd_help.cpp25 class HelpCommand : public Command {
28 : Command("help", "print help information for simpleperf",
40 void PrintLongHelpForOneCommand(const Command& cmd);
47 std::unique_ptr<Command> cmd = CreateCommandInstance(args[0]);
75 std::unique_ptr<Command> cmd = CreateCommandInstance(cmd_name);
80 void HelpCommand::PrintLongHelpForOneCommand(const Command& command) {
86 [] { return std::unique_ptr<Command>(new HelpCommand); });
H A Dcommand_test.cpp21 class MockCommand : public Command {
23 MockCommand() : Command("mock", "mock_short_help", "mock_long_help") {
33 RegisterCommand("mock1", [] { return std::unique_ptr<Command>(new MockCommand); });
41 RegisterCommand("mock1", [] { return std::unique_ptr<Command>(new MockCommand); });
H A Dcommand.h27 class Command { class
29 Command(const std::string& name, const std::string& short_help_string, function in class:Command
34 virtual ~Command() {
60 DISALLOW_COPY_AND_ASSIGN(Command);
64 const std::function<std::unique_ptr<Command>(void)>& callback);
66 std::unique_ptr<Command> CreateCommandInstance(const std::string& cmd_name);
H A Dcmd_dumprecord_test.cpp22 static std::unique_ptr<Command> DumpCmd() {
H A Dcmd_list_test.cpp28 std::unique_ptr<Command> list_cmd;
H A Dcommand.cpp29 bool Command::NextArgumentOrError(const std::vector<std::string>& args, size_t* pi) {
39 void Command::ReportUnknownOption(const std::vector<std::string>& args, size_t i) {
44 typedef std::function<std::unique_ptr<Command>(void)> callback_t;
47 // commands is used in the constructor of Command. Defining it as a static
54 const std::function<std::unique_ptr<Command>(void)>& callback) {
62 std::unique_ptr<Command> CreateCommandInstance(const std::string& cmd_name) {
142 std::unique_ptr<Command> command = CreateCommandInstance(args[0]);
H A Dcmd_list.cpp92 class ListCommand : public Command {
95 : Command("list", "list available event types",
174 RegisterCommand("list", [] { return std::unique_ptr<Command>(new ListCommand); });
H A Dcmd_dumprecord.cpp37 class DumpRecordCommand : public Command {
40 : Command("dump", "dump perf record file",
267 RegisterCommand("dump", [] { return std::unique_ptr<Command>(new DumpRecordCommand); });
H A Dcmd_debug_unwind_test.cpp33 static std::unique_ptr<Command> DebugUnwindCmd() {
H A Dcmd_debug_unwind.cpp78 class DebugUnwindCommand : public Command {
81 : Command("debug-unwind", "Debug/test offline unwinding.",
417 []{ return std::unique_ptr<Command>(new DebugUnwindCommand()); });
H A Dcmd_kmem.cpp274 class KmemCommand : public Command {
277 : Command(
468 std::unique_ptr<Command> record_cmd = CreateCommandInstance("record");
714 [] { return std::unique_ptr<Command>(new KmemCommand()); });
H A Dcmd_kmem_test.cpp31 static std::unique_ptr<Command> KmemCmd() {
H A Dcmd_report_sample_test.cpp25 static std::unique_ptr<Command> ReportSampleCmd() {
H A Dcmd_report_sample.cpp61 class ReportSampleCommand : public Command {
64 : Command(
669 return std::unique_ptr<Command>(new ReportSampleCommand());
/system/connectivity/wifilogd/tests/
H A Dprotocol_unittest.cpp74 using protocol::Command;
75 ASSERT_TRUE(std::is_standard_layout<Command>::value);
77 EXPECT_EQ(0U, offsetof(Command, src_boottime_nsec));
78 EXPECT_EQ(8U, sizeof(Command::src_boottime_nsec));
80 EXPECT_EQ(8U, offsetof(Command, sequence_num));
81 EXPECT_EQ(2U, sizeof(Command::sequence_num));
83 EXPECT_EQ(10U, offsetof(Command, opcode));
84 EXPECT_EQ(2U, sizeof(Command::opcode));
86 EXPECT_EQ(12U, offsetof(Command, payload_len));
87 EXPECT_EQ(2U, sizeof(Command
[all...]
H A Dmain_loop_unittest.cpp81 Return(std::tuple<size_t, Os::Errno>{sizeof(protocol::Command), 0}));
83 ProcessCommand(_, sizeof(protocol::Command), _));
H A Dcommand_processor_unittest.cpp63 sizeof(protocol::Command) -
107 protocol::Command()
111 GetMaxVal<decltype(protocol::Command::payload_len)>()));
146 const auto command = protocol::Command()
168 // If the buffer given to ProcessCommand() is shorter than a protocol::Command,
175 command_buffer.data(), sizeof(protocol::Command) - 1, Os::kInvalidFd));
219 using opcode_enum_t = decltype(protocol::Command::opcode);
224 protocol::Command()
/system/connectivity/wifilogd/
H A Dprotocol.h53 struct Command { struct in namespace:android::wifilogd::protocol
54 Command& set_opcode(Opcode new_opcode) {
59 Command& set_payload_len(uint16_t new_payload_len) {
H A Dcommand_processor.cpp137 if (n_bytes_read < sizeof(protocol::Command)) {
143 CopyFromBufferOrDie<protocol::Command>(input_buffer, n_bytes_read);
217 buffer_reader.CopyOutOrDie<protocol::Command>();
/system/netd/netutils_wrappers/
H A DNetUtilsWrapperTest-1.0.cpp30 struct Command { struct
35 std::vector<Command> COMMANDS = {
61 for (const Command& cmd : COMMANDS) {
/system/core/init/
H A Daction.h37 class Command { class in namespace:android::init
39 Command(BuiltinFunction f, bool execute_in_subcontext, const std::vector<std::string>& args,
83 void ExecuteCommand(const Command& command) const;
89 std::vector<Command> commands_;
H A Daction.cpp52 Command::Command(BuiltinFunction f, bool execute_in_subcontext, function in class:android::init::Command
56 Result<Success> Command::InvokeFunc(Subcontext* subcontext) const {
72 std::string Command::BuildCommandString() const {
109 // We need a copy here since some Command execution may result in
111 Command cmd = commands_[command];
121 void Action::ExecuteCommand(const Command& command) const {
142 LOG(INFO) << "Command '" << cmd_str << "' action=" << trigger_name << " (" << filename_
/system/sepolicy/
H A Ddefinitions.mk0 # Command to turn collection of policy files into a policy.conf file to be
/system/nvram/messages/include/nvram/messages/
H A Dnvram_messages.h30 enum Command { enum in namespace:nvram
143 Command,
162 Command,
/system/iot/attestation/at-factory-tool/
H A Dfastbootsh.py43 fastboot_command = sh.Command(os.path.join(current_path, 'fastboot'))

Completed in 320 milliseconds

12