Home
last modified time | relevance | path

Searched refs:Command (Results 1 – 25 of 48) sorted by relevance

12

/system/connectivity/wifilogd/tests/
Dprotocol_unittest.cpp74 using protocol::Command; in TEST()
75 ASSERT_TRUE(std::is_standard_layout<Command>::value); in TEST()
77 EXPECT_EQ(0U, offsetof(Command, src_boottime_nsec)); in TEST()
78 EXPECT_EQ(8U, sizeof(Command::src_boottime_nsec)); in TEST()
80 EXPECT_EQ(8U, offsetof(Command, sequence_num)); in TEST()
81 EXPECT_EQ(2U, sizeof(Command::sequence_num)); in TEST()
83 EXPECT_EQ(10U, offsetof(Command, opcode)); in TEST()
84 EXPECT_EQ(2U, sizeof(Command::opcode)); in TEST()
86 EXPECT_EQ(12U, offsetof(Command, payload_len)); in TEST()
87 EXPECT_EQ(2U, sizeof(Command::payload_len)); in TEST()
[all …]
Dcommand_processor_unittest.cpp63 sizeof(protocol::Command) -
107 protocol::Command() in BuildAsciiMessageCommandWithAdjustments()
111 GetMaxVal<decltype(protocol::Command::payload_len)>())); in BuildAsciiMessageCommandWithAdjustments()
146 const auto command = protocol::Command() in SendDumpBuffers()
175 command_buffer.data(), sizeof(protocol::Command) - 1, Os::kInvalidFd)); in TEST_F()
219 using opcode_enum_t = decltype(protocol::Command::opcode); in TEST_F()
224 protocol::Command() in TEST_F()
Dmain_loop_unittest.cpp81 Return(std::tuple<size_t, Os::Errno>{sizeof(protocol::Command), 0})); in TEST_F()
83 ProcessCommand(_, sizeof(protocol::Command), _)); in TEST_F()
/system/extras/simpleperf/
Dcmd_help.cpp25 class HelpCommand : public Command {
28 : Command("help", "print help information for simpleperf", in HelpCommand()
40 void PrintLongHelpForOneCommand(const Command& cmd);
47 std::unique_ptr<Command> cmd = CreateCommandInstance(args[0]); in Run()
78 std::unique_ptr<Command> cmd = CreateCommandInstance(cmd_name); in PrintShortHelp()
83 void HelpCommand::PrintLongHelpForOneCommand(const Command& command) { in PrintLongHelpForOneCommand()
89 [] { return std::unique_ptr<Command>(new HelpCommand); }); in RegisterHelpCommand()
Dcommand.h30 class Command {
32 Command(const std::string& name, const std::string& short_help_string, in Command() function
37 virtual ~Command() { in ~Command()
81 DISALLOW_COPY_AND_ASSIGN(Command);
85 const std::function<std::unique_ptr<Command>(void)>& callback);
87 std::unique_ptr<Command> CreateCommandInstance(const std::string& cmd_name);
Dcommand.cpp31 bool Command::NextArgumentOrError(const std::vector<std::string>& args, size_t* pi) { in NextArgumentOrError()
41 bool Command::GetDoubleOption(const std::vector<std::string>& args, size_t* pi, double* value, in GetDoubleOption()
53 void Command::ReportUnknownOption(const std::vector<std::string>& args, size_t i) { in ReportUnknownOption()
58 typedef std::function<std::unique_ptr<Command>(void)> callback_t;
68 const std::function<std::unique_ptr<Command>(void)>& callback) { in RegisterCommand()
76 std::unique_ptr<Command> CreateCommandInstance(const std::string& cmd_name) { in CreateCommandInstance()
166 std::unique_ptr<Command> command = CreateCommandInstance(args[0]); in RunSimpleperfCmd()
Dcommand_test.cpp21 class MockCommand : public Command {
23 MockCommand() : Command("mock", "mock_short_help", "mock_long_help") { in MockCommand()
33 RegisterCommand("mock1", [] { return std::unique_ptr<Command>(new MockCommand); }); in TEST()
41 RegisterCommand("mock1", [] { return std::unique_ptr<Command>(new MockCommand); }); in TEST()
Dcmd_api.cpp40 class PrepareCommand : public Command {
43 : Command("api-prepare", "Prepare recording via app api", in PrepareCommand()
63 class CollectCommand : public Command {
66 : Command("api-collect", "Collect recording data generated by app api", in CollectCommand()
220 []{ return std::unique_ptr<Command>(new PrepareCommand()); }); in RegisterAPICommands()
222 []{ return std::unique_ptr<Command>(new CollectCommand()); }); in RegisterAPICommands()
Dcmd_list.cpp92 class ListCommand : public Command {
95 : Command("list", "list available event types", in ListCommand()
174 RegisterCommand("list", [] { return std::unique_ptr<Command>(new ListCommand); }); in RegisterListCommand()
Dcmd_list_test.cpp28 std::unique_ptr<Command> list_cmd;
Dcmd_trace_sched_test.cpp41 static std::unique_ptr<Command> TraceSchedCmd() { in TraceSchedCmd()
Dcmd_dumprecord_test.cpp23 static std::unique_ptr<Command> DumpCmd() { in DumpCmd()
Dcmd_dumprecord.cpp37 class DumpRecordCommand : public Command {
40 : Command("dump", "dump perf record file", in DumpRecordCommand()
285 RegisterCommand("dump", [] { return std::unique_ptr<Command>(new DumpRecordCommand); }); in RegisterDumpRecordCommand()
Dcmd_trace_sched.cpp70 class TraceSchedCommand : public Command {
73 : Command("trace-sched", "Trace system-wide process runtime events.", in TraceSchedCommand()
173 std::unique_ptr<Command> record_cmd = CreateCommandInstance("record"); in RecordSchedEvents()
428 RegisterCommand("trace-sched", [] { return std::unique_ptr<Command>(new TraceSchedCommand()); }); in RegisterTraceSchedCommand()
/system/tools/aidl/build/
Daidl_interface.go47 Command: `rm -rf "${outDir}" && mkdir -p "${outDir}" && ` +
53 Command: `mkdir -p "${headerDir}" && ` +
63 Command: `${aidlCmd} --lang=java ${optionalFlags} --structured --ninja -d ${out}.d ` +
72 Command: `rm -rf "${out}" && mkdir -p "${out}" && ` +
78 Command: `rm -rf "${outDir}" && mkdir -p "${outDir}" && ` +
86 Command: `mkdir -p ${to} && rm -rf ${to}/* && ` +
/system/netd/netutils_wrappers/
DNetUtilsWrapperTest-1.0.cpp30 struct Command { struct
35 std::vector<Command> COMMANDS = { argument
61 for (const Command& cmd : COMMANDS) { in TEST()
/system/connectivity/wifilogd/
Dprotocol.h53 struct Command { struct
54 Command& set_opcode(Opcode new_opcode) { in set_opcode() argument
59 Command& set_payload_len(uint16_t new_payload_len) { in set_payload_len() argument
Dcommand_processor.cpp137 if (n_bytes_read < sizeof(protocol::Command)) { in ProcessCommand()
143 CopyFromBufferOrDie<protocol::Command>(input_buffer, n_bytes_read); in ProcessCommand()
217 buffer_reader.CopyOutOrDie<protocol::Command>(); in Dump()
/system/core/init/
Daction.h37 class Command {
39 Command(BuiltinFunction f, bool execute_in_subcontext, std::vector<std::string>&& args,
83 void ExecuteCommand(const Command& command) const;
89 std::vector<Command> commands_;
Daction.cpp47 Command::Command(BuiltinFunction f, bool execute_in_subcontext, std::vector<std::string>&& args, in Command() function in android::init::Command
54 Result<Success> Command::InvokeFunc(Subcontext* subcontext) const { in InvokeFunc()
70 std::string Command::BuildCommandString() const { in BuildCommandString()
109 Command cmd = commands_[command]; in ExecuteOneCommand()
119 void Action::ExecuteCommand(const Command& command) const { in ExecuteCommand()
/system/core/adb/daemon/
Dshell_service.h51 using Command = int(std::string_view args, int in, int out, int err); variable
52 unique_fd StartCommandInProcess(std::string name, Command command, SubprocessProtocol protocol);
/system/nvram/messages/include/nvram/messages/
Dnvram_messages.h30 enum Command { enum
143 Command,
162 Command,
/system/libufdt/utils/
DREADME.md64 #### `create` Command
138 #### `cfg_create` Command
183 #### `dump` Command
214 #### `help` Command
/system/tools/xsdc/build/
Dxsdc.go41 Command: `rm -rf "${out}.temp" && mkdir -p "${out}.temp" && ` +
50 Command: `rm -rf "${outDir}" && ` +
/system/core/adb/
Dprotocol.txt58 Command constant: A_CNXN
85 Command constant: A_AUTH
105 Command constant: A_OPEN
129 Command constant: A_OKAY
148 Command constant: A_WRTE
166 Command constant: A_CLSE
184 Command constant: A_SYNC

12