Home
last modified time | relevance | path

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

12

/system/connectivity/wifilogd/tests/
Dprotocol_unittest.cpp53 using protocol::Command; in TEST()
54 ASSERT_TRUE(std::is_standard_layout<Command>::value); in TEST()
56 EXPECT_EQ(0U, offsetof(Command, src_boottime_nsec)); in TEST()
57 EXPECT_EQ(8U, sizeof(Command::src_boottime_nsec)); in TEST()
59 EXPECT_EQ(8U, offsetof(Command, sequence_num)); in TEST()
60 EXPECT_EQ(2U, sizeof(Command::sequence_num)); in TEST()
62 EXPECT_EQ(10U, offsetof(Command, opcode)); in TEST()
63 EXPECT_EQ(2U, sizeof(Command::opcode)); in TEST()
65 EXPECT_EQ(12U, offsetof(Command, payload_len)); in TEST()
66 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()
75 std::unique_ptr<Command> cmd = CreateCommandInstance(cmd_name); in PrintShortHelp()
80 void HelpCommand::PrintLongHelpForOneCommand(const Command& command) { in PrintLongHelpForOneCommand()
86 [] { return std::unique_ptr<Command>(new HelpCommand); }); in RegisterHelpCommand()
Dcommand.h27 class Command {
29 Command(const std::string& name, const std::string& short_help_string, in Command() function
34 virtual ~Command() { in ~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);
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()
Dcommand.cpp26 bool Command::NextArgumentOrError(const std::vector<std::string>& args, size_t* pi) { in NextArgumentOrError()
36 void Command::ReportUnknownOption(const std::vector<std::string>& args, size_t i) { in ReportUnknownOption()
41 typedef std::function<std::unique_ptr<Command>(void)> callback_t;
51 const std::function<std::unique_ptr<Command>(void)>& callback) { in RegisterCommand()
59 std::unique_ptr<Command> CreateCommandInstance(const std::string& cmd_name) { in CreateCommandInstance()
Dcmd_list.cpp47 class ListCommand : public Command {
50 : Command("list", "list available event types", in ListCommand()
97 RegisterCommand("list", [] { return std::unique_ptr<Command>(new ListCommand); }); in RegisterListCommand()
Dcmd_dumprecord_test.cpp22 static std::unique_ptr<Command> DumpCmd() { in DumpCmd()
Dcmd_list_test.cpp28 std::unique_ptr<Command> list_cmd;
Dcmd_dumprecord.cpp36 class DumpRecordCommand : public Command {
39 : Command("dump", "dump perf record file", in DumpRecordCommand()
228 RegisterCommand("dump", [] { return std::unique_ptr<Command>(new DumpRecordCommand); }); in RegisterDumpRecordCommand()
Dcmd_report_sample_test.cpp25 static std::unique_ptr<Command> ReportSampleCmd() { in ReportSampleCmd()
Dmain.cpp61 std::unique_ptr<Command> command = CreateCommandInstance(args[0]); in main()
Dcmd_kmem.cpp274 class KmemCommand : public Command {
277 : Command( in KmemCommand()
468 std::unique_ptr<Command> record_cmd = CreateCommandInstance("record"); in RecordKmemInfo()
715 [] { return std::unique_ptr<Command>(new KmemCommand()); }); in RegisterKmemCommand()
/system/netd/netutils_wrappers/
DNetUtilsWrapperTest-1.0.cpp30 struct Command { struct
35 std::vector<Command> COMMANDS = { argument
57 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.h29 class Command {
31 Command(BuiltinFunction f, const std::vector<std::string>& args,
74 void ExecuteCommand(const Command& command) const;
81 std::vector<Command> commands_;
Daction.cpp34 Command::Command(BuiltinFunction f, const std::vector<std::string>& args, in Command() function in Command
39 int Command::InvokeFunc() const { in InvokeFunc()
53 std::string Command::BuildCommandString() const { in BuildCommandString()
57 std::string Command::BuildSourceString() const { in BuildSourceString()
110 Command cmd = commands_[command]; in ExecuteOneCommand()
120 void Action::ExecuteCommand(const Command& command) const { in ExecuteCommand()
/system/update_engine/
Dweave_service.h55 void OnCheckForUpdates(std::unique_ptr<weaved::Command> cmd);
56 void OnTrackChannel(std::unique_ptr<weaved::Command> cmd);
Dweave_service.cc114 void WeaveService::OnCheckForUpdates(std::unique_ptr<weaved::Command> command) { in OnCheckForUpdates()
123 void WeaveService::OnTrackChannel(std::unique_ptr<weaved::Command> command) { in OnTrackChannel()
/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
213 #### `help` Command
/system/tpm/trunks/generator/
Draw_commands_fixed.txt113 Command Processing ................................................................................…
127 Command Header Validation .........................................................................…
134 Command Post Processing ...........................................................................…
388 Command Audit .....................................................................................…
598 Table 1 — Command Modifiers and Decoration ........................................................…
601 Table 4 — Command-Independent Response Codes ......................................................…
602 Table 5 — TPM2_Startup Command ....................................................................…
604 Table 7 — TPM2_Shutdown Command ...................................................................…
606 Table 9 — TPM2_SelfTest Command ...................................................................…
608 Table 11 — TPM2_IncrementalSelfTest Command .......................................................…
[all …]
/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