/system/connectivity/wifilogd/tests/ |
D | protocol_unittest.cpp | 53 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 …]
|
D | command_processor_unittest.cpp | 63 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()
|
D | main_loop_unittest.cpp | 81 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/ |
D | cmd_help.cpp | 25 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()
|
D | command.h | 27 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);
|
D | command_test.cpp | 21 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()
|
D | command.cpp | 26 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()
|
D | cmd_list.cpp | 47 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()
|
D | cmd_dumprecord_test.cpp | 22 static std::unique_ptr<Command> DumpCmd() { in DumpCmd()
|
D | cmd_list_test.cpp | 28 std::unique_ptr<Command> list_cmd;
|
D | cmd_dumprecord.cpp | 36 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()
|
D | cmd_report_sample_test.cpp | 25 static std::unique_ptr<Command> ReportSampleCmd() { in ReportSampleCmd()
|
D | main.cpp | 61 std::unique_ptr<Command> command = CreateCommandInstance(args[0]); in main()
|
D | cmd_kmem.cpp | 274 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/ |
D | NetUtilsWrapperTest-1.0.cpp | 30 struct Command { struct 35 std::vector<Command> COMMANDS = { argument 57 for (const Command& cmd : COMMANDS) { in TEST()
|
/system/connectivity/wifilogd/ |
D | protocol.h | 53 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
|
D | command_processor.cpp | 137 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/ |
D | action.h | 29 class Command { 31 Command(BuiltinFunction f, const std::vector<std::string>& args, 74 void ExecuteCommand(const Command& command) const; 81 std::vector<Command> commands_;
|
D | action.cpp | 34 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/ |
D | weave_service.h | 55 void OnCheckForUpdates(std::unique_ptr<weaved::Command> cmd); 56 void OnTrackChannel(std::unique_ptr<weaved::Command> cmd);
|
D | weave_service.cc | 114 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/ |
D | nvram_messages.h | 30 enum Command { enum 143 Command, 162 Command,
|
/system/libufdt/utils/ |
D | README.md | 64 #### `create` Command 138 #### `cfg_create` Command 183 #### `dump` Command 213 #### `help` Command
|
/system/tpm/trunks/generator/ |
D | raw_commands_fixed.txt | 113 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/ |
D | protocol.txt | 58 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
|