Home
last modified time | relevance | path

Searched refs:Command (Results 1 – 25 of 43) 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()
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.cpp29 bool Command::NextArgumentOrError(const std::vector<std::string>& args, size_t* pi) { in NextArgumentOrError()
39 void Command::ReportUnknownOption(const std::vector<std::string>& args, size_t i) { in ReportUnknownOption()
44 typedef std::function<std::unique_ptr<Command>(void)> callback_t;
54 const std::function<std::unique_ptr<Command>(void)>& callback) { in RegisterCommand()
62 std::unique_ptr<Command> CreateCommandInstance(const std::string& cmd_name) { in CreateCommandInstance()
142 std::unique_ptr<Command> command = CreateCommandInstance(args[0]); in RunSimpleperfCmd()
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_dumprecord_test.cpp22 static std::unique_ptr<Command> DumpCmd() { in DumpCmd()
Dcmd_list_test.cpp28 std::unique_ptr<Command> list_cmd;
Dcmd_dumprecord.cpp37 class DumpRecordCommand : public Command {
40 : Command("dump", "dump perf record file", in DumpRecordCommand()
267 RegisterCommand("dump", [] { return std::unique_ptr<Command>(new DumpRecordCommand); }); in RegisterDumpRecordCommand()
Dcmd_debug_unwind.cpp78 class DebugUnwindCommand : public Command {
81 : Command("debug-unwind", "Debug/test offline unwinding.", in DebugUnwindCommand()
417 []{ return std::unique_ptr<Command>(new DebugUnwindCommand()); }); in RegisterDebugUnwindCommand()
Dcmd_debug_unwind_test.cpp33 static std::unique_ptr<Command> DebugUnwindCmd() { in DebugUnwindCmd()
Dcmd_kmem.cpp274 class KmemCommand : public Command {
277 : Command( in KmemCommand()
468 std::unique_ptr<Command> record_cmd = CreateCommandInstance("record"); in RecordKmemInfo()
714 [] { 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
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, const std::vector<std::string>& args,
83 void ExecuteCommand(const Command& command) const;
89 std::vector<Command> commands_;
Daction.cpp52 Command::Command(BuiltinFunction f, bool execute_in_subcontext, in Command() function in android::init::Command
56 Result<Success> Command::InvokeFunc(Subcontext* subcontext) const { in InvokeFunc()
72 std::string Command::BuildCommandString() const { in BuildCommandString()
111 Command cmd = commands_[command]; in ExecuteOneCommand()
121 void Action::ExecuteCommand(const Command& command) const { in ExecuteCommand()
/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/tpm/trunks/generator/
Draw_commands.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 …]
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
/system/iot/attestation/at-factory-tool/
Dfastbootsh.py43 fastboot_command = sh.Command(os.path.join(current_path, 'fastboot'))

12